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);
signed int SInt32
32-bit signed integer.
float Real
Collects all ARGoS code.
The namespace containing all the ARGoS related code.
ticpp::Element TConfigurationNode
The ARGoS configuration XML node.
Basic class for an entity that contains other entities.
The abstract definition of a space hash.
Defines the basic cell updater of the space hash.
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.
virtual void SetEnabled(bool b_enabled)
Enables or disables an entity.
virtual void Reset()
Resets the state of the entity to whatever it was after Init() or the standalone constructor was call...
CTagMedium & GetMedium() const
Returns the medium associated to this tag.
void SetPayload(const std::string &str_payload)
Sets the current payload of the tag.
void SetInitPayload(const std::string &str_payload)
Sets the initialization payload for this tag.
const std::string & GetPayload() const
Returns the current payload of the tag.
const CRadians & GetObservableAngle() const
Returns the observable angle of the tag.
void SetMedium(CTagMedium &c_medium)
Sets the medium associated to this entity.
CRadians m_cObservableAngle
CSet< CTagEntity * > TSet
virtual void Destroy()
Destroys the entity, undoing whatever was done by Init() or by the standalone constructor.
bool HasMedium() const
Returns true if this tag is associated to a medium.
virtual std::string GetTypeDescription() const
Returns a string label for this class.
CTagEntity(CComposableEntity *pc_parent)
std::string m_strInitPayload
std::vector< CTagEntity * > TList
const std::string & GetInitPayload() const
Returns the payload with which the tag was initialized.
virtual void Init(TConfigurationNode &t_tree)
Initializes the state of the entity from the XML configuration tree.
Real GetSideLength() const
Returns the side length of the tag.
virtual void operator()(CAbstractSpaceHash< CTagEntity > &c_space_hash, CTagEntity &c_element)
Updates the necessary cells of a space hash.
CTagEntityGridUpdater(CGrid< CTagEntity > &c_grid)
virtual bool operator()(CTagEntity &c_entity)