Project: engagement_generation

License: BSD

Dependencies:

Used by: None

All Packages

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

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

List of all members.

Public Member Functions

void call (Performance perf)
void gazeChanged (String target, boolean face, boolean lock)
 GazeInterestPolicy (NodeHandle handle, Logger logger, GazeKnowledge gaze, GazeListener next) throws RosException
void shutdown ()

Private Attributes

final Subscriber< PerformanceactSub
final Logger logger

Detailed Description

The gaze interest policy is used for semi-simulating curiosity. This policy ensures that when the participant starts an extended action, the robot will look at what the participant is doing.

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

Definition at line 55 of file GazeInterestPolicy.java.


Constructor & Destructor Documentation

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

Create a new gaze interest policy to ensure that the curiosity continues.

Parameters:
handle The handle to subscribe with to the extended action.
logger The logger to provide information to the user to.
gaze The gaze state to check if the robot can look.
next The next gaze listener which can override this one.
Exceptions:
RosException when the handle can not subscribe to the required message.

Definition at line 75 of file GazeInterestPolicy.java.


Member Function Documentation

void edu::wpi::hri::gen::policy::GazeInterestPolicy::call ( Performance  perf  )  [inline]

Definition at line 93 of file GazeInterestPolicy.java.

void edu::wpi::hri::gen::policy::GazeInterestPolicy::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 103 of file GazeInterestPolicy.java.

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

Shutdown this objects subscribers to extended actions.

Definition at line 88 of file GazeInterestPolicy.java.


Member Data Documentation

Definition at line 59 of file GazeInterestPolicy.java.

Definition at line 58 of file GazeInterestPolicy.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