Skip to main content
Skip table of contents

CDRFLEx.set_robot_mode

기능

로봇 제어기의 현재 운용 모드 정보를 설정하기 위한 함수이다.

인수

인수명자료형기본값설명

eMode

enum.ROBOT_MODE

-

상수 및 열거형 정의 참조

리턴

설명

0

성공

1

오류

예제

CPP
if (Drfl.get_robot_mode() == ROBOT_MODE_MANUAL) {
    // 자동모드 전환
    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.