ARGoS
3
A parallel, multi-engine simulator for swarm robotics
|
Go to the documentation of this file.
8 #include <argos3/plugins/simulator/physics_engines/dynamics2d/dynamics2d_engine.h>
18 m_cDyn2DEngine(c_engine),
19 m_ptControlBody(NULL),
20 m_ptControlledBody(NULL),
21 m_ptLinearConstraint(NULL),
22 m_ptAngularConstraint(NULL),
23 m_fMaxForce(f_max_force),
24 m_fMaxTorque(f_max_torque) {
virtual ~CDynamics2DVelocityControl()
The namespace containing all the ARGoS related code.
Real GetY() const
Returns the y coordinate of this vector.
CVector2 GetLinearVelocity() const
void SetLinearVelocity(const CVector2 &c_velocity)
cpConstraint * m_ptLinearConstraint
cpSpace * GetPhysicsSpace()
Real GetX() const
Returns the x coordinate of this vector.
cpBody * m_ptControlledBody
Real GetAngularVelocity() const
void SetAngularVelocity(Real f_velocity)
cpConstraint * m_ptAngularConstraint
CDynamics2DEngine & m_cDyn2DEngine
CDynamics2DVelocityControl(CDynamics2DEngine &c_engine, Real f_max_force, Real f_max_torque)
float Real
Collects all ARGoS code.
void AttachTo(cpBody *pt_body)