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
http://answers.ros.org/question/225950/how-to-publish-tf2_msgstfmessage-using-ros_info/
Asked by tfoote on 2016-02-05 12:54:59 UTC