Why I get wrong relative position among two robots in ros_stage

asked 2015-12-11 11:37:50 -0600

china193 gravatar image

I have four robots in stage. # robots erratic( pose [-10 -10 0 0] name "robot_0" color "blue") erratic( pose [ 10 -10 0 90] name "robot_1" color "red") erratic( pose [ 10 10 0 180] name "robot_2" color "green") erratic( pose [ -10 10 0 -90] name "robot_3" color "magenta") All the robots share the same map.

<node pkg="tf" type="static_transform_publisher" name="link_broadcaster" args="-10 -10 0 0 0 0 /map /robot_0/odom 100"/> .......

when I run comand rosrun tf tf_echo /robot_0/odom /robot_1/odom I get : At time 485.800 - Translation: [20.000, 0.000, 0.000] - Rotation: in Quaternion [0.000, 0.000, 0.851, 0.525] in RPY (radian) [0.000, -0.000, 2.035] in RPY (degree) [0.000, -0.000, 116.620] Why here relative oriention is RPY[0,0,116.62], isn't RPY[0,0,90]?????

edit retag flag offensive close merge delete