Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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"));

click to hide/show revision 2
No.2 Revision

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: 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"));

"base_link"));