Project: engagement_recognition

License: BSD

Dependencies:

Used by: None

All Packages

Robot Class Reference

#include <robot.h>

Inheritance diagram for Robot:

List of all members.

Static Public Member Functions

static void destroy ()
static void donePoint ()
static std::vector< std::string > getLooking ()
static std::vector< std::string > getPointing ()
static bool isFacialGaze (std::string actor)
static bool isLooking (std::vector< std::string > objects)
static bool isPointing (std::vector< std::string > objects)
static bool isSpeaking ()
static bool isWaiting ()
static void setFacialGaze (bool start, std::string actor)
static void setLookAt (bool start, std::vector< std::string > objects)
static void setPointAt (bool start, std::vector< std::string > objects)
static void setSpeaking (bool start)
static void setWaiting (bool state)

Private Member Functions

void createSemaphores ()
 Robot ()

Static Private Member Functions

static RobotgetRobot ()

Private Attributes

std::string facial_gaze_
ConsoleLoggerlogger_
std::vector< std::string > looking_
std::vector< std::string > pointing_
Semaphoresemaphore_
bool speaking_
bool waiting_

Static Private Attributes

static Robotinstance_ = NULL

Detailed Description

This structure encapsulates the known information about the robot which includes the where the robot is looking and pointing, and if the robot is currently speaking.

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

Definition at line 52 of file robot.h.


Constructor & Destructor Documentation

Robot::Robot (  )  [private]

Default constructor for the Robot class.

Definition at line 43 of file robot.cpp.


Member Function Documentation

void Robot::createSemaphores (  )  [private]

Create the Semaphores for the Robot.

Definition at line 81 of file robot.cpp.

void Robot::destroy (  )  [static]

Deconstruct the Robot.

Definition at line 62 of file robot.cpp.

void Robot::donePoint (  )  [static]

The robot is done pointing at all the objects.

Definition at line 362 of file robot.cpp.

std::vector< std::string > Robot::getLooking (  )  [static]

Return the vector of objects the robot is looking at.

Returns:
The vector of objects the actor is looking at

Definition at line 108 of file robot.cpp.

std::vector< std::string > Robot::getPointing (  )  [static]

Return the vector of objects the robot is pointing at.

Returns:
The vector of objects the actor is pointing at

Definition at line 119 of file robot.cpp.

Robot * Robot::getRobot (  )  [static, private]

Get the instance of the Robot.

Returns:
The Robot

Definition at line 73 of file robot.cpp.

bool Robot::isFacialGaze ( std::string  actor  )  [static]

Determine if the robot is making facial gaze with a specific Actor.

Parameters:
actor The actor id
Returns:
True if the robot is making facial gaze, false otherwise.

Definition at line 97 of file robot.cpp.

bool Robot::isLooking ( std::vector< std::string >  objects  )  [static]

Determine if the robot is looking at a set of objects. This is true in the event that the set of objects the robot is looking at contains the exact same objects as the set of objects given. It is false otherwise.

Parameters:
objects The set of objects
Returns:
True if the robot is looking at the objects, false otherwise.

Definition at line 130 of file robot.cpp.

bool Robot::isPointing ( std::vector< std::string >  objects  )  [static]

Determine if the robot is pointing at a set of objects. This is true in the event that the set of objects the robot is pointing at contains the exact same objects as the set of objects given. It is false otherwise.

Parameters:
objects The set of objects
Returns:
True if the robot is pointing at the objects, false otherwise.

Definition at line 146 of file robot.cpp.

bool Robot::isSpeaking (  )  [static]

Determine whether or not the robot is speaking.

Returns:
True if the robot is speaking, false otherwise

Definition at line 86 of file robot.cpp.

bool Robot::isWaiting (  )  [static]

Return whether or not the Robot is waiting for a response.

Returns:
True if waiting, false otherwise

Definition at line 374 of file robot.cpp.

void Robot::setFacialGaze ( bool  start,
std::string  actor 
) [static]

The robot started making facial gaze with a specific actor.

Parameters:
start Whether the facial gaze is starting or ending
actor The actor

Definition at line 172 of file robot.cpp.

void Robot::setLookAt ( bool  start,
std::vector< std::string >  objects 
) [static]

The robot started or stopped looking at specific objects.

Parameters:
start Looking started or stopped
objects The objects to look at

Definition at line 204 of file robot.cpp.

void Robot::setPointAt ( bool  start,
std::vector< std::string >  objects 
) [static]

The robot started or stopped pointing at specific objects.

Parameters:
start Pointing started or stopped
objects The vector of objects to point at

Definition at line 274 of file robot.cpp.

void Robot::setSpeaking ( bool  start  )  [static]

The robot started or stopped speaking.

Parameters:
start Whether the speaking started or stopped

Definition at line 162 of file robot.cpp.

void Robot::setWaiting ( bool  state  )  [static]

Set whether the robot is waiting for a response or not.

Parameters:
state The new state

Definition at line 385 of file robot.cpp.


Member Data Documentation

std::string Robot::facial_gaze_ [private]

Whether or not the robot is looking at a specific actor's face.

Definition at line 65 of file robot.h.

Robot * Robot::instance_ = NULL [static, private]

The instance of the Robot.

Definition at line 77 of file robot.h.

The ConsoleLogger for the robot class.

Reimplemented from Loggable.

Definition at line 56 of file robot.h.

std::vector<std::string> Robot::looking_ [private]

The series of objects the robot is looking at.

Definition at line 68 of file robot.h.

std::vector<std::string> Robot::pointing_ [private]

The series of objects the robot is pointing at.

Definition at line 71 of file robot.h.

A Semaphore for the Robot.

Definition at line 59 of file robot.h.

bool Robot::speaking_ [private]

Whether or not the robot is speaking.

Definition at line 62 of file robot.h.

bool Robot::waiting_ [private]

Whether the robot is waiting for a response.

Definition at line 74 of file robot.h.


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

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