|
| | RelativeLocalizerNode (const std::string &node_name, const std::string &name_space, const TopicQoS &observation_sub_config, const TopicQoS &map_sub_config, const TopicQoS &pose_pub_config, const TopicQoS &initial_pose_sub_config, const PoseInitializerT &pose_initializer, LocalizerPublishMode publish_tf=LocalizerPublishMode::NO_PUBLISH_TF) |
| |
| | RelativeLocalizerNode (const std::string &node_name, const rclcpp::NodeOptions &options, const PoseInitializerT &pose_initializer) |
| |
| | RelativeLocalizerNode (const std::string &node_name, const std::string &name_space, const PoseInitializerT &pose_initializer) |
| |
| const rclcpp::Publisher< PoseWithCovarianceStamped >::ConstSharedPtr | get_publisher () |
| | Get a const pointer of the output publisher. Can be used for matching against subscriptions. More...
|
| |
template<typename ObservationMsgT, typename MapMsgT, typename MapT, typename LocalizerT, typename PoseInitializerT, Requires = traits::LocalizerConstraint<LocalizerT, ObservationMsgT, MapT>::value, Requires = traits::MapConstraint<MapT, MapMsgT>::value>
class autoware::localization::localization_nodes::RelativeLocalizerNode< ObservationMsgT, MapMsgT, MapT, LocalizerT, PoseInitializerT, Requires, Requires >
Base relative localizer node that publishes map->base_link relative transform messages for a given observation source and map.
- Template Parameters
-
| ObservationMsgT | Message type to register against a map. |
| MapMsgT | Map type |
| LocalizerT | Localizer type. |
| PoseInitializerT | Pose initializer type. |
template<typename ObservationMsgT , typename MapMsgT , typename MapT , typename LocalizerT , typename PoseInitializerT , Requires = traits::LocalizerConstraint<LocalizerT, ObservationMsgT, MapT>::value, Requires = traits::MapConstraint<MapT, MapMsgT>::value>
| autoware::localization::localization_nodes::RelativeLocalizerNode< ObservationMsgT, MapMsgT, MapT, LocalizerT, PoseInitializerT, Requires, Requires >::RelativeLocalizerNode |
( |
const std::string & |
node_name, |
|
|
const std::string & |
name_space, |
|
|
const TopicQoS & |
observation_sub_config, |
|
|
const TopicQoS & |
map_sub_config, |
|
|
const TopicQoS & |
pose_pub_config, |
|
|
const TopicQoS & |
initial_pose_sub_config, |
|
|
const PoseInitializerT & |
pose_initializer, |
|
|
LocalizerPublishMode |
publish_tf = LocalizerPublishMode::NO_PUBLISH_TF |
|
) |
| |
|
inline |
Constructor
- Parameters
-
| node_name | Name of node |
| name_space | Namespace of node |
| observation_sub_config | topic and QoS setting for the observation subscription. |
| map_sub_config | topic and QoS setting for the map subscription. |
| pose_pub_config | topic and QoS setting for the output pose publisher. |
| initial_pose_sub_config | topic and QoS setting for the initialpose subscription. |
| pose_initializer | Pose initializer. |
| publish_tf | Whether to publish to the tf topic. This can be used to publish transform messages when the relative localizer is the only source of localization. |
template<typename ObservationMsgT , typename MapMsgT , typename MapT , typename LocalizerT , typename PoseInitializerT , Requires = traits::LocalizerConstraint<LocalizerT, ObservationMsgT, MapT>::value, Requires = traits::MapConstraint<MapT, MapMsgT>::value>
Constructor using ros parameters
- Parameters
-
| node_name | Node name |
| name_space | Node namespace |
| pose_initializer | Pose initializer |
template<typename ObservationMsgT , typename MapMsgT , typename MapT , typename LocalizerT , typename PoseInitializerT , Requires = traits::LocalizerConstraint<LocalizerT, ObservationMsgT, MapT>::value, Requires = traits::MapConstraint<MapT, MapMsgT>::value>
Get a const pointer of the output publisher. Can be used for matching against subscriptions.
template<typename ObservationMsgT , typename MapMsgT , typename MapT , typename LocalizerT , typename PoseInitializerT , Requires = traits::LocalizerConstraint<LocalizerT, ObservationMsgT, MapT>::value, Requires = traits::MapConstraint<MapT, MapMsgT>::value>
Handle the exceptions during map setting.
template<typename ObservationMsgT , typename MapMsgT , typename MapT , typename LocalizerT , typename PoseInitializerT , Requires = traits::LocalizerConstraint<LocalizerT, ObservationMsgT, MapT>::value, Requires = traits::MapConstraint<MapT, MapMsgT>::value>
Handle the exceptions during registration.
template<typename ObservationMsgT , typename MapMsgT , typename MapT , typename LocalizerT , typename PoseInitializerT , Requires = traits::LocalizerConstraint<LocalizerT, ObservationMsgT, MapT>::value, Requires = traits::MapConstraint<MapT, MapMsgT>::value>
Default behavior when hte pose output is evaluated to be invalid.
- Parameters
-
template<typename ObservationMsgT , typename MapMsgT , typename MapT , typename LocalizerT , typename PoseInitializerT , Requires = traits::LocalizerConstraint<LocalizerT, ObservationMsgT, MapT>::value, Requires = traits::MapConstraint<MapT, MapMsgT>::value>
Default behavior when an observation is received with no valid existing map.
template<typename ObservationMsgT , typename MapMsgT , typename MapT , typename LocalizerT , typename PoseInitializerT , Requires = traits::LocalizerConstraint<LocalizerT, ObservationMsgT, MapT>::value, Requires = traits::MapConstraint<MapT, MapMsgT>::value>
Set the localizer.
- Parameters
-
| localizer_ptr | rvalue to the localizer to set. |
template<typename ObservationMsgT , typename MapMsgT , typename MapT , typename LocalizerT , typename PoseInitializerT , Requires = traits::LocalizerConstraint<LocalizerT, ObservationMsgT, MapT>::value, Requires = traits::MapConstraint<MapT, MapMsgT>::value>
Validate the pose estimate given the registration summary and the initial guess. This function by default returns true.
- Parameters
-
| summary | Registration summary. |
| pose | Pose estimate. |
| guess | Initial guess. |
- Returns
- True if the estimate is valid and can be published.