Features
This is a function for registering the callback function that automatically checks changes in the state of control right (request/permission/reject) in the robot controller. It is useful when functions that should be executed automatically are made.
Parameter
|
Parameter Name |
Data Type |
Default Value |
Description |
|---|---|---|---|
|
pCallbackFunc |
TOnMonitoringAccessControlCB |
- |
Refer to definition of callback function |
Return
None
Example
C++
void OnMonitoringAccessControlCB(const MONITORING_ACCESS_CONTROL eAccCtrl)
{
// Receives the message for transfer of control right
case MONITORING_ACCESS_CONTROL_REQUEST:
// Rejects the transfer of control right
drfl.manage_access_control(MANAGE_ACCESS_CONTROL_RESPONSE_NO);
break;
defatul:
break;
}
int main()
{
drfl.set_on_monitoring_access_control(OnMonitoringAccessControlCB);
}