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

describing layers in costmap .yaml files

asked 2019-08-19 00:47:17 -0500

june2473 gravatar image

updated 2019-08-19 00:47:41 -0500

so, we have 3 .yaml files:

1) common_costmap.yaml

2) global_costmap.yaml

3) local_costmap.yaml

For example, let global_costmap has these layers:

      - {name: static,            type: "costmap_2d::StaticLayer"}
      - {name: inflation,         type: "costmap_2d::InflationLayer"}
      - {name: sonar,             type: "range_sensor_layer::RangeSensorLayer"}

where am i supposed to describe layers params, in global_costmap or common costmap or in both?

i mean these lines:

   map_topic: /map
   subscribe_to_updates: true

   inflation_radius: 0.4

   frame: range_sensor_frame
   topics: ["/sensor_us", "/sensor_ir"]
   no_readings_timeout: 2.0
   clear_on_max_reading: false
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-08-19 01:09:51 -0500

mgruhler gravatar image

You can either choose common_costmap.yaml or global_costmap.yaml. Obviously, local_costmap.yaml makes no sense.

It is important to load them to the correct namespace, i.e. into global_costmap, whether you have it in common_costmap.yaml or global_costmap.yaml, as it is shown on this example.

Whether you put it in common_costmap.yaml or global_costmap.yaml should be decided whether you actually have the same configuration of a layer for both, the global and local costmap, or not.

edit flag offensive delete link more

Question Tools



Asked: 2019-08-19 00:47:17 -0500

Seen: 757 times

Last updated: Aug 19 '19