ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

useless costmap comming

asked 2020-11-23 04:43:24 -0500

dinesh gravatar image

Whenever i launch the move base and change the initial position of robot or after the robot moves. Their is some remainig costmap which are not valid. image description

For example in above winodw, their is extra costmap which is stopping the rviz to create a path to location across that.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
2

answered 2020-11-23 07:53:39 -0500

tryan gravatar image

It looks like your sensor data are not clearing the global cost map there. These ROS wiki pages will give you more information:

I recommend ensuring that the clearing parameter of your sensor(s) is set to true and your raytrace_range is large enough as in this example:

obstacle_range: 2.5
raytrace_range: 3.0
footprint: [[x0, y0], [x1, y1], ... [xn, yn]]
#robot_radius: ir_of_robot
inflation_radius: 0.55

observation_sources: laser_scan_sensor point_cloud_sensor

laser_scan_sensor: {sensor_frame: frame_name, data_type: LaserScan, topic: topic_name, marking: true, clearing: true}

point_cloud_sensor: {sensor_frame: frame_name, data_type: PointCloud, topic: topic_name, marking: true, clearing: true}

One way to troubleshoot this issue is to move the robot closer to the blocked area and see if short-range sensor data clears it. If these parameters don't fix the issue, please, post your configuration files and the result of moving closer to the blockage.

edit flag offensive delete link more

Comments

Maybe publish_frequency is set to 0. Try increasing it to 5.0 or something like that.

miura gravatar image miura  ( 2020-11-23 09:17:48 -0500 )edit

Ok got it. but when i change the initial position of the robot from rviz since the laserscan is unable to find those costmaps that time they are still left. how do i remove them also?

dinesh gravatar image dinesh  ( 2020-11-24 00:25:11 -0500 )edit
0

answered 2020-11-24 02:40:13 -0500

lfvm0001 gravatar image

rosservice call /move_base/clear_costmaps "{}"

edit flag offensive delete link more

Comments

Thanks i got it.

dinesh gravatar image dinesh  ( 2020-11-24 02:42:02 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2020-11-23 04:43:24 -0500

Seen: 165 times

Last updated: Nov 24 '20