foot print non circular move base
I have a robot which has a rectangular body i.e 50*80 cm. How to use this robot in move base such that while autonomously navigating it don't collides with any object. For better result right now i've placed the 2d lidar at the center of the robot.
Asked by dinesh on 2020-11-23 03:44:06 UTC
Answers
Set the footprint
parameter of your costmap
configuration to a list of points defining the bounding box as described in the navigation
robot setup tutorial. Here's the example costmap
configuration file given there:
obstacle_range: 2.5
raytrace_range: 3.0
footprint: [[x0, y0], [x1, y1], ... [xn, yn]]
#robot_radius: ir_of_robot
inflation_radius: 0.55
observation_sources: laser_scan_sensor point_cloud_sensor
laser_scan_sensor: {sensor_frame: frame_name, data_type: LaserScan, topic: topic_name, marking: true, clearing: true}
point_cloud_sensor: {sensor_frame: frame_name, data_type: PointCloud, topic: topic_name, marking: true, clearing: true}
Asked by tryan on 2020-11-23 09:09:24 UTC
Comments
will it make the robot avoid obstacles? cas as i saw the local and global costmap are defined by the minimum measurement of robot. in case of rectngular robot its breath.
Asked by dinesh on 2020-11-24 02:20:34 UTC
The footprint
parameter defines a bounding polygon. It's then up to the planner (and its tuning) to ensure the robot doesn't collide with obstacles. As described in the costmap_2d
documentation, the global and local costmaps usually have an inflation layer that adds a prohibited zone (lethal cost) near obstacles based on the smallest dimension of the footprint (automatically determined). Physically, the robot cannot possibly be within that zone without colliding, so it is forbidden to the planner. The robot is allowed to be close as it may avoid collisions depending on its orientation, though. Therefore, the planner should check that the footprint does not intersect (collide) with an obstacle along a trajectory before selecting that course. Furthermore, the planner tuning determines the cost of approaching obstacles, which you can set high to encourage the planner to choose routes farther from obstacles where available.
Asked by tryan on 2020-11-24 09:09:49 UTC
Comments