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

#include <differential_steering_default_actuator.h>

+ Inheritance diagram for argos::CDifferentialSteeringDefaultActuator:

Public Types

enum  DIFFERENTIAL_STEERING { LEFT_WHEEL = 0, RIGHT_WHEEL = 1 }
 
- Public Types inherited from argos::CCI_Actuator
typedef std::map< std::string, CCI_Actuator *, std::less< std::string > > TMap
 

Public Member Functions

 CDifferentialSteeringDefaultActuator ()
 Constructor. More...
 
virtual ~CDifferentialSteeringDefaultActuator ()
 Destructor. More...
 
virtual void SetRobot (CComposableEntity &c_entity)
 Sets the entity associated to this actuator. More...
 
virtual void Init (TConfigurationNode &t_tree)
 Initializes the actuator from the XML configuration tree. More...
 
virtual void SetLinearVelocity (Real f_left_velocity, Real f_right_velocity)
 Sets the linear velocity of the two steering. More...
 
virtual void Update ()
 Updates the state of the entity associated to this actuator. More...
 
virtual void Reset ()
 Resets the actuator to the state it had just after Init(). More...
 
- Public Member Functions inherited from argos::CSimulatedActuator
virtual ~CSimulatedActuator ()
 Class destructor. More...
 
- Public Member Functions inherited from argos::CCI_DifferentialSteeringActuator
virtual ~CCI_DifferentialSteeringActuator ()
 
- Public Member Functions inherited from argos::CCI_Actuator
virtual ~CCI_Actuator ()
 Class destructor. More...
 
virtual void Destroy ()
 Destroys the actuator. More...
 
virtual void CreateLuaState (lua_State *pt_lua_state)=0
 Creates the Lua state for this actuator. More...
 
- Public Member Functions inherited from argos::CBaseConfigurableResource
virtual ~CBaseConfigurableResource ()
 Class destructor. More...
 

Protected Member Functions

virtual void AddGaussianNoise ()
 Adds noise to the steering velocity. More...
 

Protected Attributes

CWheeledEntitym_pcWheeledEntity
 
CRandom::CRNGm_pcRNG
 Random number generator. More...
 
Real m_fNoiseStdDeviation
 Noise parameters, at the moment noise is Gaussian. More...
 
- Protected Attributes inherited from argos::CCI_DifferentialSteeringActuator
Real m_fCurrentVelocity [2]
 

Detailed Description

Definition at line 25 of file differential_steering_default_actuator.h.

Member Enumeration Documentation

◆ DIFFERENTIAL_STEERING

Enumerator
LEFT_WHEEL 
RIGHT_WHEEL 

Definition at line 30 of file differential_steering_default_actuator.h.

Constructor & Destructor Documentation

◆ CDifferentialSteeringDefaultActuator()

argos::CDifferentialSteeringDefaultActuator::CDifferentialSteeringDefaultActuator ( )

Constructor.

Definition at line 16 of file differential_steering_default_actuator.cpp.

◆ ~CDifferentialSteeringDefaultActuator()

virtual argos::CDifferentialSteeringDefaultActuator::~CDifferentialSteeringDefaultActuator ( )
inlinevirtual

Destructor.

Definition at line 45 of file differential_steering_default_actuator.h.

Member Function Documentation

◆ AddGaussianNoise()

void argos::CDifferentialSteeringDefaultActuator::AddGaussianNoise ( )
protectedvirtual

Adds noise to the steering velocity.

Definition at line 88 of file differential_steering_default_actuator.cpp.

◆ Init()

void argos::CDifferentialSteeringDefaultActuator::Init ( TConfigurationNode t_node)
virtual

Initializes the actuator from the XML configuration tree.

The default implementation of this method does nothing.

Parameters
t_nodeThe XML configuration tree relative to this actuator.
See also
Reset()
Destroy()

Reimplemented from argos::CCI_Actuator.

Definition at line 43 of file differential_steering_default_actuator.cpp.

◆ Reset()

void argos::CDifferentialSteeringDefaultActuator::Reset ( )
virtual

Resets the actuator to the state it had just after Init().

The default implementation of this method does nothing.

See also
Init()
Destroy()

Reimplemented from argos::CCI_Actuator.

Definition at line 80 of file differential_steering_default_actuator.cpp.

◆ SetLinearVelocity()

void argos::CDifferentialSteeringDefaultActuator::SetLinearVelocity ( Real  f_left_velocity,
Real  f_right_velocity 
)
virtual

Sets the linear velocity of the two steering.

Velocities are expressed in cm per second.

Parameters
f_left_velocitydesired left wheel velocity.
f_right_velocitydesired right wheel velocity.

Implements argos::CCI_DifferentialSteeringActuator.

Definition at line 59 of file differential_steering_default_actuator.cpp.

◆ SetRobot()

void argos::CDifferentialSteeringDefaultActuator::SetRobot ( CComposableEntity c_entity)
virtual

Sets the entity associated to this actuator.

When a controller is created, all the sensors and actuators are created, too. This function is called right before the Init() method of the actuator is called.

Parameters
c_entityThe entity to associate to this actuator.
See also
CComposableEntity
CControllableEntity::SetController()
CCI_Actuator::Init()

Implements argos::CSimulatedActuator.

Definition at line 27 of file differential_steering_default_actuator.cpp.

◆ Update()

void argos::CDifferentialSteeringDefaultActuator::Update ( )
virtual

Updates the state of the entity associated to this actuator.

Implements argos::CSimulatedActuator.

Definition at line 73 of file differential_steering_default_actuator.cpp.

Member Data Documentation

◆ m_fNoiseStdDeviation

Real argos::CDifferentialSteeringDefaultActuator::m_fNoiseStdDeviation
protected

Noise parameters, at the moment noise is Gaussian.

Definition at line 78 of file differential_steering_default_actuator.h.

◆ m_pcRNG

CRandom::CRNG* argos::CDifferentialSteeringDefaultActuator::m_pcRNG
protected

Random number generator.

Definition at line 75 of file differential_steering_default_actuator.h.

◆ m_pcWheeledEntity

CWheeledEntity* argos::CDifferentialSteeringDefaultActuator::m_pcWheeledEntity
protected

Definition at line 72 of file differential_steering_default_actuator.h.


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