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

RS::CatchBall Class Reference

The skill will try to catch the ball. More...

Inheritance diagram for RS::CatchBall:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CatchBall ()
 Default constructor.

virtual ~CatchBall ()
 Destructor should clean 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.


Protected Attributes

BallViewballView
AgentViewagentView

Detailed Description

The skill will try to catch the ball.

If the ball is catchable, this skill will produce a catchcommand in the appropriate angle.

Precondition:
The preconditions for the skill are: The agent is the goalie, the agent's position, the agent's bodydirection, and the ball's position are known and the ball is catchable.
Postcondition:
The ball has been catched.
Unit:
Framework/skill
Revision
1.14
Author
petan
Date
2005/12/06 10:48:20

Definition at line 79 of file CatchBall.h.


Constructor & Destructor Documentation

RS::CatchBall::CatchBall  
 

Default constructor.

Here you can initialize the skill.

Definition at line 61 of file CatchBall.cc.

References RS::getView().


Member Function Documentation

Plan RS::CatchBall::generatePlan   [virtual]
 

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

You can assume that the preconditions of the skill are true (this can be tested by calling the applicable() method, after you have implemented it).

Implements RS::Skill.

Definition at line 81 of file CatchBall.cc.

References generateStep().

virtual FuzzyBool RS::CatchBall::succeed   [inline, virtual]
 

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

its post conditions are satisfied.

Implements RS::Skill.

Definition at line 111 of file CatchBall.h.

virtual FuzzyBool RS::CatchBall::failed   [inline, virtual]
 

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

i.e. something went wrong.

Implements RS::Skill.

Definition at line 115 of file CatchBall.h.


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