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

How to record robot trajectory?

asked 2019-10-24 05:04:18 -0500

parzival gravatar image

I want to record the robot's trajectory and then check if I've already been at that place before or not, and also store it for later reference. How can I do that?

edit retag flag offensive close merge delete

Comments

You can make a vector of point where you have been (odometry), and make a service that you can call, which will check if your current odom is present in the vector you have saved (use a threshold since being at exact same point would be extremely rare). This can be the case if you are doing all of this during a single run. For storing you can store them in a bag.

Choco93 gravatar image Choco93  ( 2019-10-24 05:50:01 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-10-24 14:58:15 -0500

wintermute gravatar image

you need to use a spatial database, and connect it to ros with a service, so you can query later the positions it has been by for example using a bounding box query. of course the pose data you feed in the db must be correct.

edit flag offensive delete link more

Comments

Thanks for answering! Where can I find an implementation of such a pose database?

parzival gravatar image parzival  ( 2019-10-28 13:05:39 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2019-10-24 05:04:18 -0500

Seen: 1,253 times

Last updated: Oct 24 '19