ARGoS
3
A parallel, multi-engine simulator for swarm robotics
|
Go to the documentation of this file.
15 #include <argos3/core/simulator/entity/positional_entity.h>
16 #include <argos3/core/utility/datatypes/set.h>
17 #include <argos3/core/utility/datatypes/color.h>
18 #include <argos3/core/utility/math/vector3.h>
19 #include <argos3/core/simulator/space/positional_indices/space_hash.h>
20 #include <argos3/core/simulator/space/positional_indices/grid.h>
30 typedef std::vector<CLEDEntity*>
TList;
38 const std::string& str_id,
virtual void Destroy()
Destroys the entity, undoing whatever was done by Init() or by the standalone constructor.
const CColor & GetColor() const
Returns the current color of the LED.
The abstract definition of a space hash.
CLEDEntityGridUpdater(CGrid< CLEDEntity > &c_grid)
std::vector< CLEDEntity * > TList
const CColor & GetInitColor() const
Returns the color with which the LED was initialized.
The namespace containing all the ARGoS related code.
Basic class for an entity that contains other entities.
virtual void Init(TConfigurationNode &t_tree)
Initializes the state of the entity from the XML configuration tree.
void SetInitColor(const CColor &c_color)
Sets the initialization color for this LED.
void SetColor(const CColor &c_color)
Sets the current color of the LED.
ticpp::Element TConfigurationNode
The ARGoS configuration XML node.
Defines the basic cell updater of the space hash.
void RemoveFromMedium()
Removes the LEDs from the wanted LED medium.
bool HasMedium() const
Returns true if this LED is associated to a medium.
CLEDEntity(CComposableEntity *pc_parent)
CSet< CLEDEntity * > TSet
signed int SInt32
32-bit signed integer.
void AddToMedium(CLEDMedium &c_medium)
Adds the LEDs to the wanted LED medium.
virtual void SetEnabled(bool b_enabled)
Enables or disables an entity.
virtual std::string GetTypeDescription() const
Returns a string label for this class.
CLEDMedium & GetMedium() const
Returns the medium associated to this LED.
virtual bool operator()(CLEDEntity &c_entity)
Defines a very simple double-linked list that stores unique elements.
virtual void Reset()
Resets the state of the entity to whatever it was after Init() or the standalone constructor was call...
virtual void operator()(CAbstractSpaceHash< CLEDEntity > &c_space_hash, CLEDEntity &c_element)
Updates the necessary cells of a space hash.