HALInterface is responsible for reading and writing values into the Hardware Abstraction Layer (HAL) of the robot. More...
#include <alnaosim.h>
Public Member Functions | |
| HALInterface (const Model *model, int NAOqiId=9559) | |
| creates a HALInterface given a valid model. | |
| ~HALInterface () | |
| destructor. | |
| float | fetchAngleActuatorValue (const AngleActuator *angleActuator) |
| returns the last command value (in radians) of the given angleActuator. | |
| float | fetchCoupledActuatorValue (const CoupledActuator *coupledActuator) |
| returns the last command value (between 0 and 1, no unit) of the given coupledActuator. | |
| float | fetchTorqueActuatorValue (const TorqueActuator *torqueActuator) |
| returns the last command value (in Newton per meter) of the given torqueActuator. | |
| float | fetchAngleSpeedActuatorValue (const AngleSpeedActuator *angleSpeedActuator) |
| returns the last command value (in radians per second) of the given angleSpeedActuator. | |
| float | fetchWheelTorqueActuatorValue (const WheelTorqueActuator *wheelTorqueActuator) |
| returns the last command value (in Newton per meter) of the given wheelTorqueActuator. | |
| float | fetchWheelVelocityActuatorValue (const WheelVelocityActuator *wheelVelocityActuator) |
| returns the last command value (in radians per second) of the given wheelVelocityActuator. | |
| float | fetchLEDActuatorValue (const LEDActuator *ledActuator) |
| returns the last command value (between 0 and 1) of the given ledActuator. | |
| float | fetchAngleActuatorStiffness (const AngleActuator *angleActuator) |
| returns the last stiffness value (between 0 and 1, no unit) of the given angleActuator. | |
| float | fetchCoupledActuatorStiffness (const CoupledActuator *coupledActuator) |
| returns the last stiffness value (between 0 and 1, no unit) of the given coupledActuator. | |
| float | fetchTorqueActuatorStiffness (const TorqueActuator *torqueActuator) |
| returns the last stiffness value (between 0 and 1, no unit) of the given torqueActuator. | |
| float | fetchAngleSpeedActuatorStiffness (const AngleSpeedActuator *angleSpeedActuator) |
| returns the last stiffness value (between 0 and 1, no unit) of the given angleSpeedActuator. | |
| float | fetchWheelTorqueActuatorStiffness (const WheelTorqueActuator *wheelTorqueActuator) |
| returns the last stiffness value (between 0 and 1, no unit) of the given wheelTorqueActuator. | |
| float | fetchWheelVelocityActuatorStiffness (const WheelVelocityActuator *wheelVelocityActuator) |
| returns the last stiffness value (between 0 and 1, no unit) of the given wheelVelocityActuator. | |
| bool | sendAngleSensorValue (const AngleSensor *angleSensor, float value) |
| sends value (in radians) to the given angleSensor. | |
| bool | sendCoupledSensorValue (const CoupledSensor *coupledSensor, float value) |
| sends value (between 0 and 1, no unit) to the given coupledSensor. | |
| bool | sendTorqueSensorValue (const TorqueSensor *torqueSensor, float value) |
| sends value in Newton per meter to the given torqueSensor. | |
| bool | sendAngleSpeedSensorValue (const AngleSpeedSensor *angleSpeedSensor, float value) |
| sends value in radians per second to the given angleSpeedSensor. | |
| bool | sendWheelVelocitySensorValue (const WheelVelocitySensor *wheelVelocitySensor, float value) |
| sends value in radians per second to the given wheelVelocitySensor. | |
| bool | sendCameraSensorValue (const CameraSensor *cameraSensor, const unsigned char *img) |
| sends the content of the buffer img to the given cameraSensor | |
| bool | sendFSRSensorValue (const FSRSensor *fsrSensor, float value) |
| sends value (in kilograms) to the given fsrSensor. | |
| bool | sendBumperSensorValue (const BumperSensor *bumperSensor, float value) |
| sends value (between 0 and 1, no unit) to the given bumperSensor. | |
| bool | sendTactileSensorValue (const TactileSensor *tactileSensor, float value) |
| sends value (between 0 and 1, no unit) to the given tactileSensor | |
| bool | sendDepthInfraredSensorValue (const DepthInfraredSensor *depthInfraredSensor, float value) |
| sends value (in meters) to the given depthInfraredSensor | |
| bool | sendInertialSensorValues (const InertialSensor *inertialSensor, std::vector< const float * > values) |
| bool | sendSonarSensorValues (const SonarSensor *sonarSensor, std::vector< const float * > values) |
| bool | sendInertialSensorValues (const InertialSensor *inertialSensor, std::vector< float > values) |
| sends values (see remarks) to the given inertialSensor. | |
| bool | sendSonarSensorValues (const SonarSensor *sonarSensor, std::vector< float > values) |
| sends values in meters to the given sonarSensor (see remarks). | |
| bool | sendSonarSensorValue (const SonarSensor *sonarSensor, float value) |
| sends value in meters to the given sonarSensor (see remarks). | |
| std::string | activeCamera () |
| returns the name of the CameraSensor that is currently active. | |
| int | cameraBufferSize () |
| returns the buffer size of the current camera. | |
| void | cameraBufferSize (const CameraSensor *camera, int *cameraBufferSize, int *width, int *height) |
| gives the buffer size, width and height of the given camera | |
| int | cameraBufferSize (const CameraSensor *camera) |
| returns the buffer size of the camera. | |
Public Attributes | |
| class HALInterfaceImpl * | a_impl |
| Private implementation. | |
HALInterface is responsible for reading and writing values into the Hardware Abstraction Layer (HAL) of the robot.
Definition at line 54 of file alnaosim.h.
| std::string Sim::HALInterface::activeCamera | ( | ) |
returns the name of the CameraSensor that is currently active.
returns the buffer size of the current camera.
| void Sim::HALInterface::cameraBufferSize | ( | const CameraSensor * | camera, |
| int * | cameraBufferSize, | ||
| int * | width, | ||
| int * | height | ||
| ) |
gives the buffer size, width and height of the given camera
| int Sim::HALInterface::cameraBufferSize | ( | const CameraSensor * | camera | ) |
returns the buffer size of the camera.
| float Sim::HALInterface::fetchAngleActuatorStiffness | ( | const AngleActuator * | angleActuator | ) |
returns the last stiffness value (between 0 and 1, no unit) of the given angleActuator.
| float Sim::HALInterface::fetchAngleActuatorValue | ( | const AngleActuator * | angleActuator | ) |
returns the last command value (in radians) of the given angleActuator.
| float Sim::HALInterface::fetchAngleSpeedActuatorStiffness | ( | const AngleSpeedActuator * | angleSpeedActuator | ) |
returns the last stiffness value (between 0 and 1, no unit) of the given angleSpeedActuator.
| float Sim::HALInterface::fetchAngleSpeedActuatorValue | ( | const AngleSpeedActuator * | angleSpeedActuator | ) |
returns the last command value (in radians per second) of the given angleSpeedActuator.
| float Sim::HALInterface::fetchCoupledActuatorStiffness | ( | const CoupledActuator * | coupledActuator | ) |
returns the last stiffness value (between 0 and 1, no unit) of the given coupledActuator.
| float Sim::HALInterface::fetchCoupledActuatorValue | ( | const CoupledActuator * | coupledActuator | ) |
returns the last command value (between 0 and 1, no unit) of the given coupledActuator.
| float Sim::HALInterface::fetchLEDActuatorValue | ( | const LEDActuator * | ledActuator | ) |
returns the last command value (between 0 and 1) of the given ledActuator.
| float Sim::HALInterface::fetchTorqueActuatorStiffness | ( | const TorqueActuator * | torqueActuator | ) |
returns the last stiffness value (between 0 and 1, no unit) of the given torqueActuator.
| float Sim::HALInterface::fetchTorqueActuatorValue | ( | const TorqueActuator * | torqueActuator | ) |
returns the last command value (in Newton per meter) of the given torqueActuator.
| float Sim::HALInterface::fetchWheelTorqueActuatorStiffness | ( | const WheelTorqueActuator * | wheelTorqueActuator | ) |
returns the last stiffness value (between 0 and 1, no unit) of the given wheelTorqueActuator.
| float Sim::HALInterface::fetchWheelTorqueActuatorValue | ( | const WheelTorqueActuator * | wheelTorqueActuator | ) |
returns the last command value (in Newton per meter) of the given wheelTorqueActuator.
| float Sim::HALInterface::fetchWheelVelocityActuatorStiffness | ( | const WheelVelocityActuator * | wheelVelocityActuator | ) |
returns the last stiffness value (between 0 and 1, no unit) of the given wheelVelocityActuator.
| float Sim::HALInterface::fetchWheelVelocityActuatorValue | ( | const WheelVelocityActuator * | wheelVelocityActuator | ) |
returns the last command value (in radians per second) of the given wheelVelocityActuator.
| bool Sim::HALInterface::sendCameraSensorValue | ( | const CameraSensor * | cameraSensor, |
| const unsigned char * | img | ||
| ) |
sends the content of the buffer img to the given cameraSensor
| bool Sim::HALInterface::sendInertialSensorValues | ( | const InertialSensor * | inertialSensor, |
| std::vector< const float * > | values | ||
| ) |
| bool Sim::HALInterface::sendInertialSensorValues | ( | const InertialSensor * | inertialSensor, |
| std::vector< float > | values | ||
| ) |
sends values (see remarks) to the given inertialSensor.
| bool Sim::HALInterface::sendSonarSensorValue | ( | const SonarSensor * | sonarSensor, |
| float | value | ||
| ) |
sends value in meters to the given sonarSensor (see remarks).
| bool Sim::HALInterface::sendSonarSensorValues | ( | const SonarSensor * | sonarSensor, |
| std::vector< const float * > | values | ||
| ) |
| bool Sim::HALInterface::sendSonarSensorValues | ( | const SonarSensor * | sonarSensor, |
| std::vector< float > | values | ||
| ) |
sends values in meters to the given sonarSensor (see remarks).