get_robot_system

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

Definition
DRFLEx.h within class CDRFLEx, public section (line 701)

ROBOT_SYSTEM get_robot_system() { return _get_robot_system(_rbtCtrl); };

Parameter
None

Return

Value

Description

ROBOT_SYSTEM

Refer to the Definition of Enumeration Type

Example

// 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 something ...
}

This example checks whether the robot is running in a virtual or real system. If it is virtual, the code switches to real mode to enable control of the physical robot.