whatsisname
whatsisname

Reputation: 6150

How to get Pepper Robot's state programmatically?

When operating, the robot can encounter a variety of error states, such as overheating:

http://doc.aldebaran.com/2-8/family/pepper_user_guide/voice_notifications_pep.html#notifications-pepper

How can I detect the presence of an error condition using the Python API, and read those codes to act on them accordingly?

Upvotes: 0

Views: 122

Answers (2)

Victor Paléologue
Victor Paléologue

Reputation: 2342

For overheating specifically, see ALNotificationManager. For Pepper, it corresponds to the code 720. Note that these notifications are punctual and disappear when read. Thus when the notification has disappeared, that does not mean that the problem has disappeared, nor vice versa.

Upvotes: 0

Ales Horak
Ales Horak

Reputation: 151

You may use the ALDiagnosis API, the getPassiveDiagnosis() method.

By the way - you refer to NAOqi 2.8, which is only for NAO6. The last version for Pepper (as far as I know) is NAOqi 2.5 (or QiSDK, aka NAOqi 2.9, which is for Android-based Pepper control).

Upvotes: 1

Related Questions