flexivrobotics / flexiv_rdk

RDK (robotic development kit) for Flexiv robots. Supports C++ and Python. Compatible with Linux, macOS, and Windows.
Apache License 2.0
58 stars 18 forks source link

[FEATURE] Read safety inputs #67

Open isa-9 opened 1 month ago

isa-9 commented 1 month ago

RDK version: 0.10 Describe the solution you'd like I would like to be able to read the safety inputs via RDK. Currently, I'm only able to read digital inputs

pzhu-flexiv commented 1 month ago

@isa-9 Could you elaborate how you plan to use safety inputs?

isa-9 commented 1 month ago

@pzhu-flexiv I would read their values to handle correctly in my code the cases where the robot is in emergency stop (from external e-stop), when it's in reduced state or when its safeguard is not right

pzhu-flexiv commented 1 month ago

@isa-9 We cannot expose raw safety I/O to the users, however, RDK v1.5 will add a function to get if the robot is in reduced state or not.

isa-9 commented 1 month ago

In that case, would it be possible to know why the Robot::isOperational would return false i.e. would it be possible to get the reason not only by printing it on the console like it is done currently with the verbose argument, but by returning that information, for example. That way, we could know if the robot is not operational because one of these reasons and treat that information in the code:

pzhu-flexiv commented 1 month ago

@isa-9 Sure, I can convert the not operational reasons to an enum in RDK v1.5.