Class definition to handle drone roles objects. More...
#include <drone_role.h>
Public Member Functions | |
DroneRole (std::string name) | |
Contructor. | |
ucl_drone::DroneRole | DroneRoleToMsg () |
int | GetDroneRole () |
void | MsgToDroneRole () |
void | SetDroneRole (int role) |
void | SetDroneRole (int role, std::vector< std::string > params) |
void | SetDroneRole (int role, std::string param) |
void | SetDroneRole (int role, int number_of_params,...) |
~DroneRole () | |
Destructor. | |
Static Public Member Functions | |
static ucl_drone::DroneRoles | DroneRolesToMsg (std::vector< DroneRole > roles) |
Private Attributes | |
std::string | name |
Drone name. | |
std::vector< std::string > | parameters |
A vector of strings to use as parameters. | |
int | role |
Identification number of the role (see ucl_drone.h for definitions) |
Class definition to handle drone roles objects.
Definition at line 32 of file drone_role.h.
DroneRole::DroneRole | ( | std::string | name | ) |
Contructor.
[in] | name | String containing the name of the drone |
Definition at line 14 of file drone_role.cpp.
Destructor.
Definition at line 20 of file drone_role.cpp.
ucl_drone::DroneRoles DroneRole::DroneRolesToMsg | ( | std::vector< DroneRole > | roles | ) | [static] |
Definition at line 78 of file drone_role.cpp.
Definition at line 65 of file drone_role.cpp.
int DroneRole::GetDroneRole | ( | ) |
Definition at line 60 of file drone_role.cpp.
void DroneRole::MsgToDroneRole | ( | ) |
Definition at line 74 of file drone_role.cpp.
void DroneRole::SetDroneRole | ( | int | role | ) |
Definition at line 24 of file drone_role.cpp.
void DroneRole::SetDroneRole | ( | int | role, |
std::vector< std::string > | params | ||
) |
Definition at line 30 of file drone_role.cpp.
void DroneRole::SetDroneRole | ( | int | role, |
std::string | param | ||
) |
Definition at line 37 of file drone_role.cpp.
void DroneRole::SetDroneRole | ( | int | role, |
int | number_of_params, | ||
... | |||
) |
Definition at line 44 of file drone_role.cpp.
std::string DroneRole::name [private] |
Drone name.
Definition at line 39 of file drone_role.h.
std::vector< std::string > DroneRole::parameters [private] |
A vector of strings to use as parameters.
Definition at line 38 of file drone_role.h.
int DroneRole::role [private] |
Identification number of the role (see ucl_drone.h for definitions)
Definition at line 37 of file drone_role.h.