ARGoS
3
A parallel, multi-engine simulator for swarm robotics
|
Go to the documentation of this file.
10 #include <argos3/core/utility/logging/argos_log.h>
11 #include <argos3/core/simulator/space/space.h>
19 m_pcParent(pc_parent),
27 const std::string& str_id) :
28 m_pcParent(pc_parent),
48 if(m_pcParent != NULL) {
72 if(m_pcParent != NULL) {
84 if(m_pcParent != NULL) {
96 if(m_pcParent != NULL) {
108 if(m_pcParent != NULL) {
120 if(m_pcParent != NULL) {
132 m_bEnabled = b_enabled;
const std::string & GetId() const
Returns the id of this entity.
The namespace containing all the ARGoS related code.
Basic class for an entity that contains other entities.
The exception that wraps all errors in ARGoS.
REGISTER_STANDARD_SPACE_OPERATIONS_ON_ENTITY(CEntity)
ticpp::Element TConfigurationNode
The ARGoS configuration XML node.
CEntity & GetRootEntity()
Returns the root entity containing this entity.
virtual std::string GetTypeDescription() const
Returns a string label for this class.
#define THROW_ARGOSEXCEPTION_NESTED(message, nested)
This macro throws an ARGoS exception with the passed message and nesting the passed exception.
#define THROW_ARGOSEXCEPTION(message)
This macro throws an ARGoS exception with the passed message.
virtual void SetEnabled(bool b_enabled)
Enables or disables an entity.
CEntity(CComposableEntity *pc_parent)
Class constructor.
std::string ToString(const T &t_value)
Converts the given parameter to a std::string.
CComposableEntity & GetParent()
Returns this entity's parent.
unsigned int UInt32
32-bit unsigned integer.
void GetNodeAttribute(TConfigurationNode &t_node, const std::string &str_attribute, T &t_buffer)
Returns the value of a node's attribute.
std::string GetContext() const
Returns the context of this entity.
bool NodeAttributeExists(TConfigurationNode &t_node, const std::string &str_attribute)
Returns true if the specified attribute of a node exists.
virtual void Init(TConfigurationNode &t_tree)
Initializes the state of the entity from the XML configuration tree.