#include <PfieldDatatypes.h>
Collaboration diagram for PfPose:

Public Member Functions | |
| PfPose () | |
| Constructor. | |
| ~PfPose () | |
| Destructor. | |
| PfPose (const PfPose &p) | |
| Copy-Constructor. | |
| void | init () |
| Resets all values. | |
| PfVec | getRelativeVectorTo (const PfVec &p) const |
| Computes a relative vector to a position. | |
| double | getAngleTo (const PfVec &p) const |
| Computes the relative angle to a position. | |
| void | addVector (const PfVec &vec) |
| Adds a vector to the pose. | |
| void | addAbsVector (const PfVec &vec) |
| Adds a vector to the pose not considering the rotation. | |
| void | rotateAround (const PfVec &position, double angle) |
| Rotates the pose around a position. | |
| void | operator= (const PfPose &p) |
| Copies data from another pose. | |
| void | normRotation () |
| Norms the rotation to the interval [-pi,..,pi]. | |
| void | setPoseFromSamples () |
| Sets the pose from the sample with the highest probability. | |
Public Attributes | |
| PfVec | pos |
| The position of the pose. | |
| double | rotation |
| The rotation of the pose. | |
| double | speed |
| The current speed. | |
| double | probability |
| The probability of the pose. | |
| bool | hasProbabilityDistribution |
| Flag: true, if this pose consists of several poses. | |
| std::vector< PfPose > | probabilityDistribution |
| A set of poses. | |
Definition at line 202 of file PfieldDatatypes.h.
|
|
Constructor.
Definition at line 219 of file PfieldDatatypes.h. References hasProbabilityDistribution, pos, PfVec::x, and PfVec::y. |
|
|
Destructor.
Definition at line 230 of file PfieldDatatypes.h. References probabilityDistribution. |
|
|
Copy-Constructor.
Definition at line 238 of file PfieldDatatypes.h. References hasProbabilityDistribution, pos, probability, probabilityDistribution, rotation, and speed. |
|
|
Resets all values.
Definition at line 256 of file PfieldDatatypes.h. References hasProbabilityDistribution, pos, probabilityDistribution, PfVec::x, and PfVec::y. |
|
|
Computes a relative vector to a position.
Definition at line 271 of file PfieldDatatypes.h. References pos, and PfVec::rotate(). |
Here is the call graph for this function:

|
|
Computes the relative angle to a position.
Definition at line 282 of file PfieldDatatypes.h. References PfVec::getAngle(), pos, and PfVec::rotate(). Referenced by computeChargeForSectorfield(), computeGradientForSectorfield(), PotentialfieldAStarNode::computeHeuristicBetween(), PotentialfieldAStarNode::expand(), FutureWorldModelGenerator::getMaxRotationForObject(), and Sector::pointInside(). |
Here is the call graph for this function:

|
|
Adds a vector to the pose.
Definition at line 292 of file PfieldDatatypes.h. References hasProbabilityDistribution, pos, probabilityDistribution, and PfVec::rotate(). Referenced by PotentialfieldAStarNode::expand(). |
Here is the call graph for this function:

|
|
Adds a vector to the pose not considering the rotation.
Definition at line 307 of file PfieldDatatypes.h. References hasProbabilityDistribution, pos, and probabilityDistribution. Referenced by FutureWorldModelGenerator::executeSingleTransformation(), and Motionfield::pathPlanningStillNeeded(). |
|
||||||||||||
|
Rotates the pose around a position.
Definition at line 321 of file PfieldDatatypes.h. References hasProbabilityDistribution, normRotation(), pos, probabilityDistribution, and PfVec::rotate(). Referenced by FutureWorldModelGenerator::executeSingleTransformation(). |
Here is the call graph for this function:

|
|
Copies data from another pose.
Definition at line 340 of file PfieldDatatypes.h. References hasProbabilityDistribution, pos, probability, probabilityDistribution, rotation, and speed. |
|
|
Norms the rotation to the interval [-pi,..,pi].
Definition at line 360 of file PfieldDatatypes.h. Referenced by PotentialfieldComposition::execute(), FutureWorldModelGenerator::executeSingleTransformation(), FutureWorldModelGenerator::getMaxRotationForObject(), and rotateAround(). |
|
|
Sets the pose from the sample with the highest probability.
Definition at line 374 of file PfieldDatatypes.h. References pos, and probabilityDistribution. Referenced by FutureWorldModelGenerator::transformWorldState(). |
|
|
|
|
The current speed.
Definition at line 210 of file PfieldDatatypes.h. Referenced by Motionfield::execute(), Actionfield::execute(), GT2004PotentialFieldBasicBehaviorOffensiveSupport::execute(), GT2004PotentialFieldBasicBehaviorSupport::execute(), operator=(), and PfPose(). |
|
|
The probability of the pose.
Definition at line 212 of file PfieldDatatypes.h. Referenced by Object::computeAbsFieldVecAt(), Object::computeChargeAt(), GTStandardConverter::execute(), operator=(), PfPose(), and GTStandardConverter::setData(). |
|
|
Flag: true, if this pose consists of several poses.
Definition at line 214 of file PfieldDatatypes.h. Referenced by addAbsVector(), addVector(), Action::canBeApplied(), Object::computeAbsFieldVecAt(), Object::computeChargeAt(), FutureWorldModelGenerator::executeSingleTransformation(), Motionfield::getFieldVecFromAStarSearch(), init(), operator=(), PfPose(), rotateAround(), and FutureWorldModelGenerator::transformWorldState(). |
|
|
A set of poses.
Definition at line 216 of file PfieldDatatypes.h. Referenced by addAbsVector(), addVector(), Action::canBeApplied(), Object::computeAbsFieldVecAt(), Object::computeChargeAt(), FutureWorldModelGenerator::executeSingleTransformation(), Motionfield::getFieldVecFromAStarSearch(), init(), operator=(), PfPose(), rotateAround(), setPoseFromSamples(), FutureWorldModelGenerator::transformWorldState(), and ~PfPose(). |
1.3.6