With RTDE (RTDE runtime_state enumeration) you can read robot states
Stopping : 0, Stopped : 1, Playing : 2, Pausing : 3, Paused : 4, Resuming : 5
But how is it possible to read in robot states “Normal/E-Stop/Idle/Freedrive” with Java Swing ?
and “safetymode” answears:
To touch on this, you can create a socket communication within the java side to communicate to the dashboard server to get the robot status…etc.
And how can I detect robot state “Freedrive”-Mode is running?
make an int
shift by 2 (>>2)
if the value %2 is not 0:
As the RealTime Interface is deprecated, is there any other a way to access the freedrive state ?
I didn’t find how to get it through RTDE.
Where did you see that the RealTime Interface was getting deprecated?
The code I gave, should work on any of the ports, just check on the documentation for the shift and address.
About the RealTime Interface getting deprecated, on the index of the excel file Client_Interface_V3.13andV5.8.xlsx (see the following link, at the bottom of the page), you can read :
“The RealTime interface has been deprecated since version 3.5. It is recommended to use the RTDE Interface, instead”