Absolute position of girona500 in uwsim
how to find the absolute position of a moving robot in uwsim?Is there is any inbuilt interface?
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
how to find the absolute position of a moving robot in uwsim?Is there is any inbuilt interface?
Right, it seems now all poses get published over tf. Try this: rosrun tf tf_echo /world /girona500 Also, to set the vehicle pose directly, use the setVehiclePosition example instead of setVehicleVelocity, like this: rosrun uwsim setVehiclePosition /dataNavigator 2 0 0 0 0 0
UWSim uses ROS topics to communicate externally. Have a look to the cirs.xml scene, there is a pose publisher on "/g500/pose", and an odometry publisher on "/dataNavigator".
On using [ $ rosrun UWSim setVehicleVelocity /dataNavigator 0.1 0 0 0 0 0 ] only velocity is published on /dataNavigator and pose field remains the same [0 0 0 0 0 0]. If i m not wrong, inside nav_msgs pose designate position/orientation and twist designate velocity linear/angular . At the same time , using [rostopic echo /g500/pose] no messages are shown. So setVehicleVelocity interface is not publishing on "/g500/pose".
Got it. Actually i was using setVehicleVelocity to set the vehicle in motion and know its position at each instant to time so that i can change its orientation at any instant and then move again .Thanks a lot
Asked: 2014-08-06 08:00:01 -0500
Seen: 304 times
Last updated: Aug 07 '14