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?

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

ros::Subscriber sub = n.subscribe("tf", 1000, chatterCallback);

Thanks in advance.

Asked by Yaphets on 2016-02-05 11:59:27 UTC

Comments

Answers