uuv_simulator icon indicating copy to clipboard operation
uuv_simulator copied to clipboard

how to get the velocity of rexrov?

Open nm46nm opened this issue 5 years ago • 2 comments

I launch the start_pid_demo.launch, and control the rov by publishing velocities to the topic rexrov/cmd_vel. But how can I get the real velocities of the robot. I only found the ground_truth_to_tf/pose but there's no ground_truth_to_tf/velocity.

nm46nm avatar Jun 21 '19 06:06 nm46nm

Hi, you can use the pose_3d plugin macro, which publishes a nav_msgs::Odometry. As a sample, when moving forward in the simulator, I get this on the /auv/odom_ned topic:

image

You can see that the linear speed is at 0.18m/s.

HashirZahir avatar May 23 '20 23:05 HashirZahir

@HashirZahir Hi, i'm quite new to ROS, how do you get the pose_3d plugin ? Do you need to install it ? Like nm46nm i can only see /rexrov/ground_truth_to_tf/pose in the rostopic list. Could you explain what I have to do ? Thanks =)

Kupofty avatar Apr 11 '21 23:04 Kupofty