#include <WalkAccelerationRestrictor.h>
Collaboration diagram for WalkAccelerationRestrictor:

Public Member Functions | |
| WalkAccelerationRestrictor (MotionRequest &motionRequest) | |
| Constructor. | |
| void | restrictAccelerations (double maxTranslationXAcceleration, double maxTranslationYAcceleration, double maxRotationAcceleration) |
| Smoothes a walk motion. | |
| void | saveLastWalkParameters () |
| Saves the walk parameters of the last motion request. | |
Protected Attributes | |
| unsigned long | timeOfLastExecution |
| The time when the skill was executed last, used by smoothWalk. | |
| double | lastTranslationX |
| x translation of the last motion request, used by smoothWalk | |
| double | lastTranslationY |
| y translation of the last motion request, used by smoothWalk | |
| double | lastRotation |
| rotation of the last motion request, used by smoothWalk | |
| MotionRequest & | mr |
| A reference to the motion request. | |
Definition at line 21 of file WalkAccelerationRestrictor.h.
|
|
Constructor.
Definition at line 12 of file WalkAccelerationRestrictor.cpp. |
|
||||||||||||||||
|
Smoothes a walk motion. Changes in speed are clipped to a maximum acceleration. Execute that function at the end of the execution of a basic behavior.
Definition at line 33 of file WalkAccelerationRestrictor.cpp. References fromDegrees(), SystemCall::getCurrentSystemTime(), lastRotation, lastTranslationX, lastTranslationY, mr, Pose2D::rotation, timeOfLastExecution, Pose2D::translation, WalkRequest::walkParams, MotionRequest::walkRequest, Vector2< double >::x, and Vector2< double >::y. Referenced by GT2004BasicBehaviorGoToPoint::execute(), GT2004BasicBehaviorGoForwardToPoint::execute(), GT2004BasicBehaviorGoaliePositionReturn::execute(), and BasicBehaviorStand::execute(). |
Here is the call graph for this function:

|
|
Saves the walk parameters of the last motion request. Should be used at the start of the execution of a skill. Definition at line 17 of file WalkAccelerationRestrictor.cpp. References lastRotation, lastTranslationX, lastTranslationY, MotionRequest::motionType, mr, Pose2D::rotation, Pose2D::translation, WalkRequest::walkParams, MotionRequest::walkRequest, Vector2< double >::x, and Vector2< double >::y. Referenced by GT2004BasicBehaviorGoToPoint::execute(), GT2004BasicBehaviorGoForwardToPoint::execute(), GT2004BasicBehaviorGoaliePositionReturn::execute(), and BasicBehaviorStand::execute(). |
|
|
The time when the skill was executed last, used by smoothWalk.
Definition at line 49 of file WalkAccelerationRestrictor.h. Referenced by restrictAccelerations(). |
|
|
x translation of the last motion request, used by smoothWalk
Definition at line 52 of file WalkAccelerationRestrictor.h. Referenced by restrictAccelerations(), and saveLastWalkParameters(). |
|
|
y translation of the last motion request, used by smoothWalk
Definition at line 55 of file WalkAccelerationRestrictor.h. Referenced by restrictAccelerations(), and saveLastWalkParameters(). |
|
|
rotation of the last motion request, used by smoothWalk
Definition at line 58 of file WalkAccelerationRestrictor.h. Referenced by restrictAccelerations(), and saveLastWalkParameters(). |
|
|
A reference to the motion request.
Definition at line 61 of file WalkAccelerationRestrictor.h. Referenced by restrictAccelerations(), and saveLastWalkParameters(). |
1.3.6