ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

I want to know the cumulative moving distance of robot from the bag file of the data which moved the robot.

asked 2019-01-10 04:44:01 -0500

saito gravatar image

Hello. I am a ROS beginner. I am doing SLAM of turtlebot 2 in the ubuntu 14.04, ros (indigo) personal computer environment.

I would like to make a graph of time and distance traveled. Should I integrate the speed? The error seems to accumulate, is it okay? Thank you if there are other ideas.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-01-10 06:46:28 -0500

This will depend on what messages you have available to you in the bag file. If you're only got the relative movement (speed and angular rates) then you will have to integrate the speed as you described. But if you have odometry messages which include the absolute position or TF frames which describe the absolute position then you could use these instead.

You can use the rosbag info command described here to quickly see what topics you have available. Then you could visualise the topics in RVIZ to see how noisy they are to decide which one is best to use.

Hope this helps.

edit flag offensive delete link more



thank you! I have / tf message on absolute position. I will try to calculate from there.

saito gravatar image saito  ( 2019-01-10 20:39:56 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2019-01-10 04:44:01 -0500

Seen: 132 times

Last updated: Jan 10 '19