Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to publish tf2_msgs/TFMessage using ROS_INFO

I modified the code from the sample, but it doesn't work. Any idea to make it work?

void chatterCallback(const tf2_msgs::TFMessage::ConstPtr& msg) { ROS_INFO("I heard: [%f]", msg->transforms.data()); }

Thanks in advance!