8#include <argos3/core/simulator/simulator.h>
9#include <argos3/core/utility/logging/argos_log.h>
10#include <argos3/plugins/simulator/media/led_medium.h>
18 m_pcLEDEquippedEntity(nullptr) {}
34 std::string strMedium;
37 m_pcLEDEquippedEntity->
SetMedium(*m_pcLEDMedium);
38 m_pcLEDEquippedEntity->
Enable();
63 m_pcLEDEquippedEntity->
Disable();
73 "Carlo Pinciroli [ilpincy@gmail.com]",
77 "This actuator controls a group of LEDs. For a complete description of its\n"
78 "usage, refer to the ci_leds_actuator.h file.\n\n"
80 "REQUIRED XML CONFIGURATION\n\n"
84 " <my_controller ...>\n"
88 " <leds implementation=\"default\"\n"
89 " medium=\"leds\" />\n"
97 "The 'medium' attribute sets the id of the LED medium declared in the <media>\n"
100 "OPTIONAL XML CONFIGURATION\n\n"
#define THROW_ARGOSEXCEPTION_NESTED(message, nested)
This macro throws an ARGoS exception with the passed message and nesting the passed exception.
#define REGISTER_ACTUATOR(CLASSNAME, LABEL, IMPLEMENTATION, AUTHOR, VERSION, BRIEF_DESCRIPTION, LONG_DESCRIPTION, STATUS)
Registers a new actuator model inside ARGoS.
The namespace containing all the ARGoS related code.
ticpp::Element TConfigurationNode
The ARGoS configuration XML node.
void GetNodeAttribute(TConfigurationNode &t_node, const std::string &str_attribute, T &t_buffer)
Returns the value of a node's attribute.
virtual void Init(TConfigurationNode &t_node)
Initializes the actuator from the XML configuration tree.
Basic class for an entity that contains other entities.
CEntity & GetComponent(const std::string &str_component)
Returns the component with the passed string label.
static CSimulator & GetInstance()
Returns the instance to the CSimulator class.
T & GetMedium(const std::string &str_id)
Returns a reference to a medium.
The exception that wraps all errors in ARGoS.
virtual void SetAllColors(const CColor &c_color)
Sets the color of the whole LED ring.
virtual void Init(TConfigurationNode &t_tree)
Initializes the actuator from the XML configuration tree.
virtual void Reset()
Resets the actuator to the state it had just after Init().
virtual void Update()
Updates the state of the entity associated to this actuator.
virtual void SetRobot(CComposableEntity &c_entity)
Sets the entity associated to this actuator.
virtual void Destroy()
Destroys the actuator.
A container of CLEDEntity.
void SetAllLEDsColors(const CColor &c_color)
Sets the color of all the LEDs to the same value.
SActuator::TList & GetLEDs()
Returns all the LEDs.
void SetMedium(CLEDMedium &c_medium)
Sets the medium associated to this entity.