coverage_path.h
Go to the documentation of this file.
1 #ifndef COVERAGE_PATH_H
2 #define COVERAGE_PATH_H
3 
4 #include <ros/ros.h>
5 #include <geometry_msgs/Pose.h>
6 #include <geometry_msgs/PoseStamped.h>
7 #include <geometry_msgs/PointStamped.h>
8 #include <nav_msgs/Path.h>
9 #include <nav_msgs/OccupancyGrid.h>
10 #include <nav_msgs/GetMap.h>
11 #include <nav_msgs/GetPlan.h>
12 #include <cpswarm_msgs/GetWaypoint.h>
13 #include <cpswarm_msgs/ArrayOfStates.h>
14 #include <cpswarm_msgs/StateEvent.h>
15 #include "lib/spanning_tree.h"
16 #include "lib/mst_path.h"
17 
18 using namespace std;
19 using namespace ros;
20 
24 Publisher path_publisher;
25 
29 Publisher wp_publisher;
30 
34 ServiceClient map_getter;
35 
39 geometry_msgs::Pose pose;
40 
45 
49 string state;
50 
55 
59 map<string, Time> swarm;
60 
65 
69 nav_msgs::OccupancyGrid gridmap;
70 
75 
80 
85 
89 bool visualize;
90 
95 
96 #endif // COVERAGE_PATH_H
ServiceClient map_getter
Service client to get the assigned area.
Definition: coverage_path.h:34
nav_msgs::OccupancyGrid gridmap
The grid map representing the environment to be covered.
Definition: coverage_path.h:69
Publisher path_publisher
Publisher to visualize the coverage path.
Definition: coverage_path.h:24
A class that generates a minimum-spanning-tree (MST) graph for a given grid map.
Definition: spanning_tree.h:19
bool swarm_valid
Whether valid swarm information has been received.
Definition: coverage_path.h:64
double swarm_timeout
Time in seconds after which it is assumed that a swarm member has left the swarm if no position updat...
Definition: coverage_path.h:84
Publisher wp_publisher
Publisher to visualize the current waypoint.
Definition: coverage_path.h:29
geometry_msgs::Pose pose
Current position of the CPS.
Definition: coverage_path.h:39
bool visualize
Whether to publish the coverage path on a topic for visualization.
Definition: coverage_path.h:89
spanning_tree tree
The minimum-spanning-tree (MST) that defines the coverage path.
Definition: coverage_path.h:74
mst_path path
The coverage path.
Definition: coverage_path.h:79
string state
Current state of the CPS.
Definition: coverage_path.h:49
bool reconfigure
Whether the swarm configuration has changed which requires a replanning of the path.
Definition: coverage_path.h:94
map< string, Time > swarm
The UUIDs of the other swarm members.
Definition: coverage_path.h:59
bool state_valid
Whether a valid state has been received.
Definition: coverage_path.h:54
An class to compute the coverage path based on a minimum-spanning-tree (MST).
Definition: mst_path.h:21
bool pose_valid
Whether a valid position has been received.
Definition: coverage_path.h:44


coverage_path
Author(s): Micha Sende
autogenerated on Thu Oct 31 2019 10:37:30