How to publish tf2_msgs/TFMessage using ROS_INFO

asked 2016-02-05 10:57:01 -0600

Yaphets gravatar image

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!

edit retag flag offensive close merge delete

Comments

3

How doesn't it work? What do you expect, and what does it actually do?

ahendrix gravatar image ahendrix  ( 2016-02-05 12:30:02 -0600 )edit