Project: engagement_generation

License: BSD

Dependencies:

Used by: None

All Packages

edu::wpi::hri::gen::policy::DefaultGazePolicy Class Reference

Inheritance diagram for edu::wpi::hri::gen::policy::DefaultGazePolicy:

List of all members.

Public Member Functions

void call (ActorIDStatus actor)
 DefaultGazePolicy (Logger logger, NodeHandle handle, GazeKnowledge gaze, GazeListener next) throws RosException
void gazeChanged (String target, boolean face, boolean lock)
void shutdown ()

Private Attributes

String faceTarget
Subscriber< ActorIDStatushfacesub
final Logger logger

Detailed Description

The default gaze policy is to look at the human at all times. This means that the default gaze policy object should be responding to changes where the human is not being looked at.

Author:
Aaron Holroyd (aholroyd (at) wpi (dot) edu)

Definition at line 49 of file DefaultGazePolicy.java.


Constructor & Destructor Documentation

edu::wpi::hri::gen::policy::DefaultGazePolicy::DefaultGazePolicy ( Logger  logger,
NodeHandle  handle,
GazeKnowledge  gaze,
GazeListener  next 
) throws RosException [inline]

Create a new default gaze policy which maintains that if nothing else is being looked at, look at the human.

Parameters:
logger the logger to log to.
handle The node handle to listen for face messages from.
gaze The gaze knowledge to use when changing the gaze.
next The higher GazeListener which can override this action
Exceptions:
RosException 

Definition at line 70 of file DefaultGazePolicy.java.


Member Function Documentation

void edu::wpi::hri::gen::policy::DefaultGazePolicy::call ( ActorIDStatus  actor  )  [inline]

Definition at line 104 of file DefaultGazePolicy.java.

void edu::wpi::hri::gen::policy::DefaultGazePolicy::gazeChanged ( String  target,
boolean  face,
boolean  lock 
) [inline, virtual]

The gazeChanged method is called when any change of status of the gaze occurs. The GazeKnowledge object will call each listener in the order in which they were added.

Parameters:
target The new target of the gaze.
face True if the new target is a face.
lock True if the new gaze must be locked.

Implements edu::wpi::hri::gen::comm::GazeListener.

Definition at line 91 of file DefaultGazePolicy.java.

void edu::wpi::hri::gen::policy::DefaultGazePolicy::shutdown (  )  [inline]

Shutdown the face subscriber.

Definition at line 86 of file DefaultGazePolicy.java.


Member Data Documentation

Definition at line 52 of file DefaultGazePolicy.java.


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

engagement_generation
Author(s): Aaron Holroyd (aholroyd (at) wpi (dot) edu)
autogenerated on Fri Sep 9 10:35:45 2011