0
$\begingroup$

Rosanswers logo

Hi all,

I have a mobile robot which is navigating around a room, I already have the map of the room. I am using rotary encoders for odometry. I am fusing the data from Rotary encoders and IMU using robot_pose_ekf. I am using amcl for localization and move_base for planning with SBPL Lattice Planner as the global planner and Trajectory Planner as the local planner. Now when I run RViz, I can visualize the global plan (desired trajectory) generated by move_base but I would also like to visualize the actual trajectory (based on odometry data and amcl) followed by the robot in RViz. I want to do this so that I can see how much is the actual trajectory different from the desired trajectory. Is there any package in ROS which does this (I am not able to find any such package)? If not, what is the best way to visualize the robot's actual trajectory in RViz? Any help will be appreciated.

Thanks in advance.
Naman Kumar


Originally posted by Naman on ROS Answers with karma: 1464 on 2015-07-08

Post score: 0

$\endgroup$

2 Answers 2

0
$\begingroup$

Rosanswers logo

hector_trajectory_server does what you request. See also this other older Q/A. :)


Originally posted by Stefan Kohlbrecher with karma: 24361 on 2015-07-08

This answer was ACCEPTED on the original site

Post score: 2


Original comments

Comment by Naman on 2015-07-13:
Thanks @Stefan! It worked like a charm :)

Comment by rosRabbit on 2015-09-08:
works for me too. Thanks for sharing!

Comment by peigong on 2017-08-31:
Could you give me some guidance on how to use this node (or Tutorial on using this node)?@Stefan

$\endgroup$
0
$\begingroup$

Rosanswers logo

Visualize the odometry in rviz with history?


Originally posted by David Lu with karma: 10932 on 2015-07-08

This answer was NOT ACCEPTED on the original site

Post score: 1


Original comments

Comment by rosRabbit on 2015-09-08:
This method could work when odometry information is published. But sometimes, there is no such topic. So we have to use other method. The above method could work!

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.