ARGoS  3
A parallel, multi-engine simulator for swarm robotics
argos::CDynamics2DModel Class Reference

#include <dynamics2d_model.h>

+ Inheritance diagram for argos::CDynamics2DModel:

List of all members.

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

CDynamics2DEnginem_cDyn2DEngine
CVector3 m_cSpacePosition
CQuaternion m_cSpaceOrientation

Detailed Description

Definition at line 22 of file dynamics2d_model.h.


Member Typedef Documentation

typedef std::map<std::string, CDynamics2DModel*> argos::CDynamics2DModel::TMap

Reimplemented from argos::CPhysicsModel.

Definition at line 26 of file dynamics2d_model.h.


Constructor & Destructor Documentation

Definition at line 30 of file dynamics2d_model.h.

virtual argos::CDynamics2DModel::~CDynamics2DModel ( ) [inline, virtual]

Definition at line 35 of file dynamics2d_model.h.


Member Function Documentation

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.

Parameters:
c_positionThe wanted position.
c_orientationThe wanted orientation.
b_check_onlyIf false, the movement is executed; otherwise, the object is not actually moved.
Returns:
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.


Member Data Documentation


The documentation for this class was generated from the following file: