/home/laradmin/lar/bases/phua_haptic/src/hd_hl_apis_callbacks.cpp File Reference

Auxiliary haptic callbacks implementation. More...

#include <hd_hl_apis_callbacks.h>
Include dependency graph for hd_hl_apis_callbacks.cpp:

Go to the source code of this file.

Functions

HDCallbackCode HDCALLBACK CalibrationCallback (void *pUserData)
 Callback for device calibration.
HDCallbackCode HDCALLBACK copyDeviceDataCallback (void *pUserData)
 Callback to update device data structure with the relevant parameters.
HDCallbackCode HDCALLBACK forcefeedbackCallback (void *pUserData)
 Callback to update the force feedback of the joystick.
HDCallbackCode HDCALLBACK updateDeviceCallback (void *pUserData)
 Callback for max priority servo loop update.
HDCallbackCode HDCALLBACK updateDeviceParametersCallback (void *pUserData)
 Callback for retrieving device specific parameters.

Variables

DeviceData RawDeviceData
 global variable needed for rapid data collection in the sevo loop thread

Detailed Description

Auxiliary haptic callbacks implementation.

Definition in file hd_hl_apis_callbacks.cpp.


Function Documentation

HDCallbackCode HDCALLBACK CalibrationCallback ( void *  pUserData  ) 

Callback for device calibration.

This function is PHANToM OMNI specific, for each device can have a different calibration method.

Parameters:
pUserData a pointer to a structure.
Returns:
HD_CALLBACK_CONTINUE.

Definition at line 519 of file hd_hl_apis_callbacks.cpp.

HDCallbackCode HDCALLBACK copyDeviceDataCallback ( void *  pUserData  ) 

Callback to update device data structure with the relevant parameters.

This function is a callback that runs whenever the haptic loop starts and updates the device data structure with the relevant parameters chosen by the user.

Parameters:
pUserData a pointer to a structure.
Returns:
HD_CALLBACK_CONTINUE.

Definition at line 107 of file hd_hl_apis_callbacks.cpp.

HDCallbackCode HDCALLBACK forcefeedbackCallback ( void *  pUserData  ) 

Callback to update the force feedback of the joystick.

This function is a callback that runs within the haptic loop. It checks the selected kinematic model and applys force whenever the chosen end point leaves the robot workspace.

Parameters:
pUserData a pointer to a structure.
Returns:
HD_CALLBACK_CONTINUE.

Definition at line 238 of file hd_hl_apis_callbacks.cpp.

HDCallbackCode HDCALLBACK updateDeviceCallback ( void *  pUserData  ) 

Callback for max priority servo loop update.

This function is the max priority callback that runs in the servo loop thread. It updates the data structure with the current joystick values.

Parameters:
pUserData a pointer to a structure.
Returns:
HD_CALLBACK_CONTINUE.

Definition at line 41 of file hd_hl_apis_callbacks.cpp.

HDCallbackCode HDCALLBACK updateDeviceParametersCallback ( void *  pUserData  ) 

Callback for retrieving device specific parameters.

This function is a callback executed once in the code that retrieves nominal maxmimum stiffness, damping, force and continuous force, specific for each device.

Parameters:
pUserData a pointer to a structure.
Returns:
HD_CALLBACK_CONTINUE.

Definition at line 88 of file hd_hl_apis_callbacks.cpp.


Variable Documentation

global variable needed for rapid data collection in the sevo loop thread

Definition at line 40 of file main.cpp.

 All Classes Files Functions Variables Defines


phua_haptic
Author(s): Pedro Cruz
autogenerated on Wed Jul 23 04:33:53 2014