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.

set_on_monitoring_robot_system

This function registers a callback that automatically detects changes in the robot system type (e.g., real or virtual) of the controller. It is useful for automatically handling events when the robot switches its operational environment.

Definition
DRFLEx.h within class CDRFLEx, public section

void set_on_monitoring_robot_system(TOnMonitoringRobotSystemCB pCallbackFunc) {
    _set_on_monitoring_robot_system(_rbtCtrl, pCallbackFunc);
};

Parameter

Parameter Name

Data Type

Default Value

Description

pCallbackFunc

TOnMonitoringRobotSystemCB

Callback function pointer triggered when the robot system changes

Return
None

Example

void OnMonitoringRobotSystemCB(const ROBOT_SYSTEM eRobotSystem)
{
    // Triggered when the robot operation system changes
}

drfl.set_on_monitoring_robot_system(OnMonitoringRobotSystemCB);

This example registers a robot system monitoring callback that automatically runs whenever the controller switches between the virtual and real robot environments. Developers can use this to synchronize environment-specific settings or handle safety logic dynamically.