Robotics StackExchange | Archived questions

Absolute position of girona500 in uwsim

how to find the absolute position of a moving robot in uwsim?Is there is any inbuilt interface?

Asked by Mind_hunter on 2014-08-06 08:00:01 UTC

Comments

Answers

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".

Asked by Mario Prats on 2014-08-07 11:18:02 UTC

Comments

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".

Asked by Mind_hunter on 2014-08-08 00:16:48 UTC

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 by Mind_hunter on 2014-08-09 00:42:10 UTC

How did you solve it? I am trying to make it work with teleop.

Asked by murdock on 2019-02-22 06:49:45 UTC

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

Asked by Mario Prats on 2014-08-08 11:45:08 UTC

Comments