ARGoS
3
A parallel, multi-engine simulator for swarm robotics
|
#include <footbot_distance_scanner_default_actuator.h>
Public Member Functions | |
CFootBotDistanceScannerDefaultActuator () | |
virtual | ~CFootBotDistanceScannerDefaultActuator () |
virtual void | SetRobot (CComposableEntity &c_entity) |
Sets the entity associated to this actuator. | |
virtual void | SetAngle (const CRadians &c_angle) |
Sets the distance scanner angle The distance scanner can be controller in position or in speed. | |
virtual void | SetRPM (Real f_rpm) |
Sets the distance scanner speed The distance scanner can be controller in position or in speed. | |
virtual void | Enable () |
Enables the distance scanner. | |
virtual void | Disable () |
Disables the distance scanner. | |
virtual void | Update () |
Updates the state of the entity associated to this actuator. | |
virtual void | Reset () |
Resets the actuator to the state it had just after Init(). | |
Static Public Attributes | |
static const Real | RPM_TO_RADIANS_PER_SEC = ARGOS_PI / 30.0f |
Definition at line 24 of file footbot_distance_scanner_default_actuator.h.
Definition at line 16 of file footbot_distance_scanner_default_actuator.cpp.
virtual argos::CFootBotDistanceScannerDefaultActuator::~CFootBotDistanceScannerDefaultActuator | ( | ) | [inline, virtual] |
Definition at line 32 of file footbot_distance_scanner_default_actuator.h.
void argos::CFootBotDistanceScannerDefaultActuator::Disable | ( | ) | [virtual] |
Disables the distance scanner.
Implements argos::CCI_FootBotDistanceScannerActuator.
Definition at line 55 of file footbot_distance_scanner_default_actuator.cpp.
void argos::CFootBotDistanceScannerDefaultActuator::Enable | ( | ) | [virtual] |
Enables the distance scanner.
Implements argos::CCI_FootBotDistanceScannerActuator.
Definition at line 48 of file footbot_distance_scanner_default_actuator.cpp.
void argos::CFootBotDistanceScannerDefaultActuator::Reset | ( | ) | [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 75 of file footbot_distance_scanner_default_actuator.cpp.
void argos::CFootBotDistanceScannerDefaultActuator::SetAngle | ( | const CRadians & | c_angle | ) | [virtual] |
Sets the distance scanner angle The distance scanner can be controller in position or in speed.
This method allows you to set the desired angle of the ds
c_angle | desired distance scanner angle - radians |
Implements argos::CCI_FootBotDistanceScannerActuator.
Definition at line 32 of file footbot_distance_scanner_default_actuator.cpp.
void argos::CFootBotDistanceScannerDefaultActuator::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.
c_entity | The entity to associate to this actuator. |
Implements argos::CSimulatedActuator.
Definition at line 23 of file footbot_distance_scanner_default_actuator.cpp.
void argos::CFootBotDistanceScannerDefaultActuator::SetRPM | ( | Real | f_rpm | ) | [virtual] |
Sets the distance scanner speed The distance scanner can be controller in position or in speed.
This method allows you to set the desired speed of the ds The speed is set in rounds per minutes, an OK value is 30rpm
c_angle | desired distance scanner speed - rounds per minutes |
Implements argos::CCI_FootBotDistanceScannerActuator.
Definition at line 40 of file footbot_distance_scanner_default_actuator.cpp.
void argos::CFootBotDistanceScannerDefaultActuator::Update | ( | ) | [virtual] |
Updates the state of the entity associated to this actuator.
Implements argos::CSimulatedActuator.
Definition at line 62 of file footbot_distance_scanner_default_actuator.cpp.
const Real argos::CFootBotDistanceScannerDefaultActuator::RPM_TO_RADIANS_PER_SEC = ARGOS_PI / 30.0f [static] |
Definition at line 29 of file footbot_distance_scanner_default_actuator.h.