Skip to main content
Skip table of contents

CDRFLEx.get_robot_system

Features

This is a function for checking information on the current operation robot system (virtual robot, actual robot) in the robot controller.

Parameter

None.

Return

Value

Description

enum.ROBOT_SYSTEM

Refer to the Definition of Constant and Enumeration Type

Example

CPP
// Checks the current robot system
ROBOT_SYSTEM eRobotSystem = drfl.get_robot_system();

if(eRobotSystem != ROBOT_SYSTEM_REAL) {
    drfl.set_robot_system(ROBOT_SYSTEM_REAL);
}
else {
  //do somting …
}
JavaScript errors detected

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

If this problem persists, please contact our support.