argos::CDynamics2DVelocityControl Class Reference

#include <dynamics2d_velocity_control.h>

Inheritance diagram for argos::CDynamics2DVelocityControl:
Collaboration diagram for argos::CDynamics2DVelocityControl:

Public Member Functions

 CDynamics2DVelocityControl (CDynamics2DEngine &c_engine, Real f_max_force, Real f_max_torque, TConfigurationNode *t_node=NULL)
 
virtual ~CDynamics2DVelocityControl ()
 
void AttachTo (cpBody *pt_body)
 
void Detach ()
 
void Reset ()
 
CVector2 GetLinearVelocity () const
 
void SetLinearVelocity (const CVector2 &c_velocity)
 
Real GetAngularVelocity () const
 
void SetAngularVelocity (Real f_velocity)
 
Real GetMaxForce () const
 
Real GetMaxTorque () const
 
cpBody * GetControlBody ()
 
cpBody * GetControlledBody ()
 
cpConstraint * GetLinearConstraint ()
 
cpConstraint * GetAngularConstraint ()
 

Protected Attributes

CDynamics2DEnginem_cDyn2DEngine
 
cpBody * m_ptControlBody
 
cpBody * m_ptControlledBody
 
cpConstraint * m_ptLinearConstraint
 
cpConstraint * m_ptAngularConstraint
 
Real m_fMaxForce
 
Real m_fMaxTorque
 

Detailed Description

Definition at line 20 of file dynamics2d_velocity_control.h.

Constructor & Destructor Documentation

◆ CDynamics2DVelocityControl()

argos::CDynamics2DVelocityControl::CDynamics2DVelocityControl ( CDynamics2DEngine c_engine,
Real  f_max_force,
Real  f_max_torque,
TConfigurationNode t_node = NULL 
)

Definition at line 15 of file dynamics2d_velocity_control.cpp.

◆ ~CDynamics2DVelocityControl()

argos::CDynamics2DVelocityControl::~CDynamics2DVelocityControl ( )
virtual

Definition at line 41 of file dynamics2d_velocity_control.cpp.

Member Function Documentation

◆ AttachTo()

void argos::CDynamics2DVelocityControl::AttachTo ( cpBody *  pt_body)

Definition at line 48 of file dynamics2d_velocity_control.cpp.

◆ Detach()

void argos::CDynamics2DVelocityControl::Detach ( )

Definition at line 78 of file dynamics2d_velocity_control.cpp.

◆ GetAngularConstraint()

cpConstraint* argos::CDynamics2DVelocityControl::GetAngularConstraint ( )
inline

Definition at line 65 of file dynamics2d_velocity_control.h.

◆ GetAngularVelocity()

Real argos::CDynamics2DVelocityControl::GetAngularVelocity ( ) const

Definition at line 119 of file dynamics2d_velocity_control.cpp.

◆ GetControlBody()

cpBody* argos::CDynamics2DVelocityControl::GetControlBody ( )
inline

Definition at line 53 of file dynamics2d_velocity_control.h.

◆ GetControlledBody()

cpBody* argos::CDynamics2DVelocityControl::GetControlledBody ( )
inline

Definition at line 57 of file dynamics2d_velocity_control.h.

◆ GetLinearConstraint()

cpConstraint* argos::CDynamics2DVelocityControl::GetLinearConstraint ( )
inline

Definition at line 61 of file dynamics2d_velocity_control.h.

◆ GetLinearVelocity()

CVector2 argos::CDynamics2DVelocityControl::GetLinearVelocity ( ) const

Definition at line 103 of file dynamics2d_velocity_control.cpp.

◆ GetMaxForce()

Real argos::CDynamics2DVelocityControl::GetMaxForce ( ) const
inline

Definition at line 45 of file dynamics2d_velocity_control.h.

◆ GetMaxTorque()

Real argos::CDynamics2DVelocityControl::GetMaxTorque ( ) const
inline

Definition at line 49 of file dynamics2d_velocity_control.h.

◆ Reset()

void argos::CDynamics2DVelocityControl::Reset ( )

Definition at line 94 of file dynamics2d_velocity_control.cpp.

◆ SetAngularVelocity()

void argos::CDynamics2DVelocityControl::SetAngularVelocity ( Real  f_velocity)

Definition at line 126 of file dynamics2d_velocity_control.cpp.

◆ SetLinearVelocity()

void argos::CDynamics2DVelocityControl::SetLinearVelocity ( const CVector2 c_velocity)

Definition at line 111 of file dynamics2d_velocity_control.cpp.

Member Data Documentation

◆ m_cDyn2DEngine

CDynamics2DEngine& argos::CDynamics2DVelocityControl::m_cDyn2DEngine
protected

Definition at line 71 of file dynamics2d_velocity_control.h.

◆ m_fMaxForce

Real argos::CDynamics2DVelocityControl::m_fMaxForce
protected

Definition at line 81 of file dynamics2d_velocity_control.h.

◆ m_fMaxTorque

Real argos::CDynamics2DVelocityControl::m_fMaxTorque
protected

Definition at line 83 of file dynamics2d_velocity_control.h.

◆ m_ptAngularConstraint

cpConstraint* argos::CDynamics2DVelocityControl::m_ptAngularConstraint
protected

Definition at line 79 of file dynamics2d_velocity_control.h.

◆ m_ptControlBody

cpBody* argos::CDynamics2DVelocityControl::m_ptControlBody
protected

Definition at line 73 of file dynamics2d_velocity_control.h.

◆ m_ptControlledBody

cpBody* argos::CDynamics2DVelocityControl::m_ptControlledBody
protected

Definition at line 75 of file dynamics2d_velocity_control.h.

◆ m_ptLinearConstraint

cpConstraint* argos::CDynamics2DVelocityControl::m_ptLinearConstraint
protected

Definition at line 77 of file dynamics2d_velocity_control.h.