ARGoS
3
A parallel, multi-engine simulator for swarm robotics
|
Go to the documentation of this file.
2 #include <argos3/core/simulator/space/space.h>
3 #include <argos3/core/simulator/entity/composable_entity.h>
24 const std::string& str_id,
32 m_cAperture(c_aperture),
33 m_fFocalLength(f_focal_length),
35 m_psAnchor(&s_anchor) {
54 std::string strAnchorId;
65 m_psAnchor = &cBody.
GetAnchor(strAnchorId);
const std::string & GetId() const
Returns the id of this entity.
The namespace containing all the ARGoS related code.
const SAnchor & GetAnchor(const std::string &str_id) const
Returns the wanted anchor as a const reference.
It defines the basic type CRadians, used to store an angle value in radians.
Basic class for an entity that contains other entities.
The exception that wraps all errors in ARGoS.
CEntity & GetComponent(const std::string &str_component)
Returns the component with the passed string label.
REGISTER_STANDARD_SPACE_OPERATIONS_ON_ENTITY(CEntity)
This entity is a link to a body in the physics engine.
ticpp::Element TConfigurationNode
The ARGoS configuration XML node.
void SetImagePxSize(SInt32 n_width, SInt32 n_height)
Sets the image size in pixel.
void Enable()
Enables this anchor.
#define THROW_ARGOSEXCEPTION_NESTED(message, nested)
This macro throws an ARGoS exception with the passed message and nesting the passed exception.
An anchor related to the body of an entity.
signed int SInt32
32-bit signed integer.
CComposableEntity & GetParent()
Returns this entity's parent.
virtual void Init(TConfigurationNode &t_tree)
Initializes the state of the entity from the XML configuration tree.
void GetNodeAttribute(TConfigurationNode &t_node, const std::string &str_attribute, T &t_buffer)
Returns the value of a node's attribute.
CPerspectiveCameraEquippedEntity(CComposableEntity *pc_parent)
Class constructor.
It defines the basic type CDegrees, used to store an angle value in degrees.
CRadians ToRadians(const CDegrees &c_degrees)
Converts CDegrees to CRadians.
void Disable()
Disables this anchor.
float Real
Collects all ARGoS code.
virtual void Init(TConfigurationNode &t_tree)
Initializes the state of the entity from the XML configuration tree.