luismesas / pydobot

Python library for Dobot Magician
MIT License
110 stars 59 forks source link

Reading Robot's Status/Error Messages #47

Closed woid0 closed 2 years ago

woid0 commented 2 years ago

Hi, I wanted to know if someone has an idea how to read the robots status/error messages (e.g. reaching an axis limit). I know that in _read_message() you could obtain the robot's msg but not how to extract an actual information from that return value. Edit: I just saw that in the CommunicationProtocollDs.py the GET_ALARM_STATE msg.id exists. However I still don't know how to get an actual information out of the return value (that would look something like AA AA:3:50:0:00:206)

woid0 commented 2 years ago

good approach can be seen on ZdenekM's fork