#include <dynamics2d_epuck_model.h>
Public Member Functions | |
CDynamics2DEPuckModel (CDynamics2DEngine &c_engine, CEPuckEntity &c_entity) | |
virtual | ~CDynamics2DEPuckModel () |
virtual void | Reset () |
virtual void | UpdateFromEntityStatus () |
Updates the state of this model from the status of the associated entity. More... | |
Public Member Functions inherited from argos::CDynamics2DSingleBodyObjectModel | |
CDynamics2DSingleBodyObjectModel (CDynamics2DEngine &c_engine, CComposableEntity &c_entity) | |
Class constructor. More... | |
virtual | ~CDynamics2DSingleBodyObjectModel () |
Class destructor. More... | |
CComposableEntity & | GetComposableEntity () |
Returns the associated composable entity as a non-const reference. More... | |
const CComposableEntity & | GetComposableEntity () const |
Returns the associated composable entity as a const reference. More... | |
cpBody * | GetBody () |
Returns the body as non-const pointer. More... | |
const cpBody * | GetBody () const |
Returns the body as const pointer. More... | |
virtual void | MoveTo (const CVector3 &c_position, const CQuaternion &c_orientation) |
virtual void | CalculateBoundingBox () |
Calculates the axis-aligned box that contains the entire physics model. More... | |
virtual void | UpdateEntityStatus () |
Updates the status of the associated entity. More... | |
virtual bool | IsCollidingWithSomething () const |
Returns true if this model is colliding with another model. More... | |
virtual void | SetBody (cpBody *pt_body, Real f_height) |
Sets the body and registers the default origin anchor method. More... | |
void | UpdateOriginAnchor (SAnchor &s_anchor) |
Updates the origin anchor associated to the embodied entity. More... | |
Public Member Functions inherited from argos::CDynamics2DModel | |
CDynamics2DModel (CDynamics2DEngine &c_engine, CEmbodiedEntity &c_entity) | |
virtual | ~CDynamics2DModel () |
CDynamics2DEngine & | GetDynamics2DEngine () |
Returns the dynamics 2D engine state. More... | |
const CDynamics2DEngine & | GetDynamics2DEngine () const |
Returns the dynamics 2D engine state as a const reference. More... | |
Public Member Functions inherited from argos::CPhysicsModel | |
CPhysicsModel (CPhysicsEngine &c_engine, CEmbodiedEntity &c_entity) | |
virtual | ~CPhysicsModel () |
CPhysicsEngine & | GetEngine () |
Returns the physics engine associated to this physics model. More... | |
CEmbodiedEntity & | GetEmbodiedEntity () |
Returns the embodied entity associated to this physics model. More... | |
const CEmbodiedEntity & | GetEmbodiedEntity () const |
Returns the embodied entity associated to this physics model. More... | |
virtual void | UpdatePhysics () |
Performs extra work just before the physics update takes place. More... | |
const SBoundingBox & | GetBoundingBox () const |
Returns an axis-aligned box that contains the physics model. More... | |
virtual void | CalculateAnchors () |
Calculates the anchors associated to this model. More... | |
SBoundingBox & | GetBoundingBox () |
Returns an axis-aligned box that contains the physics model. More... | |
template<typename MODEL > | |
void | RegisterAnchorMethod (const SAnchor &s_anchor, void(MODEL::*pt_method)(SAnchor &)) |
Registers an anchor method. More... | |
Additional Inherited Members | |
Public Types inherited from argos::CDynamics2DModel | |
typedef std::map< std::string, CDynamics2DModel * > | TMap |
Public Types inherited from argos::CPhysicsModel | |
typedef std::map< std::string, CPhysicsModel * > | TMap |
typedef std::vector< CPhysicsModel * > | TVector |
Definition at line 23 of file dynamics2d_epuck_model.h.
argos::CDynamics2DEPuckModel::CDynamics2DEPuckModel | ( | CDynamics2DEngine & | c_engine, |
CEPuckEntity & | c_entity | ||
) |
Definition at line 33 of file dynamics2d_epuck_model.cpp.
|
virtual |
Definition at line 74 of file dynamics2d_epuck_model.cpp.
|
virtual |
Reimplemented from argos::CDynamics2DSingleBodyObjectModel.
Definition at line 81 of file dynamics2d_epuck_model.cpp.
|
virtual |
Updates the state of this model from the status of the associated entity.
This method takes the current state of the associated entity (e.g., desired wheel speed, turret rotationss, etc.) and updates the state of this model. Typically, in this method you apply forces and set speeds.
Implements argos::CDynamics2DSingleBodyObjectModel.
Definition at line 89 of file dynamics2d_epuck_model.cpp.