How to publish tf2_msgs/TFMessage using ROS_INFO [closed]

asked 2016-02-05 10:59:27 -0500

Yaphets gravatar image

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

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

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

Thanks in advance.

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by tfoote
close date 2016-02-05 11:55:03.379395

Comments