17 m_pcTurretEntity(nullptr),
25 m_pcTurretEntity->
Enable();
46 m_unDesiredMode = e_mode;
53 m_pcTurretEntity->
SetMode(m_unDesiredMode);
67 "footbot_turret",
"default",
68 "Carlo Pinciroli [ilpincy@gmail.com]",
70 "The foot-bot turret actuator.",
71 "This actuator controls the foot-bot turret. For a complete\n"
72 "description of its usage, refer to the ci_footbot_turret_actuator\n"
74 "REQUIRED XML CONFIGURATION\n\n"
77 " <my_controller ...>\n"
81 " <footbot_turret implementation=\"default\" />\n"
88 "OPTIONAL XML CONFIGURATION\n\n"
89 "None for the time being.\n",
signed int SInt32
32-bit signed integer.
float Real
Collects all ARGoS code.
#define ARGOS_PI
To be used when initializing static variables.
The namespace containing all the ARGoS related code.
const Real RPM_TO_RADIANS_PER_SEC
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")
Basic class for an entity that contains other entities.
CEntity & GetComponent(const std::string &str_component)
Returns the component with the passed string label.
void Enable()
Enables the entity.
It defines the basic type CRadians, used to store an angle value in radians.
ETurretModes
Turret modes.
virtual void Update()
Updates the state of the entity associated to this actuator.
virtual void SetRotation(const CRadians &c_angle)
Sets the turret rotation Turret rotation is expressed in radians, positive values rotate the turret c...
virtual void Reset()
Resets the actuator to the state it had just after Init().
virtual void SetRobot(CComposableEntity &c_entity)
Sets the entity associated to this actuator.
virtual void SetRotationSpeed(SInt32 n_speed_pulses)
Sets the turret rotation speed Turret rotation speed is expressed in motor pulses,...
virtual void SetMode(ETurretModes e_mode)
Sets the turret control mode Modes are: angular position control, rotation speed control,...
CFootBotTurretDefaultActuator()
void SetDesiredRotationSpeed(Real f_speed)
void SetDesiredRotation(const CRadians &c_rotation)
void SetMode(UInt32 un_mode)