Project: engagement_recognition

License: BSD

Dependencies:

Used by: None

All Packages

DirectedGazeRecognizer Class Reference

#include <directed_gaze_recognizer.h>

Inheritance diagram for DirectedGazeRecognizer:

List of all members.

Public Member Functions

 DirectedGazeRecognizer (std::string actor, std::string object, EventSink *sink)
 DirectedGazeRecognizer ()
std::string getObject ()
void initialize (initiator::Initiator initiator)
void transition (Event event)

Static Public Member Functions

static std::string type ()

Private Attributes

Action action_
ros::Publisher hi_dir_gaze_pub_
std::string object_

Detailed Description

The DirectedGazeRecognizer provides the concrete implementation for the directed gaze recognizer. Which is responsible for detecting directed gaze that is initiated by either an Actor or the Robot.

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

Definition at line 48 of file directed_gaze_recognizer.h.


Constructor & Destructor Documentation

DirectedGazeRecognizer::DirectedGazeRecognizer (  ) 

Default constructor for DirectedGazeRecognizer.

Definition at line 42 of file directed_gaze_recognizer.cpp.

DirectedGazeRecognizer::DirectedGazeRecognizer ( std::string  actor,
std::string  object,
EventSink sink 
)

Constructor for DirectedGazeRecognizer which takes an Actor, and an EventSink.

Parameters:
actor The actor for this recognizer
object The object for this recognizer
sink The parent EventSink object

Definition at line 68 of file directed_gaze_recognizer.cpp.


Member Function Documentation

std::string DirectedGazeRecognizer::getObject (  )  [virtual]

Return the object associated with this Recognizer. If there is an object, otherwise return an empty string.

Returns:
The object associated with this Recognizer

Reimplemented from Recognizer.

Definition at line 241 of file directed_gaze_recognizer.cpp.

void DirectedGazeRecognizer::initialize ( initiator::Initiator  initiator  ) 

Initialize this Recognizer.

Parameters:
initiator The initiator of the recognizer

Reimplemented from Recognizer.

Definition at line 95 of file directed_gaze_recognizer.cpp.

void DirectedGazeRecognizer::transition ( Event  event  )  [virtual]

Transition into a new state based on an event.

Parameters:
event The event

Implements Recognizer.

Definition at line 132 of file directed_gaze_recognizer.cpp.

std::string DirectedGazeRecognizer::type (  )  [static]

Static method that gives the type of this State.

Returns:
The type of this state

Definition at line 246 of file directed_gaze_recognizer.cpp.


Member Data Documentation

The action used to initiate the directed gaze.

Reimplemented from Recognizer.

Definition at line 58 of file directed_gaze_recognizer.h.

ros::Publisher DirectedGazeRecognizer::hi_dir_gaze_pub_ [private]

Publish then human initiated directed gaze message.

Definition at line 55 of file directed_gaze_recognizer.h.

std::string DirectedGazeRecognizer::object_ [private]

The object being directed toward.

Definition at line 52 of file directed_gaze_recognizer.h.


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

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