introlab / rtabmap_ros

RTAB-Map's ROS package.
http://wiki.ros.org/rtabmap_ros
BSD 3-Clause "New" or "Revised" License
957 stars 556 forks source link

rtabmap/octomap_grid issue #684

Open robertsenps opened 2 years ago

robertsenps commented 2 years ago

Hi @matlabbe ,

First of all, let me say thank you, my last issue about libpointmatcher issue is solved right now.

Currently, I'm trying to see different things to make a 2d map. I saw rtabmap/octomap_grid is better to create 2d map rather than the grid_map topic. But, I got this error, the map looks broken.

Here's my latest Grid params for rtabmap/rtabmap:

Grid:
  CellSize:                     0.05
  RangeMax:                     10          # Max range for 2d map
  GroundIsObstacle:             false
  FromDepth:                    false
  RayTracing:                   true
  3D:                           true 

  PreVoxelFiltering:            false

  #PCL CropBox filtering 
  FootprintLength:              0.81        # Should be tuned according robot dimensions
  FootprintWidth:               0.635
  FootprintHeight:              0.7

  #Normal Segmentation 
  NormalsSegmentation:          false
  NormalK:                      40
  MaxGroundAngle:               30          # max slope
  MaxGroundHeight:              0.2

  #Clustering  
  ClusterRadius:                0.2        # Cluster tolerance
  MinClusterSize:               30

  #Flat obstacle 
  FlatObstacleDetected:          false
  MaxObstacleHeight:            0.0        # Max height of the lidar, pointcloud above this will be deleted.

  #After segmentation filtering 
  NoiseFilteringRadius:         0.0
  NoiseFilteringMinNeighbors:   0

GridGlobal:
  #Auxiliary function 
  Eroded:                       true
  FootprintRadius:              0.255      # Patch size for 2d map generation. (Make free space under each keyframe with size of this value)
  OccupancyThr:                 0.5

Thank you.

image

matlabbe commented 2 years ago

I reproduced the problem with the robot mapping demo: Screenshot from 2021-11-30 14-29-37

With the fix above: Screenshot from 2021-11-30 20-26-56