Carma-platform v4.2.0
CARMA Platform is built on robot operating system (ROS) and utilizes open source software (OSS) that enables Cooperative Driving Automation (CDA) features to allow Automated Driving Systems to interact and cooperate with infrastructure and other vehicles through communication.
|
Primary logic class for the PoseToTF2 node. More...
#include <PoseToTF2.hpp>
Public Types | |
using | TransformPublisher = std::function< void(const geometry_msgs::msg::TransformStamped &)> |
Public Member Functions | |
PoseToTF2 (PoseToTF2Config config, TransformPublisher transform_pub, std::shared_ptr< carma_ros2_utils::CarmaLifecycleNode > node) | |
Constructor. More... | |
void | poseStampedCallback (geometry_msgs::msg::PoseStamped::UniquePtr msg) |
Callback for new pose stamped messages. More... | |
void | poseWithCovarianceStampedCallback (geometry_msgs::msg::PoseWithCovarianceStamped::UniquePtr msg) |
Callback for new pose stamped messages. More... | |
void | poseCallback (geometry_msgs::msg::Pose::UniquePtr msg) |
Callback for new pose stamped messages. More... | |
void | poseWithCovarianceCallback (geometry_msgs::msg::PoseWithCovariance::UniquePtr msg) |
Callback for new pose with covariance messages. More... | |
Private Attributes | |
std::shared_ptr< carma_ros2_utils::CarmaLifecycleNode > | node_ |
PoseToTF2Config | config_ |
TransformPublisher | transform_pub_ |
Primary logic class for the PoseToTF2 node.
Definition at line 33 of file PoseToTF2.hpp.
using pose_to_tf::PoseToTF2::TransformPublisher = std::function<void(const geometry_msgs::msg::TransformStamped&)> |
Definition at line 36 of file PoseToTF2.hpp.
pose_to_tf::PoseToTF2::PoseToTF2 | ( | PoseToTF2Config | config, |
TransformPublisher | transform_pub, | ||
std::shared_ptr< carma_ros2_utils::CarmaLifecycleNode > | node | ||
) |
Constructor.
transform_pub | A callback to trigger transform broadcast |
Definition at line 60 of file PoseToTF2.cpp.
void pose_to_tf::PoseToTF2::poseCallback | ( | geometry_msgs::msg::Pose::UniquePtr | msg | ) |
Callback for new pose stamped messages.
msg | The pose message to forward |
Definition at line 81 of file PoseToTF2.cpp.
References pose_to_tf::PoseToTF2Config::child_frame, config_, tf2::anonymous_namespace{PoseToTF2.cpp}::convert(), pose_to_tf::PoseToTF2Config::default_parent_frame, node_, and transform_pub_.
Referenced by pose_to_tf::PoseToTfNode::handle_on_configure().
void pose_to_tf::PoseToTF2::poseStampedCallback | ( | geometry_msgs::msg::PoseStamped::UniquePtr | msg | ) |
Callback for new pose stamped messages.
msg | The pose message to forward |
Definition at line 65 of file PoseToTF2.cpp.
References pose_to_tf::PoseToTF2Config::child_frame, config_, tf2::anonymous_namespace{PoseToTF2.cpp}::convert(), and transform_pub_.
Referenced by pose_to_tf::PoseToTfNode::handle_on_configure().
void pose_to_tf::PoseToTF2::poseWithCovarianceCallback | ( | geometry_msgs::msg::PoseWithCovariance::UniquePtr | msg | ) |
Callback for new pose with covariance messages.
msg | The pose message to forward |
Definition at line 91 of file PoseToTF2.cpp.
References pose_to_tf::PoseToTF2Config::child_frame, config_, tf2::anonymous_namespace{PoseToTF2.cpp}::convert(), pose_to_tf::PoseToTF2Config::default_parent_frame, node_, and transform_pub_.
Referenced by pose_to_tf::PoseToTfNode::handle_on_configure().
void pose_to_tf::PoseToTF2::poseWithCovarianceStampedCallback | ( | geometry_msgs::msg::PoseWithCovarianceStamped::UniquePtr | msg | ) |
Callback for new pose stamped messages.
msg | The pose message to forward |
Definition at line 73 of file PoseToTF2.cpp.
References pose_to_tf::PoseToTF2Config::child_frame, config_, tf2::anonymous_namespace{PoseToTF2.cpp}::convert(), and transform_pub_.
Referenced by pose_to_tf::PoseToTfNode::handle_on_configure().
|
private |
Definition at line 77 of file PoseToTF2.hpp.
Referenced by poseCallback(), poseStampedCallback(), poseWithCovarianceCallback(), and poseWithCovarianceStampedCallback().
|
private |
Definition at line 75 of file PoseToTF2.hpp.
Referenced by poseCallback(), and poseWithCovarianceCallback().
|
private |
Definition at line 78 of file PoseToTF2.hpp.
Referenced by poseCallback(), poseStampedCallback(), poseWithCovarianceCallback(), and poseWithCovarianceStampedCallback().