#include <ros/ros.h>
#include <move_base_msgs/MoveBaseAction.h>
#include <actionlib/client/simple_action_client.h>
#include <tf/transform_broadcaster.h>
#include <nav_msgs/Odometry.h>
#include "getgraph.h"
#include "algorithms.h"
Go to the source code of this file.
Defines | |
#define | NUM_MAX_ROBOTS 32 |
Typedefs | |
typedef actionlib::SimpleActionClient < move_base_msgs::MoveBaseAction > | MoveBaseClient |
typedef unsigned int | uint |
Functions | |
void | backup () |
bool | check_interference (void) |
void | goalActiveCallback () |
void | goalDoneCallback (const actionlib::SimpleClientGoalState &state, const move_base_msgs::MoveBaseResultConstPtr &result) |
void | goalFeedbackCallback (const move_base_msgs::MoveBaseFeedbackConstPtr &feedback) |
void | initialize_node () |
int | main (int argc, char **argv) |
void | odomCB (const nav_msgs::Odometry::ConstPtr &msg) |
void | positionsCB (const nav_msgs::Odometry::ConstPtr &msg) |
void | resultsCB (const geometry_msgs::PointStamped::ConstPtr &msg) |
void | send_goal_result (uint gvertex) |
void | send_interference () |
Variables | |
uint | backUpCounter |
ros::Publisher | cmd_vel_pub |
bool | end_simulation = false |
bool | goal_complete |
uint | goalvertex |
int | ID_ROBOT |
bool | initialize = true |
bool | interference |
ros::Publisher | odom_pub |
ros::Subscriber | odom_sub |
bool | ResendGoal |
ros::Publisher | results_pub |
ros::Subscriber | results_sub |
int | TEAMSIZE |
double | xPos [NUM_MAX_ROBOTS] |
double | yPos [NUM_MAX_ROBOTS] |
#define NUM_MAX_ROBOTS 32 |
Definition at line 47 of file Cyclic.cpp.
typedef actionlib::SimpleActionClient<move_base_msgs::MoveBaseAction> MoveBaseClient |
Definition at line 50 of file Cyclic.cpp.
typedef unsigned int uint |
Definition at line 49 of file Cyclic.cpp.
void backup | ( | ) |
Definition at line 93 of file Cyclic.cpp.
bool check_interference | ( | void | ) |
Definition at line 280 of file Cyclic.cpp.
void goalActiveCallback | ( | ) |
Definition at line 149 of file Cyclic.cpp.
void goalDoneCallback | ( | const actionlib::SimpleClientGoalState & | state, |
const move_base_msgs::MoveBaseResultConstPtr & | result | ||
) |
Definition at line 129 of file Cyclic.cpp.
void goalFeedbackCallback | ( | const move_base_msgs::MoveBaseFeedbackConstPtr & | feedback | ) |
Definition at line 302 of file Cyclic.cpp.
void initialize_node | ( | ) |
Definition at line 230 of file Cyclic.cpp.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 337 of file Cyclic.cpp.
void odomCB | ( | const nav_msgs::Odometry::ConstPtr & | msg | ) |
Definition at line 154 of file Cyclic.cpp.
void positionsCB | ( | const nav_msgs::Odometry::ConstPtr & | msg | ) |
Definition at line 169 of file Cyclic.cpp.
void resultsCB | ( | const geometry_msgs::PointStamped::ConstPtr & | msg | ) |
Definition at line 212 of file Cyclic.cpp.
void send_goal_result | ( | uint | gvertex | ) |
Definition at line 73 of file Cyclic.cpp.
void send_interference | ( | ) |
Definition at line 258 of file Cyclic.cpp.
Definition at line 58 of file Cyclic.cpp.
Definition at line 70 of file Cyclic.cpp.
bool end_simulation = false |
Definition at line 56 of file Cyclic.cpp.
bool goal_complete |
Definition at line 54 of file Cyclic.cpp.
Definition at line 57 of file Cyclic.cpp.
int ID_ROBOT |
Definition at line 61 of file Cyclic.cpp.
bool initialize = true |
Definition at line 55 of file Cyclic.cpp.
bool interference |
Definition at line 53 of file Cyclic.cpp.
Definition at line 67 of file Cyclic.cpp.
Definition at line 66 of file Cyclic.cpp.
bool ResendGoal |
Definition at line 52 of file Cyclic.cpp.
Definition at line 69 of file Cyclic.cpp.
Definition at line 68 of file Cyclic.cpp.
int TEAMSIZE |
Definition at line 60 of file Cyclic.cpp.
double xPos[NUM_MAX_ROBOTS] |
Definition at line 63 of file Cyclic.cpp.
double yPos[NUM_MAX_ROBOTS] |
Definition at line 64 of file Cyclic.cpp.