You're reading the documentation for an older, but still supported version (GL013300).
For information on the latest version, please have a look at GL013301.

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 (line 658)

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(ROBOT_STATE eRobotState)
{
    // Triggered when the robot operation system changes
}

int main()
{
    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.