Signals | Public Member Functions | Public Attributes | Private Types | Private Member Functions | Private Attributes | Static Private Attributes
tibi_dabo_gui::QNode Class Reference

#include <qnode.hpp>

List of all members.

Signals

void rosShutdown ()
void rosShutdown ()
void rosShutdown ()
void rosShutdown ()
void rosShutdown ()
void rosShutdown ()

Public Member Functions

void askGoal (std::string goal)
void buttonPressed (int button)
void buttonPressed (int button)
void buttonPressed (int button)
void cancelHri ()
void cancelHri ()
void cancelHri ()
void exit ()
bool getGoal (std::string &goal)
bool getGoal (std::string &goal)
bool getImage (uchar *&data, int &width, int &height, std::string &encoding)
bool getImage (uchar *&data, int &width, int &height, std::string &encoding)
bool getImage (uchar *&data, int &width, int &height, std::string &encoding)
bool getImageDetect (uchar *&data, int &width, int &height, std::string &encoding)
bool getImageDetect (uchar *&data, int &width, int &height, std::string &encoding)
bool getImageDetect (uchar *&data, int &width, int &height, std::string &encoding)
bool getLocations (std::vector< std::string > &locations)
bool getLocations (std::vector< std::string > &locations)
bool getLocations (std::vector< std::string > &locations)
std::vector< std::vector< int > > getRects ()
std::vector< std::vector< int > > getRects ()
std::vector< std::vector< int > > getRects ()
bool getSentence (double &sentence)
void go ()
bool guiActionActive ()
void haodButtonPressed (int button)
void haodButtonPressed (int button)
void haodButtonPressed (int button)
bool haodRunning ()
bool haodRunning ()
bool haodRunning ()
bool initialize ()
bool initialize ()
bool initialize ()
bool initialize ()
bool initialize ()
bool initialize ()
bool needAssistance ()
bool needAssistance ()
bool needAssistance ()
std::string processAnswer (int question)
std::string processAnswer (int question)
std::string processAnswer (int question)
 QNode (int argc, char **argv)
 QNode (int argc, char **argv)
 QNode (int argc, char **argv)
 QNode (int argc, char **argv)
 QNode (int argc, char **argv)
 QNode (int argc, char **argv)
void run ()
void run ()
void run ()
void run ()
void run ()
void run ()
void setImagePoint (std::vector< int > point)
void setImagePoint (std::vector< int > point)
void setImagePoint (std::vector< int > point)
void setLanguage (int index)
void setLanguage (int index)
void setLanguage (int index)
virtual ~QNode ()
virtual ~QNode ()
virtual ~QNode ()
virtual ~QNode ()
virtual ~QNode ()
virtual ~QNode ()

Public Attributes

std::vector< struct qa_dataqas

Private Types

enum  clients {
  TTS_ = 0, LEDS_ = 1, HEAD_ = 2, LEFT_ARM_ = 3,
  RIGHT_ARM_ = 4, TTS_ = 0, LEDS_ = 1, HEAD_ = 2,
  LEFT_ARM_ = 3, RIGHT_ARM_ = 4, TTS_ = 0, LEDS_ = 1,
  HEAD_ = 2, LEFT_ARM_ = 3, RIGHT_ARM_ = 4
}
enum  clients {
  TTS_ = 0, LEDS_ = 1, HEAD_ = 2, LEFT_ARM_ = 3,
  RIGHT_ARM_ = 4, TTS_ = 0, LEDS_ = 1, HEAD_ = 2,
  LEFT_ARM_ = 3, RIGHT_ARM_ = 4, TTS_ = 0, LEDS_ = 1,
  HEAD_ = 2, LEFT_ARM_ = 3, RIGHT_ARM_ = 4
}
enum  clients {
  TTS_ = 0, LEDS_ = 1, HEAD_ = 2, LEFT_ARM_ = 3,
  RIGHT_ARM_ = 4, TTS_ = 0, LEDS_ = 1, HEAD_ = 2,
  LEFT_ARM_ = 3, RIGHT_ARM_ = 4, TTS_ = 0, LEDS_ = 1,
  HEAD_ = 2, LEFT_ARM_ = 3, RIGHT_ARM_ = 4
}

Private Member Functions

void facesCallback (const face_detector_mono::RectArray::ConstPtr &msg)
void facesCallback (const face_detector_mono::RectArray::ConstPtr &msg)
void facesCallback (const face_detector_mono::RectArray::ConstPtr &msg)
void gui_actionGetFeedbackCallback (tibi_dabo_msgs::guiFeedbackPtr &feedback)
void gui_actionGetFeedbackCallback (tibi_dabo_msgs::guiFeedbackPtr &feedback)
void gui_actionGetResultCallback (tibi_dabo_msgs::guiResultPtr &result)
void gui_actionGetResultCallback (tibi_dabo_msgs::guiResultPtr &result)
bool gui_actionHasSucceedCallback (void)
bool gui_actionHasSucceedCallback (void)
bool gui_actionIsFinishedCallback (void)
bool gui_actionIsFinishedCallback (void)
void gui_actionStartCallback (const tibi_dabo_msgs::guiGoalConstPtr &goal)
void gui_actionStartCallback (const tibi_dabo_msgs::guiGoalConstPtr &goal)
void gui_actionStopCallback (void)
void gui_actionStopCallback (void)
void guiActive ()
void guiActive ()
void guiActive ()
void guiDone (const actionlib::SimpleClientGoalState &state, const tibi_dabo_msgs::guiResultConstPtr &result)
void guiDone (const actionlib::SimpleClientGoalState &state, const tibi_dabo_msgs::guiResultConstPtr &result)
void guiDone (const actionlib::SimpleClientGoalState &state, const tibi_dabo_msgs::guiResultConstPtr &result)
void guiFeedback (const tibi_dabo_msgs::guiFeedbackConstPtr &feedback)
void guiFeedback (const tibi_dabo_msgs::guiFeedbackConstPtr &feedback)
void guiFeedback (const tibi_dabo_msgs::guiFeedbackConstPtr &feedback)
bool guiMakeActionRequest ()
bool guiMakeActionRequest ()
bool guiMakeActionRequest ()
void haodActive ()
void haodActive ()
void haodActive ()
void haodDone (const actionlib::SimpleClientGoalState &state, const tibi_dabo_msgs::haodResultConstPtr &result)
void haodDone (const actionlib::SimpleClientGoalState &state, const tibi_dabo_msgs::haodResultConstPtr &result)
void haodDone (const actionlib::SimpleClientGoalState &state, const tibi_dabo_msgs::haodResultConstPtr &result)
void haodFeedback (const tibi_dabo_msgs::haodFeedbackConstPtr &feedback)
void haodFeedback (const tibi_dabo_msgs::haodFeedbackConstPtr &feedback)
void haodFeedback (const tibi_dabo_msgs::haodFeedbackConstPtr &feedback)
void haodMakeActionRequest (std::vector< int > &point)
void haodMakeActionRequest (std::vector< int > &point)
void haodMakeActionRequest (std::vector< int > &point)
void hriActive ()
void hriActive ()
void hriActive ()
void hriDone (const actionlib::SimpleClientGoalState &state, const tibi_dabo_msgs::sequenceResultConstPtr &result)
void hriDone (const actionlib::SimpleClientGoalState &state, const tibi_dabo_msgs::sequenceResultConstPtr &result)
void hriDone (const actionlib::SimpleClientGoalState &state, const tibi_dabo_msgs::sequenceResultConstPtr &result)
void hriFeedback (const tibi_dabo_msgs::sequenceFeedbackConstPtr &feedback)
void hriFeedback (const tibi_dabo_msgs::sequenceFeedbackConstPtr &feedback)
void hriFeedback (const tibi_dabo_msgs::sequenceFeedbackConstPtr &feedback)
void hriMakeActionRequest (std::vector< std::string > &xml_files)
void hriMakeActionRequest (std::vector< std::string > &xml_files)
void hriMakeActionRequest (std::vector< std::string > &xml_files)
void imageCallback (const sensor_msgs::Image::ConstPtr &msg)
void imageCallback (const sensor_msgs::Image::ConstPtr &msg)
void imageCallback (const sensor_msgs::Image::ConstPtr &msg)
void imageDetectCallback (const sensor_msgs::Image::ConstPtr &msg)
void imageDetectCallback (const sensor_msgs::Image::ConstPtr &msg)
void imageDetectCallback (const sensor_msgs::Image::ConstPtr &msg)
void loadQuestions ()
void loadQuestions ()
void loadQuestions ()
void setHriPrefix (int index)
void setHriPrefix (int index)
void setHriPrefix (int index)

Private Attributes

std::vector< std::vector
< std::string > > 
answers
std::vector< std::vector
< std::string > > 
answers_hri
bool assistance
ros::Subscriber faces_subscriber
ros::ServiceClient get_locations_client
iri_goal_database::get_locations get_locations_srv
actionlib::SimpleActionClient
< tibi_dabo_msgs::guiAction
gui_action
IriActionServer
< tibi_dabo_msgs::guiAction
gui_action_aserver_
bool gui_active
gui_cmds gui_cmd
tibi_dabo_msgs::guiGoal gui_goal
std::string gui_location_id
actionlib::SimpleActionClient
< tibi_dabo_msgs::haodAction
haod_action
bool haod_active
tibi_dabo_msgs::haodGoal haod_goal
actionlib::SimpleActionClient
< tibi_dabo_msgs::sequenceAction
hri_action
bool hri_active
tibi_dabo_msgs::sequenceGoal hri_goal
std::string hri_prefix
sensor_msgs::Image image
ros::Subscriber image_subscriber
sensor_msgs::Image imageDetect
ros::Subscriber imageDetect_subscriber
bool imageDetectReady
bool imageReady
int init_argc
char ** init_argv
ros::Publisher joy_publisher
int language
QMutex mutex
ros::NodeHandle n
bool new_goal_cmd
bool new_gui_cmd
bool new_sentence_cmd
std::vector< std::vector< int > > rects
double sentence_id
std::vector< std::string > xml_files

Static Private Attributes

static const int NUM_CLIENTS = RIGHT_ARM_-TTS_+1

Detailed Description

Definition at line 52 of file qnode.hpp.


Member Enumeration Documentation

Enumerator:
TTS_ 
LEDS_ 
HEAD_ 
LEFT_ARM_ 
RIGHT_ARM_ 
TTS_ 
LEDS_ 
HEAD_ 
LEFT_ARM_ 
RIGHT_ARM_ 
TTS_ 
LEDS_ 
HEAD_ 
LEFT_ARM_ 
RIGHT_ARM_ 

Definition at line 115 of file qnode.hpp.

Enumerator:
TTS_ 
LEDS_ 
HEAD_ 
LEFT_ARM_ 
RIGHT_ARM_ 
TTS_ 
LEDS_ 
HEAD_ 
LEFT_ARM_ 
RIGHT_ARM_ 
TTS_ 
LEDS_ 
HEAD_ 
LEFT_ARM_ 
RIGHT_ARM_ 

Definition at line 115 of file qnode_smart.hpp.

Enumerator:
TTS_ 
LEDS_ 
HEAD_ 
LEFT_ARM_ 
RIGHT_ARM_ 
TTS_ 
LEDS_ 
HEAD_ 
LEFT_ARM_ 
RIGHT_ARM_ 
TTS_ 
LEDS_ 
HEAD_ 
LEFT_ARM_ 
RIGHT_ARM_ 

Definition at line 115 of file qnode_ecmr.hpp.


Constructor & Destructor Documentation

QNode::QNode ( int  argc,
char **  argv 
)

Definition at line 29 of file qnode.cpp.

QNode::~QNode ( ) [virtual]

Definition at line 37 of file qnode.cpp.

tibi_dabo_gui::QNode::QNode ( int  argc,
char **  argv 
)
virtual tibi_dabo_gui::QNode::~QNode ( ) [virtual]
tibi_dabo_gui::QNode::QNode ( int  argc,
char **  argv 
)
virtual tibi_dabo_gui::QNode::~QNode ( ) [virtual]
tibi_dabo_gui::QNode::QNode ( int  argc,
char **  argv 
)
virtual tibi_dabo_gui::QNode::~QNode ( ) [virtual]
tibi_dabo_gui::QNode::QNode ( int  argc,
char **  argv 
)
virtual tibi_dabo_gui::QNode::~QNode ( ) [virtual]
tibi_dabo_gui::QNode::QNode ( int  argc,
char **  argv 
)
virtual tibi_dabo_gui::QNode::~QNode ( ) [virtual]

Member Function Documentation

void QNode::askGoal ( std::string  goal)

Definition at line 77 of file qnode_tibi_coop.cpp.

void QNode::cancelHri ( )

Definition at line 289 of file qnode.cpp.

void QNode::exit ( )

Definition at line 88 of file qnode_dabo_coop.cpp.

void QNode::facesCallback ( const face_detector_mono::RectArray::ConstPtr &  msg) [private]

Definition at line 84 of file qnode.cpp.

void tibi_dabo_gui::QNode::facesCallback ( const face_detector_mono::RectArray::ConstPtr &  msg) [private]
void tibi_dabo_gui::QNode::facesCallback ( const face_detector_mono::RectArray::ConstPtr &  msg) [private]
bool QNode::getGoal ( std::string &  goal)

Definition at line 123 of file qnode_car_coop.cpp.

bool tibi_dabo_gui::QNode::getGoal ( std::string &  goal)
bool tibi_dabo_gui::QNode::getImage ( uchar *&  data,
int &  width,
int &  height,
std::string &  encoding 
)
bool QNode::getImage ( uchar *&  data,
int &  width,
int &  height,
std::string &  encoding 
)

Definition at line 123 of file qnode.cpp.

bool tibi_dabo_gui::QNode::getImage ( uchar *&  data,
int &  width,
int &  height,
std::string &  encoding 
)
bool tibi_dabo_gui::QNode::getImageDetect ( uchar *&  data,
int &  width,
int &  height,
std::string &  encoding 
)
bool QNode::getImageDetect ( uchar *&  data,
int &  width,
int &  height,
std::string &  encoding 
)

Definition at line 135 of file qnode.cpp.

bool tibi_dabo_gui::QNode::getImageDetect ( uchar *&  data,
int &  width,
int &  height,
std::string &  encoding 
)
bool tibi_dabo_gui::QNode::getLocations ( std::vector< std::string > &  locations)
bool tibi_dabo_gui::QNode::getLocations ( std::vector< std::string > &  locations)
bool QNode::getLocations ( std::vector< std::string > &  locations)

Definition at line 102 of file qnode_car_coop.cpp.

Definition at line 300 of file qnode.cpp.

bool QNode::getSentence ( double &  sentence)

Definition at line 135 of file qnode_dabo_coop.cpp.

void QNode::go ( )

Definition at line 87 of file qnode_car_coop.cpp.

Definition at line 204 of file qnode_car_coop.cpp.

Definition at line 196 of file qnode_car_coop.cpp.

Definition at line 183 of file qnode_car_coop.cpp.

Definition at line 171 of file qnode_car_coop.cpp.

Definition at line 139 of file qnode_car_coop.cpp.

void QNode::gui_actionStopCallback ( void  ) [private]

Definition at line 163 of file qnode_car_coop.cpp.

Definition at line 115 of file qnode_tibi_coop.cpp.

void tibi_dabo_gui::QNode::guiActive ( ) [private]
void QNode::guiActive ( ) [private]

Definition at line 228 of file qnode_car_coop.cpp.

void tibi_dabo_gui::QNode::guiActive ( ) [private]
void QNode::guiDone ( const actionlib::SimpleClientGoalState state,
const tibi_dabo_msgs::guiResultConstPtr result 
) [private]

Definition at line 213 of file qnode_car_coop.cpp.

void QNode::guiFeedback ( const tibi_dabo_msgs::guiFeedbackConstPtr feedback) [private]

Definition at line 236 of file qnode_car_coop.cpp.

Definition at line 246 of file qnode_car_coop.cpp.

void QNode::haodActive ( ) [private]

Definition at line 239 of file qnode.cpp.

void QNode::haodButtonPressed ( int  button)

Definition at line 275 of file qnode.cpp.

void QNode::haodDone ( const actionlib::SimpleClientGoalState state,
const tibi_dabo_msgs::haodResultConstPtr result 
) [private]

Definition at line 225 of file qnode.cpp.

void QNode::haodFeedback ( const tibi_dabo_msgs::haodFeedbackConstPtr feedback) [private]

Definition at line 245 of file qnode.cpp.

void tibi_dabo_gui::QNode::haodMakeActionRequest ( std::vector< int > &  point) [private]
void QNode::haodMakeActionRequest ( std::vector< int > &  point) [private]

Definition at line 254 of file qnode.cpp.

void tibi_dabo_gui::QNode::haodMakeActionRequest ( std::vector< int > &  point) [private]

Definition at line 295 of file qnode.cpp.

void tibi_dabo_gui::QNode::hriActive ( ) [private]
void QNode::hriActive ( ) [private]

Definition at line 192 of file qnode.cpp.

void tibi_dabo_gui::QNode::hriActive ( ) [private]
void QNode::hriDone ( const actionlib::SimpleClientGoalState state,
const tibi_dabo_msgs::sequenceResultConstPtr result 
) [private]

Definition at line 179 of file qnode.cpp.

void QNode::hriFeedback ( const tibi_dabo_msgs::sequenceFeedbackConstPtr feedback) [private]

Definition at line 198 of file qnode.cpp.

void QNode::hriMakeActionRequest ( std::vector< std::string > &  xml_files) [private]

Definition at line 206 of file qnode.cpp.

void tibi_dabo_gui::QNode::hriMakeActionRequest ( std::vector< std::string > &  xml_files) [private]
void tibi_dabo_gui::QNode::hriMakeActionRequest ( std::vector< std::string > &  xml_files) [private]
void tibi_dabo_gui::QNode::imageCallback ( const sensor_msgs::Image::ConstPtr &  msg) [private]
void tibi_dabo_gui::QNode::imageCallback ( const sensor_msgs::Image::ConstPtr &  msg) [private]
void QNode::imageCallback ( const sensor_msgs::Image::ConstPtr &  msg) [private]

Definition at line 72 of file qnode.cpp.

void QNode::imageDetectCallback ( const sensor_msgs::Image::ConstPtr &  msg) [private]

Definition at line 78 of file qnode.cpp.

void tibi_dabo_gui::QNode::imageDetectCallback ( const sensor_msgs::Image::ConstPtr &  msg) [private]
void tibi_dabo_gui::QNode::imageDetectCallback ( const sensor_msgs::Image::ConstPtr &  msg) [private]

Definition at line 45 of file qnode.cpp.

void QNode::loadQuestions ( ) [private]

Definition at line 337 of file qnode.cpp.

Definition at line 284 of file qnode.cpp.

std::string tibi_dabo_gui::QNode::processAnswer ( int  question)
std::string tibi_dabo_gui::QNode::processAnswer ( int  question)
std::string QNode::processAnswer ( int  question)

Definition at line 147 of file qnode.cpp.

void QNode::run ( void  )

Definition at line 101 of file qnode.cpp.

void QNode::setHriPrefix ( int  index) [private]

Definition at line 321 of file qnode.cpp.

void tibi_dabo_gui::QNode::setHriPrefix ( int  index) [private]
void tibi_dabo_gui::QNode::setHriPrefix ( int  index) [private]
void QNode::setImagePoint ( std::vector< int >  point)

Definition at line 267 of file qnode.cpp.

void tibi_dabo_gui::QNode::setLanguage ( int  index)
void tibi_dabo_gui::QNode::setLanguage ( int  index)
void QNode::setLanguage ( int  index)

Definition at line 309 of file qnode.cpp.


Member Data Documentation

std::vector< std::vector< std::string > > QNode::answers [private]

Definition at line 113 of file qnode.hpp.

std::vector< std::vector< std::string > > QNode::answers_hri [private]

Definition at line 114 of file qnode.hpp.

Definition at line 121 of file qnode.hpp.

Definition at line 89 of file qnode.hpp.

Definition at line 67 of file qnode_car_coop.hpp.

iri_goal_database::get_locations QNode::get_locations_srv [private]

Definition at line 68 of file qnode_car_coop.hpp.

Definition at line 71 of file qnode_car_coop.hpp.

Definition at line 80 of file qnode_car_coop.hpp.

Definition at line 77 of file qnode_car_coop.hpp.

Definition at line 88 of file qnode_car_coop.hpp.

Definition at line 72 of file qnode_car_coop.hpp.

std::string QNode::gui_location_id [private]

Definition at line 89 of file qnode_car_coop.hpp.

Definition at line 101 of file qnode.hpp.

Definition at line 107 of file qnode.hpp.

Definition at line 102 of file qnode.hpp.

Definition at line 92 of file qnode.hpp.

Definition at line 98 of file qnode.hpp.

Definition at line 93 of file qnode.hpp.

std::string QNode::hri_prefix [private]

Definition at line 120 of file qnode.hpp.

sensor_msgs::Image QNode::image [private]

Definition at line 110 of file qnode.hpp.

Definition at line 85 of file qnode.hpp.

sensor_msgs::Image QNode::imageDetect [private]

Definition at line 112 of file qnode.hpp.

Definition at line 87 of file qnode.hpp.

Definition at line 111 of file qnode.hpp.

Definition at line 109 of file qnode.hpp.

int QNode::init_argc [private]

Definition at line 78 of file qnode.hpp.

char ** QNode::init_argv [private]

Definition at line 79 of file qnode.hpp.

Definition at line 82 of file qnode.hpp.

int QNode::language [private]

Definition at line 119 of file qnode.hpp.

QMutex QNode::mutex [private]

Definition at line 80 of file qnode.hpp.

Definition at line 64 of file qnode_car_coop.hpp.

Definition at line 88 of file qnode_dabo_coop.hpp.

Definition at line 87 of file qnode_car_coop.hpp.

Definition at line 89 of file qnode_dabo_coop.hpp.

static const int QNode::NUM_CLIENTS = RIGHT_ARM_-TTS_+1 [static, private]

Definition at line 116 of file qnode.hpp.

Definition at line 71 of file qnode.hpp.

std::vector< std::vector< int > > QNode::rects [private]

Definition at line 125 of file qnode.hpp.

Definition at line 93 of file qnode_dabo_coop.hpp.

std::vector< std::string > QNode::xml_files [private]

Definition at line 117 of file qnode.hpp.


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


tibi_dabo_gui
Author(s): fherrero
autogenerated on Fri Dec 6 2013 22:01:35