ARGoS
3
A parallel, multi-engine simulator for swarm robotics
|
The basic interface for a simulated actuator. More...
#include <actuator.h>
Public Member Functions | |
virtual | ~CSimulatedActuator () |
Class destructor. | |
virtual void | SetRobot (CComposableEntity &c_entity)=0 |
Sets the entity associated to this actuator. | |
virtual void | Update ()=0 |
Updates the state of the entity associated to this actuator. |
The basic interface for a simulated actuator.
To implement the simulated model of an actuator, you must define a class that inherits from both the control interface and this class.
Definition at line 22 of file actuator.h.
virtual argos::CSimulatedActuator::~CSimulatedActuator | ( | ) | [inline, virtual] |
Class destructor.
Definition at line 29 of file actuator.h.
virtual void argos::CSimulatedActuator::SetRobot | ( | CComposableEntity & | c_entity | ) | [pure 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. |
Implemented in argos::CDifferentialSteeringDefaultActuator, argos::CFootBotDistanceScannerDefaultActuator, argos::CLEDsDefaultActuator, argos::CFootBotGripperDefaultActuator, argos::CFootBotTurretDefaultActuator, argos::CGripperDefaultActuator, and argos::CRangeAndBearingDefaultActuator.
virtual void argos::CSimulatedActuator::Update | ( | ) | [pure virtual] |
Updates the state of the entity associated to this actuator.
Implemented in argos::CDifferentialSteeringDefaultActuator, argos::CFootBotDistanceScannerDefaultActuator, argos::CFootBotTurretDefaultActuator, argos::CLEDsDefaultActuator, argos::CFootBotGripperDefaultActuator, argos::CGripperDefaultActuator, and argos::CRangeAndBearingDefaultActuator.