7 #ifndef TAG_EQUIPPED_ENTITY_H
8 #define TAG_EQUIPPED_ENTITY_H
11 class CTagEquippedEntity;
15 #include <argos3/core/simulator/entity/composable_entity.h>
16 #include <argos3/plugins/simulator/entities/tag_entity.h>
64 const std::string& str_id);
86 void AddTag(
const std::string& str_id,
92 const std::string& str_payload);
126 const std::string& str_payload);
142 void SetTagPayloads(
const std::vector<std::string>& vec_payloads);
unsigned int UInt32
32-bit unsigned 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.
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 CTagEntity.
virtual void UpdateComponents()
Calls the Update() method on all the components.
void SetMedium(CTagMedium &c_medium)
Sets the medium associated to this entity.
CTagEntity & GetTag(UInt32 un_index)
Returns a tag by numeric index.
virtual void Init(TConfigurationNode &t_tree)
Initializes the state of the entity from the XML configuration tree.
void SetTagPayload(UInt32 un_index, const std::string &str_payload)
Sets the payload of a tag.
SInstance::TVector m_vecInstances
List of the tags managed by this entity.
SInstance::TVector & GetInstances()
Returns the tags.
void AddTag(const std::string &str_id, const CVector3 &c_position, const CQuaternion &c_orientation, SAnchor &s_anchor, const CRadians &c_observable_angle, Real f_side_length, const std::string &str_payload)
Programmatically creates a new tag.
virtual ~CTagEquippedEntity()
const SInstance::TVector & GetInstances() const
Returns the tags as a const reference.
CTagEquippedEntity(CComposableEntity *pc_parent)
Class constructor.
void SetTagPayloads(const std::string &str_payload)
Sets the payload of all the tags to the given payload.
virtual std::string GetTypeDescription() const
Returns a string label for this class.
CQuaternion OrientationOffset
std::vector< SInstance > TVector
SInstance(CTagEntity &c_tag, SAnchor &s_anchor, const CVector3 &c_position_offset, const CQuaternion &c_orientation_offset)