Feature
When the operation status information of the robot controller is SAFE_STOP, it is a function to define a series of actions that are automatically executed after the change of status using the set_robot_control function. If the robot operation mode is automatic, the program can be defined and set again. In the manual mode, this setting is ignored.
Parameters
|
Parameter Name |
Data Type |
Default Value |
Description |
|---|---|---|---|
|
reset_type |
int8 |
0 |
Reset Type STOP : 1 RESUME : 2 |
Return
|
Value |
Description |
|---|---|
|
0 |
Success |
|
1 |
Failed |
Example
Bash
#...
robot_state = get_robot_mode()
if robot_state == ROBOT_MODE_AUTONOMOUS:
set_safe_reset_type(SAFE_STOP_PROGRAM_RESUME);
#...