15 #include <argos3/core/simulator/entity/positional_entity.h>
16 #include <argos3/core/utility/datatypes/set.h>
17 #include <argos3/core/utility/math/vector3.h>
18 #include <argos3/core/simulator/space/positional_indices/space_hash.h>
19 #include <argos3/core/simulator/space/positional_indices/grid.h>
29 typedef std::vector<CTagEntity*>
TList;
37 const std::string& str_id,
42 const std::string& str_payload);
96 void SetPayload(
const std::string& str_payload);
const CRadians & GetObservableAngle() const
Returns the observable angle of the tag.
signed int SInt32
32-bit signed integer.
virtual std::string GetTypeDescription() const
Returns a string label for this class.
float Real
Collects all ARGoS code.
virtual void operator()(CAbstractSpaceHash< CTagEntity > &c_space_hash, CTagEntity &c_element)
Updates the necessary cells of a space hash.
Real GetSideLength() const
Returns the side length of the tag.
The abstract definition of a space hash.
CTagEntity(CComposableEntity *pc_parent)
CTagEntityGridUpdater(CGrid< CTagEntity > &c_grid)
virtual bool operator()(CTagEntity &c_entity)
virtual void Reset()
Resets the state of the entity to whatever it was after Init() or the standalone constructor was call...
void SetInitPayload(const std::string &str_payload)
Sets the initialization payload for this tag.
ticpp::Element TConfigurationNode
The ARGoS configuration XML node.
virtual void Init(TConfigurationNode &t_tree)
Initializes the state of the entity from the XML configuration tree.
std::string m_strInitPayload
Defines a very simple double-linked list that stores unique elements.
It defines the basic type CRadians, used to store an angle value in radians.
std::vector< CTagEntity * > TList
CRadians m_cObservableAngle
void SetMedium(CTagMedium &c_medium)
Sets the medium associated to this entity.
Basic class for an entity that contains other entities.
bool HasMedium() const
Returns true if this tag is associated to a medium.
const std::string & GetPayload() const
Returns the current payload of the tag.
virtual void SetEnabled(bool b_enabled)
Enables or disables an entity.
CTagMedium & GetMedium() const
Returns the medium associated to this tag.
virtual void Destroy()
Destroys the entity, undoing whatever was done by Init() or by the standalone constructor.
Defines the basic cell updater of the space hash.
void SetPayload(const std::string &str_payload)
Sets the current payload of the tag.
The namespace containing all the ARGoS related code.
CSet< CTagEntity * > TSet
const std::string & GetInitPayload() const
Returns the payload with which the tag was initialized.