Classes | Macros | Functions | Variables
DroneSwarm.cpp File Reference
#include <ros/ros.h>
#include <std_msgs/String.h>
#include <edrone_client/edrone_services.h>
#include <geometry_msgs/PoseArray.h>
#include <sys/time.h>
#include <boost/thread.hpp>
#include <boost/chrono.hpp>
#include <pthread.h>
#include <unistd.h>
#include <eyantra_drone/Common.h>
#include <eyantra_drone/Protocol.h>
#include <edrone_client/edrone_msgs.h>
#include <stdlib.h>
#include <string>
Include dependency graph for DroneSwarm.cpp:

Go to the source code of this file.

Classes

struct  ip_struct
 

Macros

#define PORT   23
 

Functions

void Callback (const edrone_client::edrone_msgs::ConstPtr &msg)
 
void * createSocket (void *arg)
 
int main (int argc, char **argv)
 
void * readFunction (void *threadid)
 
void * readMulFunction (void *arg)
 
void * serviceFunction (void *arg)
 
void * writeFunction (void *threadid)
 

Variables

vector< string > all_ips
 
Communication com
 
bool isSocketCreate =false
 
Protocol pro
 
edrone_client::edrone_services service [2]
 
ros::ServiceClient serviceClient
 
int userRC [9] ={1500,1500,1500,1500,1000,1000,1000,1000,0}
 

Macro Definition Documentation

#define PORT   23

Definition at line 45 of file DroneSwarm.cpp.

Function Documentation

void Callback ( const edrone_client::edrone_msgs::ConstPtr &  msg)

Definition at line 141 of file DroneSwarm.cpp.

void* createSocket ( void *  arg)

Definition at line 70 of file DroneSwarm.cpp.

int main ( int  argc,
char **  argv 
)

Definition at line 154 of file DroneSwarm.cpp.

void* readFunction ( void *  threadid)

Definition at line 95 of file DroneSwarm.cpp.

void* readMulFunction ( void *  arg)

Definition at line 105 of file DroneSwarm.cpp.

void* serviceFunction ( void *  arg)

Definition at line 117 of file DroneSwarm.cpp.

void* writeFunction ( void *  threadid)

Definition at line 78 of file DroneSwarm.cpp.

Variable Documentation

vector<string> all_ips

Definition at line 62 of file DroneSwarm.cpp.

Definition at line 52 of file DroneSwarm.cpp.

bool isSocketCreate =false

Definition at line 50 of file DroneSwarm.cpp.

Protocol pro

Definition at line 53 of file DroneSwarm.cpp.

edrone_client::edrone_services service[2]

Definition at line 56 of file DroneSwarm.cpp.

ros::ServiceClient serviceClient

Definition at line 55 of file DroneSwarm.cpp.

int userRC[9] ={1500,1500,1500,1500,1000,1000,1000,1000,0}

Definition at line 59 of file DroneSwarm.cpp.



edrone_client
Author(s): Simranjeet Singh
autogenerated on Sun Dec 1 2019 03:30:51