Project: engagement_recognition

License: BSD

Dependencies:

Used by: None

All Packages

Handler Class Reference

#include <handler.h>

Inheritance diagram for Handler:

List of all members.

Public Member Functions

void addDirectedGazeRecognizer (Recognizer *rec)
void addEvent (Event event)
virtual APServiceResponse adjPairService (ros::Message *message)=0
virtual ServiceResponse dirGazeService (ros::Message *message, std::vector< std::string > objects)=0
std::string getActor ()
RecognizergetAdjacencyPairRecognizer ()
RecognizergetBackchannelRecognizer ()
RecognizergetDirectedGazeRecognizer (std::string object)
RecognizergetMutualFacialGazeRecognizer ()
 Handler (std::string actor, EventSink *parent)
 Handler ()
virtual ServiceResponse mfGazeService (ros::Message *message)=0
void received (std::string topic, ros::Message *message)
void setActor (std::string actor)
void setAdjacencyPairRecognizer (Recognizer *rec)
void setBackchannelRecognizer (Recognizer *rec)
void setMutualFacialGazeRecognizer (Recognizer *rec)
virtual void updateDirectedGazeRecognizer (std::string object)=0
virtual ~Handler ()

Protected Attributes

std::string actor_
Recognizerap_recognizer_
Recognizerbc_recognizer_
std::map< std::string,
Recognizer * > 
dg_recognizers_
Recognizermfg_recognizer_

Detailed Description

The Handler class is responsible for managing a series of Recognizers. It provides the ability to manipulate each Recognizer in various ways.

Author:
Brett Ponsler (bponsler (at) wpi (dot) edu)

Definition at line 57 of file handler.h.


Constructor & Destructor Documentation

Handler::~Handler (  )  [virtual]

Deconstructor for the Handler.

Definition at line 41 of file handler.cpp.

Handler::Handler (  ) 

Default constructor for the Handler class.

Definition at line 64 of file handler.cpp.

Handler::Handler ( std::string  actor,
EventSink parent 
)

Constructor for the Handler class, takes an actor ID and parent EventSink object.

Parameters:
actor The actor ID for this Handler
parent The parent EventSink object

Definition at line 79 of file handler.cpp.


Member Function Documentation

void Handler::addDirectedGazeRecognizer ( Recognizer rec  ) 

Add a directed gaze recognizer.

Parameters:
rec The recognizer

Definition at line 135 of file handler.cpp.

void Handler::addEvent ( Event  event  ) 

Add the event to this Handler's Timeline.

Parameters:
event The event to add

Definition at line 163 of file handler.cpp.

virtual APServiceResponse Handler::adjPairService ( ros::Message *  message  )  [pure virtual]

The adjacency pair service was called.

Parameters:
message The message that was received
Returns:
The status returned

Implemented in EngagementHandler.

virtual ServiceResponse Handler::dirGazeService ( ros::Message *  message,
std::vector< std::string >  objects 
) [pure virtual]

The directed gaze service was called.

Parameters:
message The message that was received
objects The objects that were received
Returns:
The status returned

Implemented in EngagementHandler.

std::string Handler::getActor (  ) 

Get the actor_ ID for this Handler.

Returns:
The actor ID for this Handler

Definition at line 129 of file handler.cpp.

Recognizer * Handler::getAdjacencyPairRecognizer (  ) 

Return the Adjacency Pair recognizer.

Returns:
The adjacency pair recognizer

Definition at line 214 of file handler.cpp.

Recognizer * Handler::getBackchannelRecognizer (  ) 

Return the Backchannel recognizer.

Returns:
The backchannel recognizer

Definition at line 219 of file handler.cpp.

Recognizer * Handler::getDirectedGazeRecognizer ( std::string  object  ) 

Return the Directed Gaze recognizer.

Parameters:
object The object associated with the recognizer
Returns:
The directed gaze recognizer

Definition at line 204 of file handler.cpp.

Recognizer * Handler::getMutualFacialGazeRecognizer (  ) 

Return the Mutual Facial Gaze recognizer.

Returns:
The mutual facial gaze recognizer

Definition at line 209 of file handler.cpp.

virtual ServiceResponse Handler::mfGazeService ( ros::Message *  message  )  [pure virtual]

The mutual facial gaze service was called.

Parameters:
message The message that was received
Returns:
The status returned

Implemented in EngagementHandler.

void Handler::received ( std::string  topic,
ros::Message *  message 
)

A message was received.

Parameters:
topic The topic
message The message was received

Definition at line 94 of file handler.cpp.

void Handler::setActor ( std::string  actor  ) 

Set the actor_ field for this Handler.

Parameters:
actor The actor's ID

Definition at line 120 of file handler.cpp.

void Handler::setAdjacencyPairRecognizer ( Recognizer rec  ) 

Set the adjancy pair recognizer.

Parameters:
rec The recognizer

Definition at line 149 of file handler.cpp.

void Handler::setBackchannelRecognizer ( Recognizer rec  ) 

Set the backchannel recognizer.

Parameters:
rec The recognizer

Definition at line 156 of file handler.cpp.

void Handler::setMutualFacialGazeRecognizer ( Recognizer rec  ) 

Set the mutual facial gaze recognizer.

Parameters:
rec The recognizer

Definition at line 142 of file handler.cpp.

virtual void Handler::updateDirectedGazeRecognizer ( std::string  object  )  [pure virtual]

Update the directed gaze recognizers using the object name.

Parameters:
object The object name

Implemented in EngagementHandler.


Member Data Documentation

std::string Handler::actor_ [protected]

The actor ID this Handler is responsible for.

Definition at line 61 of file handler.h.

The mutual facial gaze recognizer.

Definition at line 67 of file handler.h.

The backchannel recognizer.

Definition at line 70 of file handler.h.

std::map<std::string, Recognizer*> Handler::dg_recognizers_ [protected]

Hash table storing the recognizers with their associated objects.

Definition at line 73 of file handler.h.

The mutual facial gaze recognizer.

Definition at line 64 of file handler.h.


The documentation for this class was generated from the following files:
  • engagement_recognition/src/recognition/handlers/handler.h
  • engagement_recognition/src/recognition/handlers/handler.cpp

engagement_recognition
Author(s): Brett Ponsler (bponsler (at) wpi (dot) edu)
autogenerated on Fri Sep 9 10:35:49 2011