26 for(itJoint = itJoint.begin(&t_tree);
27 itJoint != itJoint.end();
31 pcJointEntity->Init(*itJoint);
33 m_vecJoints.push_back(pcJointEntity);
46 std::find_if(std::begin(m_vecJoints),
47 std::end(m_vecJoints),
49 return (pc_joint->
GetId() == str_id);
52 "CPrototypeJointEquippedEntity::GetJoint(), id=\"" <<
54 "\": joint not found: str_id = " <<
64 "CPrototypeJointEquippedEntity::GetJoint(), id=\"" <<
66 "\": index out of bounds: un_index = " <<
68 ", m_vecJoints.size() = " <<
70 return *m_vecJoints[un_index];
#define ARGOS_ASSERT(condition, message)
When code is compiled in debug, this macro throws an ARGoS exception with the passed message if the s...
#define THROW_ARGOSEXCEPTION_NESTED(message, nested)
This macro throws an ARGoS exception with the passed message and nesting the passed exception.
unsigned int UInt32
32-bit unsigned integer.
The namespace containing all the ARGoS related code.
ticpp::Iterator< ticpp::Element > TConfigurationNodeIterator
The iterator for the ARGoS configuration XML node.
ticpp::Element TConfigurationNode
The ARGoS configuration XML node.
REGISTER_STANDARD_SPACE_OPERATIONS_ON_COMPOSABLE(CComposableEntity)
Basic class for an entity that contains other entities.
void AddComponent(CEntity &c_component)
Adds a component to this composable entity.
const std::string & GetId() const
Returns the id of this entity.
virtual void Init(TConfigurationNode &t_tree)
Initializes the state of the entity from the XML configuration tree.
The exception that wraps all errors in ARGoS.
virtual void Init(TConfigurationNode &t_tree)
Initializes the state of the entity from the XML configuration tree.
CPrototypeJointEntity & GetJoint(UInt32 un_index)
CPrototypeJointEquippedEntity(CComposableEntity *pc_parent)