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
// 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 …
}