0
$\begingroup$

Rosanswers logo

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


Originally posted by Redhwan on ROS Answers with karma: 73 on 2020-07-16

Post score: 0

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

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.


Originally posted by David Lu with karma: 10932 on 2020-07-17

This answer was ACCEPTED on the original site

Post score: 3

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.