ALBodyTemperature API¶
NAOqi Sensors & LEDs - Overview | API
Namespace : AL
#include <alproxies/albodytemperatureproxy.h>
Method list¶
As any module, this module inherits methods from ALModule API. It also has the following specific methods:
-
class
ALBodyTemperatureProxy
¶
Event list¶
HotDeviceDetected()
DeviceNoLongerHotDetected()
TemperatureDiagnosisErrorChanged()
HeadProcessorIsHot()
HeadProcessorIsCriticallyHot()
TemperatureStatusChanged()
Deprecated Events
Methods¶
-
AL::ALValue
ALBodyTemperatureProxy::
getTemperatureDiagnosis
()¶ Return the actual state of the temperature diagnosis. Only the highest level of failure is returned.
Returns: An AL::ALValue containing the actual temperature diagnosis result with the follwing form: [ int Level of failure severity, [vector<string> The list chain in failure] ]
Where:
- Level of failure severity is 0(NEGLIGIBLE), 1(SERIOUS) or 2(CRITICAL).
- The list of device in failure is a chain name.
Events¶
-
Event:callback(std::string eventName, AL::ALValue hotJoints, std::string subscriberIdentifier)¶
"HotJointDetected"
Deprecated since version 1.22: Use
HotDeviceDetected()
instead.Raised when at least one joint has a high temperature.
Parameters: - eventName (std::string) – “HotJointDetected”
- hotJoints – the list of joints with high temperature.
- subscriberIdentifier (std::string) –
-
Event:callback(std::string eventName, AL::ALValue hotDevices, std::string subscriberIdentifier)¶
"HotDeviceDetected"
Raised when at least one device (joint, actuator, sensor) has a high temperature.
Parameters: - eventName (std::string) – “HotDeviceDetected”
- hotJoints – the list of devices with high temperature.
- subscriberIdentifier (std::string) –
-
Event:callback(std::string eventName, AL::ALValue deviceNoLongerHot, std::string subscriberIdentifier)¶
"DeviceNoLongerHotDetected"
Raised when at least one device is no longer hot.
Parameters: - eventName (std::string) – “DeviceNoLongerHotDetected”
- hotJoints – the list of devices no longer hot.
- subscriberIdentifier (std::string) –
-
Event:callback(std::string eventName, AL::ALValue temperatureDiagnosis, std::string subscriberIdentifier)¶
"TemperatureDiagnosisErrorChanged"
Raised when the temperature diagnosis status has changed.
Parameters: - eventName (std::string) – “TemperatureDiagnosisErrorChanged”
- temperatureDiagnosis – The same return ALValue as the API
ALBodyTemperatureProxy::getTemperatureDiagnosis
- subscriberIdentifier (std::string) –
-
Event:callback(std::string eventName, float temperature, std::string subscriberIdentifier)¶
"HeadProcessorIsHot"
Raised when the head processor is hot.
Parameters: - eventName (std::string) – “HeadProcessorIsHot”
- temperature – The current processor temperature in degree celsius.
- subscriberIdentifier (std::string) –
-
Event:callback(std::string eventName, float temperature, std::string subscriberIdentifier)¶
"HeadProcessorIsCriticallyHot"
Raised when the head processor is critically hot.
Parameters: - eventName (std::string) – “HeadProcessorIsCriticallyHot”
- temperature – The current processor temperature in degree celsius.
- subscriberIdentifier (std::string) –
-
Event:callback(std::string eventName, AL::ALValue temperatureStatus, std::string subscriberIdentifier)¶
"TemperatureStatusChanged"
Raised when the temperature status has changed.
Parameters: - eventName (std::string) – “TemperatureStatusChanged”
- temperatureStatus –
Return an AL::ALValue with the actual temperature status with the follwing form:
[ int Temperature status, [vector<string> The list of devices in failure] ].
- Temperature status 0(NORMAL), 1(HIGH), 2(VERY HIGH) or 3(CRITICAL).
- The list of devices in failure: could be a chain name, sensor name or actuator name.
- subscriberIdentifier (std::string) –