ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

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 -0600

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
0

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

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

Comments

1

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 -0600 )edit

Question Tools

1 follower

Stats

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

Seen: 276 times

Last updated: Jan 10 '19