If robot rotates, map rotates too

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

If robot rotates, map rotates too

PierHarper
Hi,
i've a problem with the map. When the robot rotates along his z-axis (is a wheeled mobile robot moving on the x-y plane), the map in rviz (both 2d and 3d) rotates together with the robot. It is a quite (for me) strange behavior because i expect the map is fixed (since /map frame is too) compared to the mobile robot. The system manifests this behavior only when robot rotates while map "does not move" (correctly remains fixed) when the robot only translates on the plane. Have you got some ideas for me, maybe i've to set opportunely some RTAB-Map parameter?
Thank you for your time
Reply | Threaded
Open this post in threaded view
|

Re: If robot rotates, map rotates too

matlabbe
Administrator
Do you mean in RVIZ? Make sure to set fixed_frame in global options to /map. If you set it to /base_link, the world will rotate around the robot.

cheers
Reply | Threaded
Open this post in threaded view
|

R: Re: If robot rotates, map rotates too

PierHarper
This post was updated on .
Yes, fixed frame was  yet set to /map. The problem still remains.  Tank you for your help, if you have any other idea make me know. Bye 
Reply | Threaded
Open this post in threaded view
|

Re: R: Re: If robot rotates, map rotates too

matlabbe
Administrator
Hi,

Can you send two screenshots, before and after a rotation?