setting the initial-pose of the robot programitically

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

setting the initial-pose of the robot programitically

Masoumeh
Hi Mattieu,

i have one question about the location of the robot after mapping mode.
after that i did mapping,  i moved the vehicle 2m forward, and then launch rtabmap in localization mode,now in rviz i can see that the pose of the robot is the same as the time that the robot was in mapping mode. now, how can i update the initial pose of the robot while it is in localization mode? i want to do programmatically? is it possible?

thanks
Reply | Threaded
Open this post in threaded view
|

Re: setting the initial-pose of the robot programitically

matlabbe
Administrator
Hi,

You can use /rtabmap/initialpose to arbitrary set the initial pose of the robot in the map in localization mode. Note that if a loop closure can be found, the robot should localize itself in the map.

cheers,
Mathieu
Reply | Threaded
Open this post in threaded view
|

Re: setting the initial-pose of the robot programitically

Masoumeh
Dear Mattieu,

I am working with the real robot, it is not simulation. for the real robot, it cannot identify its new location.