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

The basic interface for a simulated actuator. More...

#include <actuator.h>

+ Inheritance diagram for argos::CSimulatedActuator:

List of all members.

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.

Detailed Description

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.

See also:
CCI_Actuator

Definition at line 22 of file actuator.h.


Constructor & Destructor Documentation

virtual argos::CSimulatedActuator::~CSimulatedActuator ( ) [inline, virtual]

Class destructor.

Definition at line 29 of file actuator.h.


Member Function Documentation

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.

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

Implemented in argos::CDifferentialSteeringDefaultActuator, argos::CFootBotDistanceScannerDefaultActuator, argos::CLEDsDefaultActuator, argos::CFootBotGripperDefaultActuator, argos::CFootBotTurretDefaultActuator, argos::CGripperDefaultActuator, and argos::CRangeAndBearingDefaultActuator.


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