How to publish tf2_msgs/TFMessage using ROS_INFO [closed]
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.
http://answers.ros.org/question/22595...