Feature
This is for checking the current operation status information of the robot controller.
Return
|
Value |
Description |
|---|---|
|
robot_state |
Robot status 0 : Initializing 1 : Standby 1 : Moving 2 : SAFE OFF 3 : Teaching 4 : SAFE STOP 5 : Emergency Stop 6 : Homming 7 : Recovery |
Example
Bash
if get_robot_state() == STATE_STANDBY:
if get_robot_mode() == ROBOT_MODE_AUTONOMOUS:
# Manual Mode
# do something