7 #ifndef RADIO_EQUIPPED_ENTITY_H
8 #define RADIO_EQUIPPED_ENTITY_H
11 class CRadioEquippedEntity;
15 #include <argos3/core/simulator/entity/composable_entity.h>
16 #include <argos3/plugins/simulator/entities/radio_entity.h>
62 const std::string& str_id);
81 void AddRadio(
const std::string& str_id,
84 Real f_transmit_range);
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.
A container of CRadioEntity.
SInstance::TVector m_vecInstances
List of the radios managed by this entity.
SInstance::TVector & GetInstances()
Returns the radios.
const SInstance::TVector & GetInstances() const
Returns the radios as a const reference.
CRadioEntity & GetRadio(UInt32 un_index)
Returns a radio by numeric index.
virtual void Init(TConfigurationNode &t_tree)
Initializes the state of the entity from the XML configuration tree.
virtual std::string GetTypeDescription() const
Returns a string label for this class.
virtual ~CRadioEquippedEntity()
void AddRadio(const std::string &str_id, const CVector3 &c_offset, SAnchor &s_anchor, Real f_transmit_range)
Programmatically creates a new radio.
void SetMedium(CRadioMedium &c_medium)
Sets the medium associated to this entity.
CRadioEquippedEntity(CComposableEntity *pc_parent)
Class constructor.
virtual void UpdateComponents()
Calls the Update() method on all the components.
SInstance(CRadioEntity &c_radio, SAnchor &s_anchor, const CVector3 &c_offset)
std::vector< SInstance > TVector