8 #include <argos3/core/utility/math/angles.h>
9 #include <argos3/core/simulator/physics_engine/physics_engine.h>
10 #include <argos3/core/simulator/space/space.h>
28 const std::string& str_id,
31 m_psAnchor(&s_anchor) {
83 return m_fCurRotSpeed;
97 return m_fDesRotSpeed;
104 m_cDesRot = c_rotation;
112 m_fDesRotSpeed = f_speed;
float Real
Collects all ARGoS code.
The namespace containing all the ARGoS related code.
CRadians NormalizedDifference(const CRadians &c_angle1, const CRadians &c_angle2)
Calculates the normalized difference between the given angles.
ticpp::Element TConfigurationNode
The ARGoS configuration XML node.
REGISTER_STANDARD_SPACE_OPERATIONS_ON_ENTITY(CEntity)
Basic class for an entity that contains other entities.
void Disable()
Disables the entity.
static Real GetInverseSimulationClockTick()
Returns the inverse of GetSimulationClockTick().
An anchor related to the body of an entity.
CQuaternion OffsetOrientation
The initial orientation of the anchor wrt the body coordinate system.
It defines the basic type CRadians, used to store an angle value in radians.
CRadians & SignedNormalize()
Normalizes the value in the range [-PI:PI].
static const CRadians ZERO
Set to zero radians.
Real GetValue() const
Returns the value in radians.
void ToEulerAngles(CRadians &c_z_angle, CRadians &c_y_angle, CRadians &c_x_angle) const
const CRadians & GetDesiredRotation() const
void SetDesiredRotationSpeed(Real f_speed)
CFootBotTurretEntity(CComposableEntity *pc_parent)
Real GetRotationSpeed() const
Real GetDesiredRotationSpeed() const
CRadians GetRotation() const
void SetDesiredRotation(const CRadians &c_rotation)
virtual void Update()
Updates the state of this entity.
virtual void Init(TConfigurationNode &t_tree)
Initializes the state of the entity from the XML configuration tree.
virtual void Reset()
Resets the state of the entity to whatever it was after Init() or the standalone constructor was call...