set_robot_mode(robot_mode)
Features
This function is to set the operation mode (manual / automatic) of the robot controller. Motion command is available in both modes, but manual handguiding is available in manual mode and operates in deceleration mode for safety.
In automatic mode, manual handguiding is not possible and operates in normal speed mode.
Manual mode: robot LED lights up blue
Auto mode: robot LED lights up in white
Parameters
Parameter Name | Data Type | Default Value | Description |
---|---|---|---|
Robot_mode | int | - |
|
Return
Value | Description |
---|---|
0 | Success |
Negative value | Failed |
Example
#...
set_robot_mode(ROBOT_MODE_MANUAL)
#...
#...
#...
set_robot_mode(ROBOT_MODE_AUTONOMOUS)
#...