Robotics StackExchange | Archived questions

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 tf2msgs::TFMessage::ConstPtr& msg) { ROSINFO("I heard: [%f]", msg->transforms.data()); }

Thanks in advance!

Asked by Yaphets on 2016-02-05 11:57:01 UTC

Comments

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

Asked by ahendrix on 2016-02-05 13:30:02 UTC

Answers