48#if defined(C_ENABLE_LEAP_DEVICE_SUPPORT)
100 static cLeapDevicePtr create(
unsigned int a_deviceNumber = 0) {
return (std::make_shared<cLeapDevice>(a_deviceNumber)); }
113 virtual bool close();
116 virtual bool calibrate(
bool a_forceCalibration =
false);
Implements a base class for haptic devices.
This class implements a base class for haptic devices.
Definition CGenericHapticDevice.h:283
This class implements an interface to the Leap Motion tracker interface.
Definition CLeapDevices.h:86
virtual bool close()
This method closes the connection to the device.
Definition CLeapDevices.cpp:375
virtual bool getPosition(cVector3d &a_position)
This method returns the position of the device.
Definition CLeapDevices.cpp:425
static unsigned int s_libraryCounter
Number of instances for this class of devices currently using the libraries.
Definition CLeapDevices.h:161
virtual bool getRotation(cMatrix3d &a_rotation)
This method returns the orientation frame of the device end-effector.
Definition CLeapDevices.cpp:459
virtual ~cLeapDevice()
Destructor of cLeapDevice.
Definition CLeapDevices.cpp:323
virtual bool calibrate(bool a_forceCalibration=false)
This method calibrates the device.
Definition CLeapDevices.cpp:403
virtual bool open()
This method opens a connection to the device.
Definition CLeapDevices.cpp:340
static bool closeLibraries()
This method closes the libraries for this class of devices.
Definition CLeapDevices.cpp:192
virtual bool getUserSwitches(unsigned int &a_userSwitches)
This method returns the status of all user switches [true = ON / false = OFF].
Definition CLeapDevices.cpp:537
bool updateData()
Update data from controllers.
Definition CLeapDevices.cpp:569
static unsigned int getNumDevices()
This method returns the number of haptic devices available for this class of devices.
Definition CLeapDevices.cpp:240
virtual bool getGripperAngleRad(double &a_angle)
This method returns the gripper angle in radian [rad].
Definition CLeapDevices.cpp:496
static bool openLibraries()
This method opens the libraries for this class of devices.
Definition CLeapDevices.cpp:106
static cLeapDevicePtr create(unsigned int a_deviceNumber=0)
Shared cPhantomDevice allocator.
Definition CLeapDevices.h:100
Definition CAudioBuffer.cpp:57
std::shared_ptr< cLeapDevice > cLeapDevicePtr
Definition CLeapDevices.h:68
This class implements a 3D matrix.
Definition CMatrix3d.h:98
This class implements a 3D vector.
Definition CVector3d.h:89