ARGoS
3
A parallel, multi-engine simulator for swarm robotics
|
#include <dynamics2d_model.h>
Public Types | |
typedef std::map< std::string, CDynamics2DModel * > | TMap |
Public Member Functions | |
CDynamics2DModel (CDynamics2DEngine &c_engine, CEmbodiedEntity &c_entity) | |
virtual | ~CDynamics2DModel () |
virtual bool | MoveTo (const CVector3 &c_position, const CQuaternion &c_orientation, bool b_check_only=false) |
Moves the entity to the wanted position and orientation. | |
virtual void | Reset ()=0 |
virtual void | UpdateEntityStatus ()=0 |
virtual void | UpdateFromEntityStatus ()=0 |
Protected Attributes | |
CDynamics2DEngine & | m_cDyn2DEngine |
CVector3 | m_cSpacePosition |
CQuaternion | m_cSpaceOrientation |
Definition at line 22 of file dynamics2d_model.h.
typedef std::map<std::string, CDynamics2DModel*> argos::CDynamics2DModel::TMap |
Reimplemented from argos::CPhysicsModel.
Definition at line 26 of file dynamics2d_model.h.
argos::CDynamics2DModel::CDynamics2DModel | ( | CDynamics2DEngine & | c_engine, |
CEmbodiedEntity & | c_entity | ||
) | [inline] |
Definition at line 30 of file dynamics2d_model.h.
virtual argos::CDynamics2DModel::~CDynamics2DModel | ( | ) | [inline, virtual] |
Definition at line 35 of file dynamics2d_model.h.
virtual bool argos::CDynamics2DModel::MoveTo | ( | const CVector3 & | c_position, |
const CQuaternion & | c_orientation, | ||
bool | b_check_only = false |
||
) | [inline, virtual] |
Moves the entity to the wanted position and orientation.
The movement is allowed only if the object does not collide with anything once in the new position.
c_position | The wanted position. |
c_orientation | The wanted orientation. |
b_check_only | If false , the movement is executed; otherwise, the object is not actually moved. |
true
if no collisions were detected, false
otherwise. Implements argos::CPhysicsModel.
Reimplemented in argos::CDynamics2DEPuckModel, argos::CDynamics2DFootBotModel, argos::CDynamics2DBoxModel, and argos::CDynamics2DCylinderModel.
Definition at line 37 of file dynamics2d_model.h.
virtual void argos::CDynamics2DModel::Reset | ( | ) | [pure virtual] |
virtual void argos::CDynamics2DModel::UpdateEntityStatus | ( | ) | [pure virtual] |
virtual void argos::CDynamics2DModel::UpdateFromEntityStatus | ( | ) | [pure virtual] |
CDynamics2DEngine& argos::CDynamics2DModel::m_cDyn2DEngine [protected] |
Definition at line 50 of file dynamics2d_model.h.
Definition at line 52 of file dynamics2d_model.h.
CVector3 argos::CDynamics2DModel::m_cSpacePosition [protected] |
Definition at line 51 of file dynamics2d_model.h.