Only released in EOL distros:
A package that generates an optimal path to cover a given area with a cyber physical system (CPS).
- Maintainer status: developed
- Maintainer: Micha Sende <sende AT lakeside-labs DOT com>
- Author: Micha Sende <sende AT lakeside-labs DOT com>
- License: Apache License 2.0
- Source: git https://github.com/cpswarm/swarm_functions.git (branch: kinetic-devel)
This package depends on the following message definitions:
The communication between CPSs is based on the CPSwarm Communication Library.
The following packages of the swarm functions library are required:
The following packages of the sensing and actuation library are required:
Further required packages are:
Run the launch file
roslaunch coverage_path coverage_path.launch
to launch the coverage_path node.
The launch file can be configured with following parameters:
id (integer, default: 1)
- The identifier (ID) of the CPS used for name spacing in simulation.
output (string, default: screen)
Whether to show the program output (screen) or to write it to a log file (log).
In the param subdirectory there is the parameter file coverage_path.yaml that allows to configure the behavior of the coverage_path node.
coverage_pathThe coverage_path node generates a path that allows a CPS to cover a given area. It uses the area assigned by the area_division package. The generated coverage path is based on a minimum spanning tree to optimally sweep the area. The path is regenerated when area to be covered changes. The path can be retrieved either as a whole or waypoint after waypoint. In the latter case, the current waypoint is returned, based on the current position of the CPS.
Subscribed Topicsarea/assigned (nav_msgs/OccupancyGrid)
- The area to be covered by this CPS. Only called if divide_area=true.
- The area to be covered. Only called if divide_area=false.
Published Topicscoverage_path/path (nav_msgs/Path)
- The generated path for visualization purposes. Only published if the parameter visualize is set to true.
- The current waypoint of the generated path for visualization purposes. Only published if the parameter visualize is set to true.
- The minimum spanning tree of the area for visualization purposes. Only published if the parameter visualize is set to true.
- Provides the complete generated path.
- Provides the current waypoint of the generated path.
Services Calledarea/get_area (cpswarm_msgs/GetPoints)
- Get the points defining the polygon of the area to be covered.
Parameters~loop_rate (real, default: 1.5)
- The frequency in Hz at which to run the control loops.
- The size of the message queue used for publishing and subscribing to topics.
- The grid map underlying the path planning will be downsampled to this resolution in meter / cell.
- Whether to publish the coverage path on a topic for visualization.
- Whether to divide the area among the CPSs before generating the path or to generate the path on the complete map. If true, downsampling is not available.
- Whether the sweeping pattern is vertical or horizontal.
- Whether there are only waypoints at turning points of the path or also waypoints regularly spaced on straight line segments of the path.
This work is supported by the European Commission through the CPSwarm H2020 project under grant no. 731946.