Skip to main content
Skip table of contents

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

PY
if (drfl.get_robot_mode() == ROBOT_MODE_MANUAL) {
    // Converts to the automatic mode
    drfl.set_robot_mode(ROBOT_MODE_AUTONOMOUS);  
}
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.