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

RS::AccelerateBallToVelocity Class Reference

This skill accelerates the ball to the specified vector If the agent cannot accelerate the ball to the specified velocity, it tries to accelerate it as much as possible in the correct direction. More...

Inheritance diagram for RS::AccelerateBallToVelocity:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 AccelerateBallToVelocity (const Vector &vec)
 Default constructor.

virtual ~AccelerateBallToVelocity ()
 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.


Detailed Description

This skill accelerates the ball to the specified vector If the agent cannot accelerate the ball to the specified velocity, it tries to accelerate it as much as possible in the correct direction.

Precondition:
The agents body direction is known, the balls speed vector is known and the ball is kickable.
Postcondition:
The ball is accelerated to the specified vector.
Unit:
Framework/skill
Revision
1.3
Author
frehe
Date
2005/09/08 08:58:35

Definition at line 79 of file AccelerateBallToVelocity.h.


Constructor & Destructor Documentation

RS::AccelerateBallToVelocity::AccelerateBallToVelocity const Vector   vec
 

Default constructor.

Here you can initialize the skill.

Definition at line 65 of file AccelerateBallToVelocity.cc.

References RS::getView().


Member Function Documentation

Plan RS::AccelerateBallToVelocity::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::SkillWithVector.

Definition at line 93 of file AccelerateBallToVelocity.cc.

References generateStep().

FuzzyBool RS::AccelerateBallToVelocity::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 148 of file AccelerateBallToVelocity.cc.

FuzzyBool RS::AccelerateBallToVelocity::failed   [virtual]
 

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

something went wrong.

Implements RS::Skill.

Definition at line 154 of file AccelerateBallToVelocity.cc.


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