Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

RS::TurnBodyToPoint Class Reference

Turns the agents body so that it faces the defined position. More...

Inheritance diagram for RS::TurnBodyToPoint:

Inheritance graph
[legend]
Collaboration diagram for RS::TurnBodyToPoint:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TurnBodyToPoint (const Point &pos)
 Default constructor, it is ok since the class is abstract all subclasses should make sure to get default values for the arguments.

virtual ~TurnBodyToPoint ()
 Destructor cleaning up after the skill.

virtual void reset ()
 Reset any internal state in the skill.

virtual Plan generatePlan ()
 This method is used to generate a plan for how the goal of the skill should be obtained by the agent.

virtual AgentStep generateStep ()
 Generate a step for how to accomplish the goal of the skill.

virtual FuzzyBool persistent ()
 This method should return a FuzzyBool telling the caller if the skill wants to be called again.

virtual FuzzyBool applicable ()
 This method should implement the precondition specified in the description of the skill.

virtual FuzzyBool succeed ()
 Return true (close to 1) if the skill has succeeded, i.e.

virtual FuzzyBool failed ()
 Return true (close to 1) if the skill has failed, i.e.


Detailed Description

Turns the agents body so that it faces the defined position.

This can be used in preparation for moving.

Precondition:
The agents position and body direction should be known.
Postcondition:
The agents body is turned towards the defined position.
Unit:
Framework
Revision
1.5
Author
frehe
Date
2005/09/08 08:58:36

Definition at line 81 of file TurnBodyToPoint.h.


Member Function Documentation

Plan RS::TurnBodyToPoint::generatePlan   [virtual]
 

This method is used to generate a plan for how the goal of the skill should be obtained by the agent.

Abstract since no concrete instances of this class should be created.

Implements RS::SkillWithPosition.

Definition at line 101 of file TurnBodyToPoint.cc.

References generateStep().

FuzzyBool RS::TurnBodyToPoint::persistent   [virtual]
 

This method should return a FuzzyBool telling the caller if the skill wants to be called again.

Abstract since no concrete instances of this class should be created.

Implements RS::SkillWithPosition.

Definition at line 146 of file TurnBodyToPoint.cc.

FuzzyBool RS::TurnBodyToPoint::applicable   [virtual]
 

This method should implement the precondition specified in the description of the skill.

Abstract since no concrete instances of this class should be created.

Implements RS::SkillWithPosition.

Definition at line 153 of file TurnBodyToPoint.cc.

References RS::AgentView::getBodyDirection(), and RS::AgentView::getPosition().

FuzzyBool RS::TurnBodyToPoint::succeed   [virtual]
 

Return true (close to 1) if the skill has succeeded, i.e.

its post conditions are satisfied.

Implements RS::Skill.

Definition at line 159 of file TurnBodyToPoint.cc.

FuzzyBool RS::TurnBodyToPoint::failed   [virtual]
 

Return true (close to 1) if the skill has failed, i.e.

something went wrong.

Implements RS::Skill.

Definition at line 165 of file TurnBodyToPoint.cc.


The documentation for this class was generated from the following files:
Generated on Mon Aug 29 08:28:22 2011 for RoboSoc by doxygen1.3-rc3