7 #ifndef MAGNET_ENTITY_H
8 #define MAGNET_ENTITY_H
14 #include <argos3/core/simulator/entity/entity.h>
15 #include <argos3/core/utility/math/vector3.h>
30 const std::string& str_id,
void SetCurrent(Real f_current)
Sets the current field of the magnet.
virtual void Reset()
Resets the state of the entity to whatever it was after Init() or the standalone constructor was call...
float Real
Collects all ARGoS code.
ticpp::Element TConfigurationNode
The ARGoS configuration XML node.
virtual std::string GetTypeDescription() const
Returns a string label for this class.
Basic class for an entity that contains other entities.
virtual void Init(TConfigurationNode &t_tree)
Initializes the state of the entity from the XML configuration tree.
CMagnetEntity(CComposableEntity *pc_parent)
const CVector3 & GetField() const
Returns the field of the magnet.
const CVector3 & GetActiveField() const
Returns the active field with which the magnet was initialized.
The namespace containing all the ARGoS related code.
const CVector3 & GetPassiveField() const
Returns the passive field with which the magnet was initialized.