ARGoS  3
A parallel, multi-engine simulator for swarm robotics
pointmass3d_box_model.h
Go to the documentation of this file.
1 
7 #ifndef POINTMASS3D_BOX_H
8 #define POINTMASS3D_BOX_H
9 
10 namespace argos {
11  class CPointMass3DEngine;
12  class CPointMass3DBoxModel;
13  class CQuadRotorEntity;
14 }
15 
16 #include <argos3/plugins/simulator/physics_engines/pointmass3d/pointmass3d_model.h>
17 #include <argos3/plugins/simulator/entities/quadrotor_entity.h>
18 #include <argos3/plugins/simulator/entities/box_entity.h>
19 
20 namespace argos {
21 
23 
24  public:
25 
27  CBoxEntity& c_box);
28  virtual ~CPointMass3DBoxModel() {}
29 
30  virtual void UpdateFromEntityStatus() {}
31  virtual void Step() {}
32  virtual void UpdateEntityStatus() {}
33 
34  virtual void CalculateBoundingBox();
35 
36  virtual bool CheckIntersectionWithRay(Real& f_t_on_ray,
37  const CRay3& c_ray) const;
38 
39  private:
40 
41  CBoxEntity& m_cBoxEntity;
42  };
43 
44 }
45 
46 #endif
argos::CPointMass3DBoxModel::UpdateFromEntityStatus
virtual void UpdateFromEntityStatus()
Updates the state of this model from the status of the associated entity.
Definition: pointmass3d_box_model.h:30
argos
The namespace containing all the ARGoS related code.
Definition: ci_actuator.h:12
argos::CRay3
Definition: ray3.h:19
argos::CBoxEntity
Definition: box_entity.h:20
argos::CPointMass3DModel
Definition: pointmass3d_model.h:21
argos::CPointMass3DBoxModel::CPointMass3DBoxModel
CPointMass3DBoxModel(CPointMass3DEngine &c_engine, CBoxEntity &c_box)
Definition: pointmass3d_box_model.cpp:16
argos::CPointMass3DBoxModel::UpdateEntityStatus
virtual void UpdateEntityStatus()
Updates the status of the associated entity.
Definition: pointmass3d_box_model.h:32
argos::CPointMass3DBoxModel::CalculateBoundingBox
virtual void CalculateBoundingBox()
Calculates the axis-aligned box that contains the entire physics model.
Definition: pointmass3d_box_model.cpp:24
argos::CPointMass3DBoxModel
Definition: pointmass3d_box_model.h:22
argos::CPointMass3DBoxModel::CheckIntersectionWithRay
virtual bool CheckIntersectionWithRay(Real &f_t_on_ray, const CRay3 &c_ray) const
Definition: pointmass3d_box_model.cpp:39
argos::CPointMass3DBoxModel::~CPointMass3DBoxModel
virtual ~CPointMass3DBoxModel()
Definition: pointmass3d_box_model.h:28
argos::CPointMass3DBoxModel::Step
virtual void Step()
Definition: pointmass3d_box_model.h:31
argos::CPointMass3DEngine
Definition: pointmass3d_engine.h:22
Real
float Real
Collects all ARGoS code.
Definition: datatypes.h:39