hd_hl_apis_callbacks.h
Go to the documentation of this file.
1 /**************************************************************************************************
2  Software License Agreement (BSD License)
3 
4  Copyright (c) 2011-2013, LAR toolkit developers - University of Aveiro - http://lars.mec.ua.pt
5  All rights reserved.
6 
7  Redistribution and use in source and binary forms, with or without modification, are permitted
8  provided that the following conditions are met:
9 
10  *Redistributions of source code must retain the above copyright notice, this list of
11  conditions and the following disclaimer.
12  *Redistributions in binary form must reproduce the above copyright notice, this list of
13  conditions and the following disclaimer in the documentation and/or other materials provided
14  with the distribution.
15  *Neither the name of the University of Aveiro nor the names of its contributors may be used to
16  endorse or promote products derived from this software without specific prior written permission.
17 
18  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
19  IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20  FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
21  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22  DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
24  IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
25  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 ***************************************************************************************************/
34 #ifndef _HD_HL_APIS_CALLBACKS_H
35 #define _HD_HL_APIS_CALLBACKS_H
36 
37 /*~~~~~~~~~~~~~~~~~
38 || OpenHaptics 3 ||
39 ~~~~~~~~~~~~~~~~~~*/
40 #include <HD/hd.h>
41 #include <HDU/hduVector.h>
42 #include <HDU/hduError.h>
43 #include <HDU/hduMatrix.h>
44 #include <HL/hl.h>
45 #include <HLU/hlu.h>
46 #include <HDU/hdu.h>
47 #include <HDU/hduMath.h>
48 
49 /*~~~~~~~~~~~~~~~~~
50 || others ||
51 ~~~~~~~~~~~~~~~~~~*/
52 #include <stdlib.h>
53 #include <stdio.h>
54 
55 #include <boost/lexical_cast.hpp>
56 #include <boost/format.hpp>
57 
58 #include <phua_haptic/types.h>
60 
61 #include <HD/hd.h>
62 #include <HDU/hduVector.h>
63 #include <HDU/hduError.h>
64 #include <HDU/hduMatrix.h>
65 #include <HL/hl.h>
66 
67 #include <armadillo>
68 
70 
72 
73 //apparent mass at tooltip
74 #define PHANToM_TOOLTIP_MASS 0.047
75 
84 HDCallbackCode HDCALLBACK updateDeviceCallback(void *pUserData);
85 
94 HDCallbackCode HDCALLBACK updateDeviceParametersCallback(void *pUserData);
95 
104 HDCallbackCode HDCALLBACK copyDeviceDataCallback(void *pUserData);
105 
115 HDCallbackCode HDCALLBACK forcefeedbackCallback(void *pUserData);
116 
124 HDCallbackCode HDCALLBACK CalibrationCallback(void *pUserData);
125 
126 #endif
127 
haptic_rendering_funx.h file for this module. Contains includes, prototypes and global vars...
HDCallbackCode HDCALLBACK updateDeviceParametersCallback(void *pUserData)
Callback for retrieving device specific parameters.
types.h file for this module. Contains types and structures used by the application.
hd_hl_apis_aux.h file for this module. Contains includes, prototypes and global vars.
HDCallbackCode HDCALLBACK forcefeedbackCallback(void *pUserData)
Callback to update the force feedback of the joystick.
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 updateDeviceCallback(void *pUserData)
Callback for max priority servo loop update.
miscellaneous.h file for this module. Contains prototypes, includes and defines.


phua_haptic
Author(s): Pedro Cruz
autogenerated on Mon Mar 2 2015 01:32:36