How I make my map don't move?
Hi, I have a modified workspace I got on github with some packages to do gmapping and amcl with a urdf robot. Well it's all fine until I run amcl and I make my robot move, then the map can't stand being static so it's moving all the time along the robot movements.
I have already seen tutorials about that and I had seen the map is static in the videos. When I run the amcl it opens rviz and gazebo and with it the urdf description that publish the /scan topic, so I suppose the problem is because of the continuous scanning that updates the robot position within the map. May I be wrong and I'm not understanding it at all, anyone can tell me what's going on please?
Asked by magole on 2019-04-09 12:57:42 UTC
Comments
What is the fixed frame in RViz?
Asked by kosmastsk on 2019-04-09 15:17:02 UTC
Is Odom and it is placed in the bottom left corner of the map. I have played with the fixed frame too, if I'm not wrong when the fixed frame is the /map topic the map stays static sure but the problem appears with the robot this time doing jumps back and forward
Asked by magole on 2019-04-09 16:13:36 UTC
That's exactly why the map is moving, if the fixed frame is odom is totally normal, as it is moving as the odom is changing. I would suggest you to change the fixed frame to "/map" and try to configure gmapping and amcl to work better, so that you do not have the jumps
Asked by kosmastsk on 2019-04-09 16:16:41 UTC
Great to know that, ok I'll try it then. Any suggestions, or info I could read, to make the amcl or the gmapping work better? Thank you so much!
Asked by magole on 2019-04-09 16:23:20 UTC
You need to change your RVIZ fixed frame to MAP. If there are then more issues, they are separate issues. You haven't fixed anything by changing frame to ODOM, you've only made it harder to see the issue. Go back to MAP and start troubleshooting the real issue (which sounds like an ODOM issue).
Asked by billy on 2019-04-09 21:00:24 UTC