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

costmaps being updated with data from two sensors of different heights

asked 2021-08-05 12:38:34 -0600

mateusguilherme gravatar image

updated 2021-08-05 14:15:32 -0600

Hi

I have a robot with an RPLidar sensor on top and would like to add an ultrasonic sensor to identify and avoid obstacles that are below the LIDAR line. It is possible?

My robot:

image description

Let's say the ultrasonic sensor publishes distance values less than one meter in the topic /ultrasonic_readings and the ultrasonic sensor link is called ultrasonic_link . I believe the ultrasonic sensor readings should be put into the cost maps (global and local), but I'm not sure how to do this. Has anyone done something like that?

costmap_common_params.yaml:

obstacle_range: 2.5
raytrace_range: 3.0
footprint: [[-0.045,-0.10],[-0.045,0.10],[0.17,0.10],[0.17,-0.10]]

observation_sources: scan
scan: {sensor_frame: rplidar_link,  observation_persistence: 0.0, max_obstacle_height: 0.4, min_obstacle_height: 0.0, data_type: LaserScan, topic: /scan, marking: true, clearing: true}

inflation_layer:       
inflation_radius: 0.3 
cost_scaling_factor: 3.0

local_costmap_params.yaml:

local_costmap:
  global_frame: /odom 
  robot_base_frame: /base_footprint
  update_frequency: 7.0
  publish_frequency: 7.0
  static_map: false
  rolling_window: true
  width: 2.0 
  height: 2.0 
  resolution: 0.02 
  transform_tolerance: 0.5

global_costmap_params.yaml:

global_costmap:
  global_frame: /map
  robot_base_frame: /base_footprint
  transform_tolerance: 0.5 
  update_frequency: 7.0
  publish_frequency: 7.0 
  static_map: true
  rolling_window: false

thanks

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-08-05 18:07:05 -0600

miura gravatar image

It is possible. By setting the plugins parameter, you can stack multiple cost maps. I found a QA that is working on something similar, please refer to it.

https://answers.ros.org/question/2068...

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2021-08-05 12:38:34 -0600

Seen: 165 times

Last updated: Aug 05 '21