always resize the costmap

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

always resize the costmap

mantouRobot
Hi~
      when rtabmap_ros is on the map, even the robot is not move ,the proj map is always a resize. Any advice?
      Thank u~
Reply | Threaded
Open this post in threaded view
|

Re: always resize the costmap

matlabbe
Administrator
Hi,

It is because the latest data is always added to global map, thus making it resize if the robot is near the boundaries of the map. You can try with this to see the difference (this not add the latest data when the robot is not moving):
<param name="map_negative_poses_ignored" type="bool" value="true"/>

Another way to avoid resize is to provide a minimum size of the map:
<param name="grid_size" type="double" value="50"/> <!-- 50x50 meters initial map -->

Note that resize message is not bad, it is just for info.

cheers