CDRFLEx.set_robot_mode
Features
This is a function for setting information on the current operation mode of the robot controller.
Parameter
Parameter Name | Data Type | Default Value | Description |
---|---|---|---|
eMode | enum.ROBOT_MODE | - | Refer to the Definition of Constant and Enumeration Type |
Return
Value | Description |
---|---|
0 | Success |
1 | Error |
Example
if (drfl.get_robot_mode() == ROBOT_MODE_MANUAL) {
// Converts to the automatic mode
drfl.set_robot_mode(ROBOT_MODE_AUTONOMOUS);
}