#include <FormationObject.h>
Inheritance diagram for FormationObject:
Public Member Functions | |
FormationObject (const std::string &name) | |
Constructor. | |
virtual | ~FormationObject () |
Destructor. | |
virtual PfPose | getPose (const PfPose &robotPose) |
Returns the pose of the object in reference to the robot pose (used for getting a pose from formation objects). | |
virtual PfVec | computeAbsFieldVecAt (const PfPose &otherPose) |
Computes the gradient of the formation at a given pose. | |
virtual double | computeChargeAt (const PfPose &otherPose) |
Computes the "charge" of the formation at a given pose. | |
virtual bool | isStatic () const |
Return whether the object is static or not. | |
virtual bool | isActive () const |
Returns whether the object is active or not. | |
virtual PfieldGeometricObject * | getGeometry () const |
Returns a pointer to the geometry of the object. | |
virtual PfieldGeometricObject * | getAbsGeometry () const |
Returns a pointer to the absolute geometry of the object. | |
virtual void | updateData () |
Overrides function from Object, does nothing. | |
virtual Object * | getCopy () |
Polymorph copy function. | |
void | addSingleFormation (SingleFormation *formation) |
Adds a new formation to his object. | |
Protected Attributes | |
std::vector< SingleFormation * > | singleFormations |
The list of single formations belonging to this object. |
Definition at line 320 of file FormationObject.h.
|
Constructor.
Definition at line 414 of file FormationObject.cpp. Referenced by getCopy(). |
|
Destructor.
Definition at line 420 of file FormationObject.cpp. References singleFormations. |
|
Returns the pose of the object in reference to the robot pose (used for getting a pose from formation objects).
Reimplemented from Object. Definition at line 432 of file FormationObject.cpp. References PfPose::pos, and singleFormations. |
|
Computes the gradient of the formation at a given pose.
Reimplemented from Object. Definition at line 454 of file FormationObject.cpp. References singleFormations. |
|
Computes the "charge" of the formation at a given pose.
Reimplemented from Object. Definition at line 467 of file FormationObject.cpp. References singleFormations. |
|
Return whether the object is static or not.
Reimplemented from Object. Definition at line 480 of file FormationObject.cpp. References singleFormations. |
|
Returns whether the object is active or not.
Reimplemented from Object. Definition at line 495 of file FormationObject.cpp. References singleFormations. |
|
Returns a pointer to the geometry of the object.
Reimplemented from Object. Definition at line 363 of file FormationObject.h. |
|
Returns a pointer to the absolute geometry of the object.
Reimplemented from Object. Definition at line 369 of file FormationObject.h. |
|
Overrides function from Object, does nothing.
Reimplemented from Object. Definition at line 373 of file FormationObject.h. |
|
Polymorph copy function.
Reimplemented from Object. Definition at line 510 of file FormationObject.cpp. References addSingleFormation(), FormationObject(), and singleFormations. |
Here is the call graph for this function:
|
Adds a new formation to his object.
Definition at line 383 of file FormationObject.h. References singleFormations. Referenced by getCopy(), and Parser::parseFormationObject(). |
|
The list of single formations belonging to this object.
Definition at line 388 of file FormationObject.h. Referenced by addSingleFormation(), computeAbsFieldVecAt(), computeChargeAt(), getCopy(), getPose(), isActive(), isStatic(), and ~FormationObject(). |