Public Types | Public Member Functions | Public Attributes | Protected Types | Protected Member Functions | Protected Attributes | Static Protected Attributes
TibiDaboHriTeleopAlgorithm Class Reference

IRI ROS Specific Driver Class. More...

#include <tibi_dabo_hri_teleop_alg.h>

List of all members.

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

Detailed Description

IRI ROS Specific Driver Class.

Definition at line 42 of file tibi_dabo_hri_teleop_alg.h.


Member Typedef Documentation

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.


Member Enumeration Documentation

Enumerator:
TTS_ 
LEDS_ 
HEAD_ 
LEFT_ARM_ 
RIGHT_ARM_ 

Definition at line 61 of file tibi_dabo_hri_teleop_alg.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.

Parameters:
new_cfgthe new driver configuration state
levellevel 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.

Tries Access to Algorithm.

Tries access to Algorithm

Returns:
true if the lock was adquired, false otherwise

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.


Member Data Documentation

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.

Definition at line 56 of file tibi_dabo_hri_teleop_alg.h.

Definition at line 58 of file tibi_dabo_hri_teleop_alg.h.

Definition at line 57 of file tibi_dabo_hri_teleop_alg.h.

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.

Definition at line 136 of file tibi_dabo_hri_teleop_alg.h.

Definition at line 135 of file tibi_dabo_hri_teleop_alg.h.

Definition at line 131 of file tibi_dabo_hri_teleop_alg.h.


The documentation for this class was generated from the following files:


tibi_dabo_hri_teleop
Author(s):
autogenerated on Fri Dec 6 2013 23:16:37