Breadcrumbs

TOnMonitoringDataCB

Features

This is a callback function for checking robot operation data that is the same as the current location of the robot controller. As the callback function is executed automatically in the case of a specific event, a code that requires an excessive execution time (within 50 msec) within the callback function should not be made.

Parameter

Parameter Name

Data Type

Default Value

Description

*pData

struct. MONITORING_DATA

-

Refer to definition of structure

Return

None

Example

C++
void OnMonitoringDataCB(const LPMONITORING_DATA pData)
{
// Displays the joint space robot location data
cout << "joint data "
<< pData->_tCtrl._tJoint._fActualPos[0]
<< pData->_tCtrl._tJoint._fActualPos[1]
<< pData->_tCtrl._tJoint._fActualPos[2]
<< pData->_tCtrl._tJoint._fActualPos[3]
<< pData->_tCtrl._tJoint._fActualPos[4]
<< pData->_tCtrl._tJoint._fActualPos[5] << endl;
}

int main()
{
drfl.set_on_monitoring_data(OnMonitoringDataCB);
}