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

The basic interface for all actuators. More...

#include <ci_actuator.h>

+ Inheritance diagram for argos::CCI_Actuator:

List of all members.

Public Types

typedef std::map< std::string,
CCI_Actuator *, std::less
< std::string > > 
TMap

Public Member Functions

virtual ~CCI_Actuator ()
 Class destructor.
virtual void Init (TConfigurationNode &t_node)
 Initializes the actuator from the XML configuration tree.
virtual void Reset ()
 Resets the actuator to the state it had just after Init().
virtual void Destroy ()
 Destroys the actuator.
virtual void CreateLuaState (lua_State *pt_lua_state)=0
 Creates the Lua state for this actuator.

Detailed Description

The basic interface for all actuators.

Definition at line 34 of file ci_actuator.h.


Member Typedef Documentation

typedef std::map<std::string, CCI_Actuator*, std::less<std::string> > argos::CCI_Actuator::TMap

Definition at line 38 of file ci_actuator.h.


Constructor & Destructor Documentation

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

Class destructor.

Definition at line 45 of file ci_actuator.h.


Member Function Documentation

virtual void argos::CCI_Actuator::CreateLuaState ( lua_State *  pt_lua_state) [pure virtual]

Creates the Lua state for this actuator.

The state must be added to the robot table, as a nested table.

Parameters:
pt_lua_stateThe current Lua state.
See also:
LuaStateToSettings()
virtual void argos::CCI_Actuator::Destroy ( ) [inline, virtual]

Destroys the actuator.

This method is supposed to undo whatever was done in Init(). The default implementation of this method does nothing.

See also:
Init()
Reset()

Implements argos::CBaseConfigurableResource.

Reimplemented in argos::CLEDsDefaultActuator.

Definition at line 71 of file ci_actuator.h.

virtual void argos::CCI_Actuator::Init ( TConfigurationNode t_node) [inline, 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()

Implements argos::CBaseConfigurableResource.

Reimplemented in argos::CDifferentialSteeringDefaultActuator, and argos::CLEDsDefaultActuator.

Definition at line 54 of file ci_actuator.h.

virtual void argos::CCI_Actuator::Reset ( ) [inline, virtual]

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