#include <differential_steering_default_actuator.h>
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... | |
Public Member Functions inherited from argos::CBaseConfigurableResource | |
virtual | ~CBaseConfigurableResource () |
Class destructor. More... | |
Protected Attributes | |
CWheeledEntity * | m_pcWheeledEntity |
CRandom::CRNG * | m_pcRNG |
Random number generator. More... | |
Real | m_fNoiseBias [2] |
Noise bias for each wheel. More... | |
Real | m_fNoiseFactorAvg [2] |
Noise factor average (Gaussian model) for each wheel More... | |
Real | m_fNoiseFactorStdDev [2] |
Noise factor stddev (Gaussian model) for each wheel More... | |
Protected Attributes inherited from argos::CCI_DifferentialSteeringActuator | |
Real | m_fCurrentVelocity [2] |
Definition at line 25 of file differential_steering_default_actuator.h.
Enumerator | |
---|---|
LEFT_WHEEL | |
RIGHT_WHEEL |
Definition at line 30 of file differential_steering_default_actuator.h.
argos::CDifferentialSteeringDefaultActuator::CDifferentialSteeringDefaultActuator | ( | ) |
Constructor.
Definition at line 16 of file differential_steering_default_actuator.cpp.
|
inlinevirtual |
Destructor.
Definition at line 45 of file differential_steering_default_actuator.h.
|
virtual |
Initializes the actuator from the XML configuration tree.
The default implementation of this method does nothing.
t_node | The XML configuration tree relative to this actuator. |
Reimplemented from argos::CCI_Actuator.
Definition at line 61 of file differential_steering_default_actuator.cpp.
|
virtual |
Resets the actuator to the state it had just after Init().
The default implementation of this method does nothing.
Reimplemented from argos::CCI_Actuator.
Definition at line 131 of file differential_steering_default_actuator.cpp.
|
virtual |
Sets the linear velocity of the two steering.
Velocities are expressed in cm per second.
f_left_velocity | desired left wheel velocity. |
f_right_velocity | desired right wheel velocity. |
Implements argos::CCI_DifferentialSteeringActuator.
Definition at line 107 of file differential_steering_default_actuator.cpp.
|
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.
c_entity | The entity to associate to this actuator. |
Implements argos::CSimulatedActuator.
Definition at line 32 of file differential_steering_default_actuator.cpp.
|
virtual |
Updates the state of the entity associated to this actuator.
Implements argos::CSimulatedActuator.
Definition at line 124 of file differential_steering_default_actuator.cpp.
|
protected |
Noise bias for each wheel.
Definition at line 73 of file differential_steering_default_actuator.h.
|
protected |
Noise factor average (Gaussian model) for each wheel
Definition at line 76 of file differential_steering_default_actuator.h.
|
protected |
Noise factor stddev (Gaussian model) for each wheel
Definition at line 79 of file differential_steering_default_actuator.h.
|
protected |
Random number generator.
Definition at line 70 of file differential_steering_default_actuator.h.
|
protected |
Definition at line 67 of file differential_steering_default_actuator.h.