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
 

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

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.

argos::CDynamics2DVelocityControl::~CDynamics2DVelocityControl ( )
virtual

Definition at line 41 of file dynamics2d_velocity_control.cpp.

Member Function Documentation

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

Definition at line 48 of file dynamics2d_velocity_control.cpp.

void argos::CDynamics2DVelocityControl::Detach ( )

Definition at line 78 of file dynamics2d_velocity_control.cpp.

Real argos::CDynamics2DVelocityControl::GetAngularVelocity ( ) const

Definition at line 119 of file dynamics2d_velocity_control.cpp.

CVector2 argos::CDynamics2DVelocityControl::GetLinearVelocity ( ) const

Definition at line 103 of file dynamics2d_velocity_control.cpp.

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

Definition at line 45 of file dynamics2d_velocity_control.h.

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

Definition at line 49 of file dynamics2d_velocity_control.h.

void argos::CDynamics2DVelocityControl::Reset ( )

Definition at line 94 of file dynamics2d_velocity_control.cpp.

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

Definition at line 126 of file dynamics2d_velocity_control.cpp.

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

Definition at line 111 of file dynamics2d_velocity_control.cpp.

Member Data Documentation

CDynamics2DEngine& argos::CDynamics2DVelocityControl::m_cDyn2DEngine
protected

Definition at line 55 of file dynamics2d_velocity_control.h.

Real argos::CDynamics2DVelocityControl::m_fMaxForce
protected

Definition at line 65 of file dynamics2d_velocity_control.h.

Real argos::CDynamics2DVelocityControl::m_fMaxTorque
protected

Definition at line 67 of file dynamics2d_velocity_control.h.

cpConstraint* argos::CDynamics2DVelocityControl::m_ptAngularConstraint
protected

Definition at line 63 of file dynamics2d_velocity_control.h.

cpBody* argos::CDynamics2DVelocityControl::m_ptControlBody
protected

Definition at line 57 of file dynamics2d_velocity_control.h.

cpBody* argos::CDynamics2DVelocityControl::m_ptControlledBody
protected

Definition at line 59 of file dynamics2d_velocity_control.h.

cpConstraint* argos::CDynamics2DVelocityControl::m_ptLinearConstraint
protected

Definition at line 61 of file dynamics2d_velocity_control.h.