7 #ifndef MAGNET_EQUIPPED_ENTITY_H
8 #define MAGNET_EQUIPPED_ENTITY_H
11 class CMagnetEquippedEntity;
15 #include <argos3/core/simulator/entity/composable_entity.h>
16 #include <argos3/plugins/simulator/entities/magnet_entity.h>
62 const std::string& str_id);
unsigned int UInt32
32-bit unsigned integer.
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 CMagnetEntity.
SInstance::TVector & GetInstances()
CMagnetEntity & GetMagnet(UInt32 un_index)
Returns an magnet by numeric index.
virtual std::string GetTypeDescription() const
Returns a string label for this class.
virtual ~CMagnetEquippedEntity()
CMagnetEntity & AddMagnet(const std::string &str_id, SAnchor &s_anchor, const CVector3 &c_position_offset, const CVector3 &c_passive_field, const CVector3 &c_active_field=CVector3())
SInstance::TVector m_vecInstances
A list of the magnets managed by this entity.
virtual void UpdateComponents()
Calls the Update() method on all the components.
CMagnetEquippedEntity(CComposableEntity *pc_parent)
Class constructor.
virtual void Init(TConfigurationNode &t_tree)
Initializes the state of the entity from the XML configuration tree.
std::vector< SInstance > TVector
SInstance(CMagnetEntity &c_magnet, SAnchor &s_anchor, const CVector3 &c_position_offset)