00001 /* 00002 * HapticDeviceDefines.hpp 00003 * 00004 * Created on: Mar 4, 2012 00005 * Author: mriedel 00006 */ 00007 00008 #ifndef HAPTICDEVICEDEFINES_HPP_ 00009 #define HAPTICDEVICEDEFINES_HPP_ 00010 00011 #include <telekyb_defines/telekyb_defines.hpp> 00012 #include <telekyb_defines/enum.hpp> 00013 00014 #include <telekyb_base/Spaces.hpp> 00015 00016 namespace TELEKYB_NAMESPACE { 00017 00018 struct HapticInput { 00019 Eigen::Vector3d force; 00020 }; 00021 00022 struct HapticOuput { 00023 Position3D position; 00024 Velocity3D linVelocity; 00025 Quaternion orientation; 00026 Eigen::Vector3d force; 00027 double frequency; // loop frequency 00028 int primaryButton; // 1 if pressed 00029 }; 00030 00031 // For Cartesian Mapping 00032 TELEKYB_ENUM(HapticAxesMapping, 00033 (Forward) 00034 (Backward) 00035 (Up) 00036 (Down) 00037 (Left) 00038 (Right) 00039 ) 00040 00041 00042 } 00043 00044 #endif /* HAPTICDEVICEDEFINES_HPP_ */