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

#include <dynamics2d_box_model.h>

+ Inheritance diagram for argos::CDynamics2DBoxModel:

List of all members.

Public Member Functions

 CDynamics2DBoxModel (CDynamics2DEngine &c_engine, CBoxEntity &c_entity)
virtual ~CDynamics2DBoxModel ()
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.

Detailed Description

Definition at line 20 of file dynamics2d_box_model.h.


Constructor & Destructor Documentation

Definition at line 16 of file dynamics2d_box_model.cpp.


Member Function Documentation

Returns an axis-aligned box that contains the physics model.

The bounding box is often called AABB.

Implements argos::CPhysicsModel.

Definition at line 224 of file dynamics2d_box_model.cpp.

Returns true if this model is colliding with another model.

Returns:
true if this model is colliding with another model.

Implements argos::CPhysicsModel.

Definition at line 251 of file dynamics2d_box_model.cpp.

bool argos::CDynamics2DBoxModel::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.

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.

Reimplemented from argos::CDynamics2DModel.

Definition at line 141 of file dynamics2d_box_model.cpp.

Implements argos::CDynamics2DModel.

Definition at line 200 of file dynamics2d_box_model.cpp.

Implements argos::CDynamics2DModel.

Definition at line 234 of file dynamics2d_box_model.cpp.

virtual void argos::CDynamics2DBoxModel::UpdateFromEntityStatus ( ) [inline, virtual]

Implements argos::CDynamics2DModel.

Definition at line 37 of file dynamics2d_box_model.h.


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