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

what difference between voxel layer and obstacle layer ?

asked 2020-07-16 21:08:53 -0600

Redhwan gravatar image

When I watch this video here, it explains them at 26:00 sec. Then I opened them in my robot and found them is different.

The local_costmap_params.yaml:

local_costmap:
  global_frame: odom
  robot_base_frame: base_link
  update_frequency: 20.0 
  publish_frequency: 20.0
  resolution: 0.05
  static_map: false
  rolling_window: true
  width: 10.0
  height: 10.0
  footprint_padding: 0.0

  plugins:
    - name: obstacle_layer
      type: "costmap_2d::VoxelLayer"
    - name: inflation_layer
      type: "costmap_2d::InflationLayer"

  inflation_layer:
    inflation_radius: 0.3
    cost_scaling_factor: 3.0
    inflate_unknown: true

And global_costmap_params.yaml

global_costmap:
  global_frame: map
  robot_base_frame: base_link
  update_frequency: 20.0 
  publish_frequency: 20.0
  resolution: 0.05
  static_map: true
  rolling_window: false

  plugins:
    - name: static_map
      type: "costmap_2d::StaticLayer"
    - name: obstacle_layer
      type: "costmap_2d::VoxelLayer"
    - name: inflation_layer
      type: "costmap_2d::InflationLayer"

  inflation_layer:
     inflation_radius: 0.5
     cost_scaling_factor: 5.0

And costmap_common_params.yaml

footprint: [[-0.380, -0.240], [-0.380, 0.240], [0.110, 0.240], [0.11, -0.240]] #RIA-E100

obstacle_layer:
  observation_sources: scan point_cloud_sensor
  scan: {sensor_frame: laser_link, data_type: LaserScan, topic: scan, marking: true, clearing: true, inf_is_valid: true, obstacle_range: 6.0, raytrace_range: 10.0}
track_unknown_space: true
     inflate_unknown: true

My robot is Rabbot

This is a configuration for Gaitech company.

What is the issue if type: "costmap_2d::VoxelLayer" instead of type: "costmap_2d::ObstacleLayer" in local_costmap_params.yaml?

Please your opinion

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2020-07-17 12:44:51 -0600

David Lu gravatar image

VoxelLayer tracks obstacles in 3d, whereas obstacle layer only does two. If you only have a planar laser for instance, then 2d is fine. If you have a 3d sensor or sensors at multiple levels, you may want VoxelLayer.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2020-07-16 21:08:53 -0600

Seen: 2,077 times

Last updated: Jul 17 '20