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

Gmapping not marking inf values as free space

asked 2017-03-29 04:19:04 -0500

juanlu gravatar image

updated 2017-04-02 08:19:52 -0500

Hi,

Im working with gmapping and a simulated robot in gazebo under ROS Kinetic.The problem that I have is that gmapping doesn't draw the space under the rays that didn't hit anything as free space.

The first image shows the map displayed in rviz and the second one the simulation environment.

rviz

gazebo

My values for the ranges are:

maxRange = 11.0

maxURange = 9.0

gazeboLaserRange = 10.0

I am using the libgazebo_ros_gpu_laser.so for the laser in gazebo.

Any idea why this happens?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-04-04 08:42:18 -0500

mohsen1989m gravatar image

That is exactly what I expect from gmapping or any other slam algorithm. Having no obstacle in the range of laser means no sensor readings and therefore no information to fill the map. But don't worry, as soon as you start to move around your slam algorithm starts to fill in the map for you.

edit flag offensive delete link more

Comments

I understand that, and I am aware of the fact that the map fills when I move around. My question is why does this happen? Why not fill the space until maxRange of the laser with free space?

juanlu gravatar image juanlu  ( 2017-04-05 01:57:08 -0500 )edit
1

Because you don't know if it's an inf response due to not seeing something or the laser being dazzled or otherwise interfered with.

tfoote gravatar image tfoote  ( 2018-06-15 17:23:23 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2017-03-29 04:08:44 -0500

Seen: 462 times

Last updated: Apr 04 '17