17 m_fDesiredRotationSpeed(0.0f),
25 m_pcDistanceScannerEquippedEntity->
Enable();
33 m_cDesiredRotation = c_angle;
62 m_pcDistanceScannerEquippedEntity->
SetMode(m_unDesiredMode);
64 m_pcDistanceScannerEquippedEntity->
SetRotation(m_cDesiredRotation);
67 m_pcDistanceScannerEquippedEntity->
SetRotationSpeed(m_fDesiredRotationSpeed);
76 m_fDesiredRotationSpeed = 0.0f;
84 "footbot_distance_scanner",
"default",
85 "Carlo Pinciroli [ilpincy@gmail.com]",
87 "The foot-bot distance scanner actuator.",
88 "This actuator controls the foot-bot distance scanner. For a complete\n"
89 "description of its usage, refer to the ci_footbot_distance_scanner_actuator\n"
91 "REQUIRED XML CONFIGURATION\n\n"
94 " <my_controller ...>\n"
98 " <footbot_distance_scanner implementation=\"default\" />\n"
102 " </my_controller>\n"
104 " </controllers>\n\n"
105 "OPTIONAL XML CONFIGURATION\n\n"
106 "None for the time being.\n",
virtual void Update()
Updates the state of the entity associated to this actuator.
void Enable()
Enables the entity.
float Real
Collects all ARGoS code.
static const Real RPM_TO_RADIANS_PER_SEC
virtual void SetRobot(CComposableEntity &c_entity)
Sets the entity associated to this actuator.
REGISTER_ACTUATOR(CFootBotDistanceScannerDefaultActuator,"footbot_distance_scanner","default","Carlo Pinciroli [ilpincy@gmail.com]","1.0","The foot-bot distance scanner actuator.","This actuator controls the foot-bot distance scanner. For a complete\n""description of its usage, refer to the ci_footbot_distance_scanner_actuator\n""file.\n\n""REQUIRED XML CONFIGURATION\n\n"" <controllers>\n"" ...\n"" <my_controller ...>\n"" ...\n"" <actuators>\n"" ...\n"" <footbot_distance_scanner implementation=\"default\" />\n"" ...\n"" </actuators>\n"" ...\n"" </my_controller>\n"" ...\n"" </controllers>\n\n""OPTIONAL XML CONFIGURATION\n\n""None for the time being.\n","Usable")
virtual void SetAngle(const CRadians &c_angle)
Sets the distance scanner angle The distance scanner can be controller in position or in speed...
virtual void Disable()
Disables the distance scanner.
It defines the basic type CRadians, used to store an angle value in radians.
virtual void Enable()
Enables the distance scanner.
void SetRotationSpeed(Real f_speed)
Basic class for an entity that contains other entities.
virtual void SetRPM(Real f_rpm)
Sets the distance scanner speed The distance scanner can be controller in position or in speed...
CFootBotDistanceScannerDefaultActuator()
static const CRadians ZERO
Set to zero radians.
#define ARGOS_PI
To be used when initializing static variables.
The namespace containing all the ARGoS related code.
void SetMode(UInt32 un_mode)
virtual void Reset()
Resets the actuator to the state it had just after Init().
void SetRotation(const CRadians &c_rotation)
CEntity & GetComponent(const std::string &str_component)
Returns the component with the passed string label.