Hi.. I have data from a sensor which is t0 be transformed&broadcasted to the robot in rviz. Am using transform_broadcaster. I used ros echo to check the topic.No messages are being broadcasted. need help!
the code i used to broadcast it is as follows:
tf::TransformBroadcaster br_L;
tf::Transform transform_L;
tf::Quaternion q_L;
transform_L.setOrigin( tf::Vector3(FT_L_sample[0],FT_L_sample[1],FT_L_sample[2]) );
q_L.setRPY(FT_L_sample[3],FT_L_sample[4],FT_L_sample[5]);
transform_L.setRotation(q_L);
br_L.sendTransform(tf::StampedTransform(transform_L, ros::Time::now(), "world", "base_link"));
Asked by tejaprakash on 2015-05-21 13:41:15 UTC
Answers
That looks like it will send one message. Do you have a while loop? I recommend you look at the tutorials on broadcasting tf data
Asked by tfoote on 2015-05-21 20:10:42 UTC
Comments
yeah it sends one message for every 10 empty messages. I do have a while loop
Asked by tejaprakash on 2015-05-22 04:35:23 UTC
Please edit your question to provide enough information to reproduce your problem. Otherwise we can't effectively help you. http://wiki.ros.org/Support
Asked by tfoote on 2015-05-22 10:02:34 UTC
Comments