|
Autoware.Auto
|
|
#include <localizer_base.hpp>
Public Types | |
| using | PoseWithCovarianceStamped = geometry_msgs::msg::PoseWithCovarianceStamped |
| using | Transform = geometry_msgs::msg::TransformStamped |
| using | RegistrationSummary = RegistrationSummaryT |
| using | InputMsg = InputMsgT |
| using | MapMsg = MapMsgT |
Public Member Functions | |
| RegistrationSummaryT | register_measurement (const InputMsgT &msg, const Transform &transform_initial, PoseWithCovarianceStamped &pose_out) |
| void | set_map (const MapMsgT &msg) |
| void | insert_to_map (const MapMsgT &msg) |
| virtual const std::string & | map_frame_id () const noexcept=0 |
| Get the frame id of the current map. More... | |
| virtual std::chrono::system_clock::time_point | map_stamp () const noexcept=0 |
| Get the timestamp of the current map. More... | |
| bool | map_valid () const noexcept |
| RelativeLocalizerBase & | operator= (RelativeLocalizerBase &&other)=delete |
| virtual | ~RelativeLocalizerBase ()=default |
Protected Member Functions | |
| virtual void | set_map_impl (const MapMsgT &msg)=0 |
set_map implementation. More... | |
| virtual void | insert_to_map_impl (const MapMsgT &) |
insert_to_map implementation. More... | |
| virtual void | on_bad_map (std::exception_ptr eptr) |
| Action to take on failure to set a new map. More... | |
| virtual void | on_bad_map_insertion (std::exception_ptr eptr) |
| Action to take on failure to insert to the map. More... | |
| virtual RegistrationSummaryT | register_measurement_impl (const InputMsgT &msg, const Transform &transform_initial, PoseWithCovarianceStamped &pose_out)=0 |
register_measurement(...) implementation. More... | |
| void | set_map_valid () noexcept |
| Set current map as valid. More... | |
| void | set_map_invalid () noexcept |
| Set current map as invalid. More... | |
| virtual void | on_register_without_map () |
| Action to take when a measurement is attempted to be set without a valid map. More... | |
The base class for relative localizers.
| InputMsgT | Message type that will be registered against a map. |
| MapMsgT | Map type. |
| RegistrationSummaryT | Struct that contains the registration summary. |
| using autoware::localization::localization_common::RelativeLocalizerBase< InputMsgT, MapMsgT, RegistrationSummaryT >::InputMsg = InputMsgT |
| using autoware::localization::localization_common::RelativeLocalizerBase< InputMsgT, MapMsgT, RegistrationSummaryT >::MapMsg = MapMsgT |
| using autoware::localization::localization_common::RelativeLocalizerBase< InputMsgT, MapMsgT, RegistrationSummaryT >::PoseWithCovarianceStamped = geometry_msgs::msg::PoseWithCovarianceStamped |
| using autoware::localization::localization_common::RelativeLocalizerBase< InputMsgT, MapMsgT, RegistrationSummaryT >::RegistrationSummary = RegistrationSummaryT |
| using autoware::localization::localization_common::RelativeLocalizerBase< InputMsgT, MapMsgT, RegistrationSummaryT >::Transform = geometry_msgs::msg::TransformStamped |
|
virtualdefault |
|
inline |
Insert an increment to the map.
| msg | Data to insert to the map. |
|
inlineprotectedvirtual |
insert_to_map implementation.
Reimplemented in autoware::mapping::point_cloud_mapping::MapperBase< LocalizerT, MapRepresentationT, sensor_msgs::msg::PointCloud2, sensor_msgs::msg::PointCloud2, MapperRegistrationSummaryBase< LocalizerT::RegistrationSummary, ConstCloudPtr >, WriteTriggerPolicyT, FileNamePrefixGeneratorT >, and autoware::mapping::point_cloud_mapping::MapperBase< LocalizerT, MapRepresentationT, ObservationMsgT, MapIncrementT, RegistrationSummaryT, WriteTriggerPolicyT, PrefixGeneratorT >.
|
pure virtualnoexcept |
Get the frame id of the current map.
Implemented in autoware::localization::ndt::NDTLocalizerBase< P2DNDTScan, StaticNDTMap, P2DNDTOptimizationProblem< StaticNDTMap >, P2DNDTOptimizationConfig, OptimizerT >, and autoware::mapping::point_cloud_mapping::MapperBase< LocalizerT, MapRepresentationT, sensor_msgs::msg::PointCloud2, sensor_msgs::msg::PointCloud2, MapperRegistrationSummaryBase< LocalizerT::RegistrationSummary, ConstCloudPtr >, WriteTriggerPolicyT, FileNamePrefixGeneratorT >.
|
pure virtualnoexcept |
Get the timestamp of the current map.
Implemented in autoware::localization::ndt::NDTLocalizerBase< P2DNDTScan, StaticNDTMap, P2DNDTOptimizationProblem< StaticNDTMap >, P2DNDTOptimizationConfig, OptimizerT >, and autoware::mapping::point_cloud_mapping::MapperBase< LocalizerT, MapRepresentationT, sensor_msgs::msg::PointCloud2, sensor_msgs::msg::PointCloud2, MapperRegistrationSummaryBase< LocalizerT::RegistrationSummary, ConstCloudPtr >, WriteTriggerPolicyT, FileNamePrefixGeneratorT >.
|
inlinenoexcept |
|
inlineprotectedvirtual |
Action to take on failure to set a new map.
|
inlineprotectedvirtual |
Action to take on failure to insert to the map.
|
inlineprotectedvirtual |
Action to take when a measurement is attempted to be set without a valid map.
|
delete |
|
inline |
Registers a measurement to the current map and returns the estimated pose of the vehicle and its validity.
| [in] | msg | Measurement message to register. |
| [in] | transform_initial | Initial guess of the pose to initialize the localizer with in iterative processes like solving optimization problems. |
| [out] | pose_out | Reference to the resulting pose estimate after registration. |
| If | the result is invalid and cannot be used. Defined in the implementation. |
|
protectedpure virtual |
register_measurement(...) implementation.
Implemented in autoware::mapping::point_cloud_mapping::MapperBase< LocalizerT, MapRepresentationT, sensor_msgs::msg::PointCloud2, sensor_msgs::msg::PointCloud2, MapperRegistrationSummaryBase< LocalizerT::RegistrationSummary, ConstCloudPtr >, WriteTriggerPolicyT, FileNamePrefixGeneratorT >, and autoware::mapping::point_cloud_mapping::MapperBase< LocalizerT, MapRepresentationT, ObservationMsgT, MapIncrementT, RegistrationSummaryT, WriteTriggerPolicyT, PrefixGeneratorT >.
|
inline |
Set map.
| msg | Map message. |
|
protectedpure virtual |
set_map implementation.
Implemented in autoware::mapping::point_cloud_mapping::MapperBase< LocalizerT, MapRepresentationT, sensor_msgs::msg::PointCloud2, sensor_msgs::msg::PointCloud2, MapperRegistrationSummaryBase< LocalizerT::RegistrationSummary, ConstCloudPtr >, WriteTriggerPolicyT, FileNamePrefixGeneratorT >, and autoware::mapping::point_cloud_mapping::MapperBase< LocalizerT, MapRepresentationT, ObservationMsgT, MapIncrementT, RegistrationSummaryT, WriteTriggerPolicyT, PrefixGeneratorT >.
|
inlineprotectednoexcept |
Set current map as invalid.
|
inlineprotectednoexcept |
Set current map as valid.