ethz-asl / polygon_coverage_planning

Coverage planning in general polygons with holes.
GNU General Public License v3.0
529 stars 155 forks source link

using with map (map.pgm or occupancy grid map) #89

Closed muratkoc503 closed 1 year ago

muratkoc503 commented 1 year ago

i want to use planner with map (map.pgm). How to use planner with map? Must i convert obstacles in Occupancy Grid Map to polygon? How i use this planner in real time? Thanks.

rikba commented 1 year ago

Hi Murat

Yes, you would have to convert the Occupancy Grid Map to a polygon map somehow.

In general, you can set a new polygon via rosservice call /coverage_planner/set_polygon and plan a new path via rosservice call /coverage_planner/plan_path. However, this planner is intended for more of a static map. If you constantly update the map and the plan it will not really be continuous. Let's say you could update the plan probably once per room, but not with 5 Hz. If you have fast update rates, you probably want to use some spanning tree like algorithm that works on a discrete map.

muratkoc503 commented 1 year ago

thanks. i understood clearly.