00001 /************************************************************************************************** 00002 Software License Agreement (BSD License) 00003 00004 Copyright (c) 2011-2013, LAR toolkit developers - University of Aveiro - http://lars.mec.ua.pt 00005 All rights reserved. 00006 00007 Redistribution and use in source and binary forms, with or without modification, are permitted 00008 provided that the following conditions are met: 00009 00010 *Redistributions of source code must retain the above copyright notice, this list of 00011 conditions and the following disclaimer. 00012 *Redistributions in binary form must reproduce the above copyright notice, this list of 00013 conditions and the following disclaimer in the documentation and/or other materials provided 00014 with the distribution. 00015 *Neither the name of the University of Aveiro nor the names of its contributors may be used to 00016 endorse or promote products derived from this software without specific prior written permission. 00017 00018 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR 00019 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND 00020 FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 00021 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 00022 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 00023 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 00024 IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 00025 OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00026 ***************************************************************************************************/ 00034 #ifndef _HD_HL_APIS_CALLBACKS_H 00035 #define _HD_HL_APIS_CALLBACKS_H 00036 00037 /*~~~~~~~~~~~~~~~~~ 00038 || OpenHaptics 3 || 00039 ~~~~~~~~~~~~~~~~~~*/ 00040 #include <HD/hd.h> 00041 #include <HDU/hduVector.h> 00042 #include <HDU/hduError.h> 00043 #include <HDU/hduMatrix.h> 00044 #include <HL/hl.h> 00045 #include <HLU/hlu.h> 00046 #include <HDU/hdu.h> 00047 #include <HDU/hduMath.h> 00048 00049 /*~~~~~~~~~~~~~~~~~ 00050 || others || 00051 ~~~~~~~~~~~~~~~~~~*/ 00052 #include <stdlib.h> 00053 #include <stdio.h> 00054 00055 #include <boost/lexical_cast.hpp> 00056 #include <boost/format.hpp> 00057 00058 #include <types.h> 00059 #include <miscellaneous.h> 00060 00061 #include <HD/hd.h> 00062 #include <HDU/hduVector.h> 00063 #include <HDU/hduError.h> 00064 #include <HDU/hduMatrix.h> 00065 #include <HL/hl.h> 00066 00067 #include <armadillo> 00068 00069 #include <hd_hl_apis_aux.h> 00070 00071 #include <haptic_rendering_funx.h> 00072 00073 //apparent mass at tooltip 00074 #define PHANToM_TOOLTIP_MASS 0.047 00075 00084 HDCallbackCode HDCALLBACK updateDeviceCallback(void *pUserData); 00085 00094 HDCallbackCode HDCALLBACK updateDeviceParametersCallback(void *pUserData); 00095 00104 HDCallbackCode HDCALLBACK copyDeviceDataCallback(void *pUserData); 00105 00115 HDCallbackCode HDCALLBACK forcefeedbackCallback(void *pUserData); 00116 00124 HDCallbackCode HDCALLBACK CalibrationCallback(void *pUserData); 00125 00126 #endif 00127