IRI ROS Specific Driver Class. More...
#include <tibi_dabo_hri_teleop_alg.h>
Public Types | |
typedef tibi_dabo_hri_teleop::TibiDaboHriTeleopConfig | Config |
define config type | |
Public Member Functions | |
void | config_update (Config &new_cfg, uint32_t level=0) |
config update | |
void | load_goal (std::string &filename, std::vector< std::string > &xml_files) |
void | lock (void) |
Lock Algorithm. | |
TibiDaboHriTeleopAlgorithm (void) | |
constructor | |
bool | try_enter (void) |
Tries Access to Algorithm. | |
void | unlock (void) |
Unlock Algorithm. | |
~TibiDaboHriTeleopAlgorithm (void) | |
Destructor. | |
Public Attributes | |
Config | config_ |
config variable | |
std::vector< std::string > | motion_seq_files_ |
std::vector< std::string > | speech_filenames |
std::vector< std::string > | speech_files |
std::string | xml_path |
Protected Types | |
enum | clients { TTS_ = 0, LEDS_ = 1, HEAD_ = 2, LEFT_ARM_ = 3, RIGHT_ARM_ = 4 } |
Protected Member Functions | |
void | scan_XML_files (void) |
Protected Attributes | |
CMutex | alg_mutex_ |
define config type | |
unsigned int | desired_home_interval_ |
unsigned int | desired_repeat_interval_ |
unsigned int | desired_speech_interval |
Static Protected Attributes | |
static const int | NUM_CLIENTS = RIGHT_ARM_-TTS_+1 |
IRI ROS Specific Driver Class.
Definition at line 42 of file tibi_dabo_hri_teleop_alg.h.
typedef tibi_dabo_hri_teleop::TibiDaboHriTeleopConfig TibiDaboHriTeleopAlgorithm::Config |
define config type
Define a Config type with the TibiDaboHriTeleopConfig. All driver implementations will then use the same variable type Config.
Definition at line 73 of file tibi_dabo_hri_teleop_alg.h.
enum TibiDaboHriTeleopAlgorithm::clients [protected] |
Definition at line 61 of file tibi_dabo_hri_teleop_alg.h.
constructor
In this constructor parameters related to the specific driver can be initalized. Those parameters can be also set in the openDriver() function. Attributes from the main node driver class IriBaseDriver such as loop_rate, may be also overload here.
Definition at line 13 of file tibi_dabo_hri_teleop_alg.cpp.
Destructor.
This destructor is called when the object is about to be destroyed.
Definition at line 99 of file tibi_dabo_hri_teleop_alg.cpp.
void TibiDaboHriTeleopAlgorithm::config_update | ( | Config & | new_cfg, |
uint32_t | level = 0 |
||
) |
config update
In this function the driver parameters must be updated with the input config variable. Then the new configuration state will be stored in the Config attribute.
new_cfg | the new driver configuration state |
level | level in which the update is taken place |
Definition at line 103 of file tibi_dabo_hri_teleop_alg.cpp.
void TibiDaboHriTeleopAlgorithm::load_goal | ( | std::string & | filename, |
std::vector< std::string > & | xml_files | ||
) |
Definition at line 125 of file tibi_dabo_hri_teleop_alg.cpp.
void TibiDaboHriTeleopAlgorithm::lock | ( | void | ) | [inline] |
Lock Algorithm.
Locks access to the Algorithm class
Definition at line 98 of file tibi_dabo_hri_teleop_alg.h.
void TibiDaboHriTeleopAlgorithm::scan_XML_files | ( | void | ) | [protected] |
Definition at line 25 of file tibi_dabo_hri_teleop_alg.cpp.
bool TibiDaboHriTeleopAlgorithm::try_enter | ( | void | ) | [inline] |
Tries Access to Algorithm.
Tries access to Algorithm
Definition at line 114 of file tibi_dabo_hri_teleop_alg.h.
void TibiDaboHriTeleopAlgorithm::unlock | ( | void | ) | [inline] |
Unlock Algorithm.
Unlocks access to the Algorithm class
Definition at line 105 of file tibi_dabo_hri_teleop_alg.h.
CMutex TibiDaboHriTeleopAlgorithm::alg_mutex_ [protected] |
define config type
Define a Config type with the TibiDaboHriTeleopConfig. All driver implementations will then use the same variable type Config.
Definition at line 51 of file tibi_dabo_hri_teleop_alg.h.
config variable
This variable has all the driver parameters defined in the cfg config file. Is updated everytime function config_update() is called.
Definition at line 81 of file tibi_dabo_hri_teleop_alg.h.
unsigned int TibiDaboHriTeleopAlgorithm::desired_home_interval_ [protected] |
Definition at line 56 of file tibi_dabo_hri_teleop_alg.h.
unsigned int TibiDaboHriTeleopAlgorithm::desired_repeat_interval_ [protected] |
Definition at line 58 of file tibi_dabo_hri_teleop_alg.h.
unsigned int TibiDaboHriTeleopAlgorithm::desired_speech_interval [protected] |
Definition at line 57 of file tibi_dabo_hri_teleop_alg.h.
std::vector<std::string> TibiDaboHriTeleopAlgorithm::motion_seq_files_ |
Definition at line 134 of file tibi_dabo_hri_teleop_alg.h.
const int TibiDaboHriTeleopAlgorithm::NUM_CLIENTS = RIGHT_ARM_-TTS_+1 [static, protected] |
Definition at line 62 of file tibi_dabo_hri_teleop_alg.h.
std::vector<std::string> TibiDaboHriTeleopAlgorithm::speech_filenames |
Definition at line 136 of file tibi_dabo_hri_teleop_alg.h.
std::vector<std::string> TibiDaboHriTeleopAlgorithm::speech_files |
Definition at line 135 of file tibi_dabo_hri_teleop_alg.h.
std::string TibiDaboHriTeleopAlgorithm::xml_path |
Definition at line 131 of file tibi_dabo_hri_teleop_alg.h.