is it possible to label a location and make it recallable?!

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

is it possible to label a location and make it recallable?!

Masoumeh
hi mattieu,

is it possible that during mapping with visual odometry, lablel one specific location , and then when the vehicle moves to its initial location, by receiving this lable, again go to that location. I mean i want to have this procedure to be done based on the images that it captures from that location, not based on gps, because gps is not so accurate and it may specify a wrong location as the intended one.

is it possible?
Reply | Threaded
Open this post in threaded view
|

Re: is it possible to label a location and make it recallable?!

matlabbe
Administrator
Hi,

yes, you can see the example in this video: https://youtu.be/A487ybS7E4E

See label related services:
rosservice list | grep label
/rtabmap/rtabmap/list_labels
/rtabmap/rtabmap/remove_label
/rtabmap/rtabmap/set_label

Once labels are added to map, we can send a goal with set_goal service:
rosservice call /rtabmap/rtabmap/set_goal "node_id: 0
node_label: ''
frame_id: ''"

or publish on goal_node topic. Rtabmap will find the corresponding node of the label and republish its pose on goal_out topic.

cheers,
Mathieu