#include "coverage_path.h"
Go to the source code of this file.
Functions | |
bool | generate_path () |
Generate an optimal coverage path for a given area. More... | |
bool | get_path (nav_msgs::GetPlan::Request &req, nav_msgs::GetPlan::Response &res) |
Callback function to get the coverage path. More... | |
bool | get_waypoint (cpswarm_msgs::GetWaypoint::Request &req, cpswarm_msgs::GetWaypoint::Response &res) |
Callback function to get the current waypoint of the path. More... | |
int | main (int argc, char **argv) |
A ROS node that computes the optimal paths for area coverage with a swarm of CPSs. More... | |
void | pose_callback (const geometry_msgs::PoseStamped::ConstPtr &msg) |
Callback function for position updates. More... | |
void | state_callback (const cpswarm_msgs::StateEvent::ConstPtr &msg) |
Callback function for state updates. More... | |
void | swarm_callback (const cpswarm_msgs::ArrayOfStates::ConstPtr &msg) |
Callback function to receive the states of the other CPSs. More... | |
bool generate_path | ( | ) |
Generate an optimal coverage path for a given area.
Definition at line 7 of file coverage_path.cpp.
bool get_path | ( | nav_msgs::GetPlan::Request & | req, |
nav_msgs::GetPlan::Response & | res | ||
) |
Callback function to get the coverage path.
req | Path planning request that is ignored. |
res | The coverage path. |
Definition at line 44 of file coverage_path.cpp.
bool get_waypoint | ( | cpswarm_msgs::GetWaypoint::Request & | req, |
cpswarm_msgs::GetWaypoint::Response & | res | ||
) |
Callback function to get the current waypoint of the path.
req | Empty get waypoint request. |
res | The current waypoint. |
Definition at line 64 of file coverage_path.cpp.
int main | ( | int | argc, |
char ** | argv | ||
) |
A ROS node that computes the optimal paths for area coverage with a swarm of CPSs.
argc | Number of command line arguments. |
argv | Array of command line arguments. |
Definition at line 169 of file coverage_path.cpp.
void pose_callback | ( | const geometry_msgs::PoseStamped::ConstPtr & | msg | ) |
Callback function for position updates.
msg | Position received from the CPS. |
Definition at line 92 of file coverage_path.cpp.
void state_callback | ( | const cpswarm_msgs::StateEvent::ConstPtr & | msg | ) |
Callback function for state updates.
msg | State received from the CPS. |
Definition at line 106 of file coverage_path.cpp.
void swarm_callback | ( | const cpswarm_msgs::ArrayOfStates::ConstPtr & | msg | ) |
Callback function to receive the states of the other CPSs.
msg | UUIDs and states of the other CPSs. |
Definition at line 120 of file coverage_path.cpp.