ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Did you include the header tf2_geometry_msgs/tf2_geometry_msgs.h that implements the templated version of those conversions?

https://github.com/ros/geometry2/blob/ce75a9f1ee748eddfe33d694a4a42d3767052d17/tf2_geometry_msgs/include/tf2_geometry_msgs/tf2_geometry_msgs.h#L688

geometry_msgs::TransformStamped toMsg(const tf2::Stamped<tf2::Transform>& in)

Did you include the header tf2_geometry_msgs/tf2_geometry_msgs.h that implements the templated version of those conversions?

https://github.com/ros/geometry2/blob/ce75a9f1ee748eddfe33d694a4a42d3767052d17/tf2_geometry_msgs/include/tf2_geometry_msgs/tf2_geometry_msgs.h#L688

geometry_msgs::TransformStamped toMsg(const tf2::Stamped<tf2::Transform>& in)

Sorry that's meldodic, it's also in ROS 2 at: https://github.com/ros2/geometry2/blob/72b5b179df1818a81290631cb20578e279bffcb3/tf2_geometry_msgs/include/tf2_geometry_msgs/tf2_geometry_msgs.h#L510