You're reading the documentation for an older, but still supported version (1.33.4).
For information on the latest version, please have a look at 1.33.5.
For information on the latest version, please have a look at 1.33.5.
get_robot_system
This function returns the robot system currently in operation (virtual robot or actual robot) in the robot controller.
Definition
DRFLEx.h within class CDRFLEx, public section
ROBOT_SYSTEM get_robot_system() { return _get_robot_system(_rbtCtrl); };
Parameter
None
Return
Value |
Description |
|---|---|
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.