ARGoS
3
A parallel, multi-engine simulator for swarm robotics
|
#include <dynamics2d_epuck_model.h>
Public Member Functions | |
CDynamics2DEPuckModel (CDynamics2DEngine &c_engine, CEPuckEntity &c_entity) | |
virtual | ~CDynamics2DEPuckModel () |
virtual bool | CheckIntersectionWithRay (Real &f_t_on_ray, const CRay3 &c_ray) const |
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 () |
virtual void | CalculateBoundingBox () |
Returns an axis-aligned box that contains the physics model. | |
virtual void | UpdateEntityStatus () |
virtual void | UpdateFromEntityStatus () |
virtual bool | IsCollidingWithSomething () const |
Returns true if this model is colliding with another model. |
Definition at line 22 of file dynamics2d_epuck_model.h.
argos::CDynamics2DEPuckModel::CDynamics2DEPuckModel | ( | CDynamics2DEngine & | c_engine, |
CEPuckEntity & | c_entity | ||
) |
Definition at line 31 of file dynamics2d_epuck_model.cpp.
argos::CDynamics2DEPuckModel::~CDynamics2DEPuckModel | ( | ) | [virtual] |
Definition at line 74 of file dynamics2d_epuck_model.cpp.
void argos::CDynamics2DEPuckModel::CalculateBoundingBox | ( | ) | [virtual] |
Returns an axis-aligned box that contains the physics model.
The bounding box is often called AABB.
Implements argos::CPhysicsModel.
Definition at line 177 of file dynamics2d_epuck_model.cpp.
bool argos::CDynamics2DEPuckModel::CheckIntersectionWithRay | ( | Real & | f_t_on_ray, |
const CRay3 & | c_ray | ||
) | const [virtual] |
Definition at line 85 of file dynamics2d_epuck_model.cpp.
bool argos::CDynamics2DEPuckModel::IsCollidingWithSomething | ( | ) | const [virtual] |
Returns true
if this model is colliding with another model.
true
if this model is colliding with another model. Implements argos::CPhysicsModel.
Definition at line 228 of file dynamics2d_epuck_model.cpp.
bool argos::CDynamics2DEPuckModel::MoveTo | ( | const CVector3 & | c_position, |
const CQuaternion & | c_orientation, | ||
bool | b_check_only = false |
||
) | [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. Reimplemented from argos::CDynamics2DModel.
Definition at line 111 of file dynamics2d_epuck_model.cpp.
void argos::CDynamics2DEPuckModel::Reset | ( | ) | [virtual] |
Implements argos::CDynamics2DModel.
Definition at line 155 of file dynamics2d_epuck_model.cpp.
void argos::CDynamics2DEPuckModel::UpdateEntityStatus | ( | ) | [virtual] |
Implements argos::CDynamics2DModel.
Definition at line 187 of file dynamics2d_epuck_model.cpp.
void argos::CDynamics2DEPuckModel::UpdateFromEntityStatus | ( | ) | [virtual] |
Implements argos::CDynamics2DModel.
Definition at line 212 of file dynamics2d_epuck_model.cpp.