1.32 1.31 1.30 1.29 1.28 1.20 Korean English Chinese Czech Dutch French German Hungarian Italian Japanese Polish Portuguese Spanish
1.32 1.31 1.30 1.29 1.28 1.20 Korean English Chinese Czech Dutch French German Hungarian Italian Japanese Polish Portuguese Spanish

CDRFLEx.set_robot_control

Features

This is a function that the user can set and convert the current operation state in the robot controller.

Parameter

Parameter Name

Data Type

Default Value

Description

eControl

enum.ROBOT_CONTROL

-

Refer to the Definition of Constant and Enumeration Type

Return

Value

Description

0

Error

1

Success

Example

C++
if (drfl.get_robot_state () == eSTATE_SAFE_OFF) {
    // Servo on 
    drfl.set_robot_control(eCONTROL_RESET_SAFET_OFF);
}
else if (drfl.get_robot_state () == eSTATE_SAFE_OFF2) {
    // Enters the Recovery mode
    drfl.set_robot_control(CONTROL_RECOVERY_SAFE_OFF);
}