7#ifndef DIRECTIONAL_LED_EQUIPPED_ENTITY_H
8#define DIRECTIONAL_LED_EQUIPPED_ENTITY_H
15#include <argos3/core/simulator/entity/composable_entity.h>
16#include <argos3/plugins/simulator/entities/directional_led_entity.h>
64 const std::string& str_id);
86 void AddLED(
const std::string& str_id,
148 void SetLEDColors(
const std::vector<CColor>& vec_colors);
158 return "directional_leds";
unsigned int UInt32
32-bit unsigned integer.
The namespace containing all the ARGoS related code.
ticpp::Element TConfigurationNode
The ARGoS configuration XML node.
CComposableEntity(CComposableEntity *pc_parent)
Class constructor.
An anchor related to the body of an entity.
It defines the basic type CRadians, used to store an angle value in radians.
A container of CDirectionalLEDEntity.
virtual void UpdateComponents()
Calls the Update() method on all the components.
virtual std::string GetTypeDescription() const
Returns a string label for this class.
void AddLED(const std::string &str_id, const CVector3 &c_position, const CQuaternion &c_orientation, SAnchor &s_anchor, const CRadians &c_observable_angle, const CColor &c_color)
Programmatically creates a new directional LED.
void SetLEDColor(UInt32 un_index, const CColor &c_color)
Sets the color of an LED.
void SetLEDColors(const CColor &c_color)
Sets the color of all the LEDs to the same value.
CDirectionalLEDEquippedEntity(CComposableEntity *pc_parent)
Class constructor.
virtual ~CDirectionalLEDEquippedEntity()
const SInstance::TVector & GetInstances() const
Returns the LEDs as a const reference.
SInstance::TVector m_vecInstances
List of the LEDs managed by this entity.
void SetMedium(CDirectionalLEDMedium &c_medium)
Sets the medium associated to this entity.
virtual void Init(TConfigurationNode &t_tree)
Initializes the state of the entity from the XML configuration tree.
CDirectionalLEDEntity & GetLED(UInt32 un_index)
Returns an LED by numeric index.
SInstance::TVector & GetInstances()
Returns all the LEDs.
CDirectionalLEDEntity & LED
CQuaternion OrientationOffset
std::vector< SInstance > TVector
SInstance(CDirectionalLEDEntity &c_led, SAnchor &s_anchor, const CVector3 &c_position_offset, const CQuaternion &c_orientation_offset)