Hi, all ,I am using turtlebot2( i.e. kobuki) to test my local planner. The global_planner being used is the default navfn of move_base node (i.e. navfn). But some strange path planning happen due to the incorrect costmap (global costmap ?). Please see following two images. The black and grey areas are with high cost from global costmap. The red ellipses are the areas that should be with white. Because there are nothing on these area. Beforehand some moving objects such as persons were moving through these areas. But when a turtlebot robot is ordered to go from start points ( blue squares) to goal points (orange squares), there are nothing in these areas. That is why the planned path(green lines) get round these areas like there exists obstacles.
Here I give the yaml files that the move_base node is using.
local_costmap_params.yaml:
local_costmap:
global_frame: odom #was /odom
robot_base_frame: base_link #was /base_footprint
update_frequency: 5.0
publish_frequency: 5.0
static_map: false
rolling_window: true
width: 4.0
height: 4.0
resolution: 0.1
transform_tolerance: 0.5
global_costmap_params.yaml:
global_costmap:
global_frame: /map
robot_base_frame: base_link # was /base_footprint
update_frequency: 5.0
publish_frequency: 1.0
static_map: true
transform_tolerance: 0.5
cost_scaling_factor: 10.0
lethal_cost_threshold: 100
costmap_common_params:
max_obstacle_height: 0.60 # assume something like an arm is mounted on top of the robot
obstacle_range: 2.5
raytrace_range: 3.0
robot_radius: 0.18
inflation_radius: 0.50
observation_sources: scan bump
scan: {data_type: LaserScan, topic: /scan, marking: true, clearing: false}
bump: {data_type: PointCloud2, topic: mobile_base/sensors/bumper_pointcloud, marking: true, clearing: false}
How to change these grey areas into white area in time?
One more thing, I think the grey areas attached to static object (black bold lines from wall and desk) in my map are thicker than I request like the grey area around the desk, how to make them thin? Thank you
Edit: one picture is replaced.
Dear (@Fernando\ Herrero), Thank you for your attention. So I should change the inflation radius smaller to be 0.20, i.e. 0.20m.
However, please note the second picture. The white lines are the laser scan, so the area in red ellipse is scanned but still in grey. Why? Thank you!
Originally posted by scopus on ROS Answers with karma: 279 on 2014-09-12
Post score: 0
Original comments
Comment by fherrero on 2014-09-12:
The global costmap is updated with the scan if it has an obstacle layer.
If these areas are result of mobile obstacles, they should be cleared by the scan when you go there again and it's free. The thick areas are result of the obstacle inflation, to prevent the robot to get too close to obstacles
Comment by scopus on 2014-09-12:
However, please note the second picture. The white lines are the laser scan, so the area in red ellipse is scanned but still in grey. Why? Thank you!