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);
signed int SInt32
32-bit signed integer.
float Real
Collects all ARGoS code.
ticpp::Element TConfigurationNode
The ARGoS configuration XML node.
This entity is a link to a body in the physics engine.
#define THROW_ARGOSEXCEPTION_NESTED(message, nested)
This macro throws an ARGoS exception with the passed message and nesting the passed exception...
It defines the basic type CDegrees, used to store an angle value in degrees.
It defines the basic type CRadians, used to store an angle value in radians.
void Enable()
Enables this anchor.
Basic class for an entity that contains other entities.
An anchor related to the body of an entity.
void SetImagePxSize(SInt32 n_width, SInt32 n_height)
Sets the image size in pixel.
void GetNodeAttribute(TConfigurationNode &t_node, const std::string &str_attribute, T &t_buffer)
Returns the value of a node's attribute.
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.
void Disable()
Disables this anchor.
CPerspectiveCameraEquippedEntity(CComposableEntity *pc_parent)
Class constructor.
REGISTER_STANDARD_SPACE_OPERATIONS_ON_ENTITY(CEntity)
const SAnchor & GetAnchor(const std::string &str_id) const
Returns the wanted anchor as a const reference.
const std::string & GetId() const
Returns the id of this entity.
CRadians ToRadians(const CDegrees &c_degrees)
Converts CDegrees to CRadians.
CComposableEntity & GetParent()
Returns this entity's parent.
The namespace containing all the ARGoS related code.
CEntity & GetComponent(const std::string &str_component)
Returns the component with the passed string label.