45#ifndef CMyCustomDeviceH
46#define CMyCustomDeviceH
48#if defined(C_ENABLE_CUSTOM_DEVICE_SUPPORT)
143 virtual bool close();
146 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 is a interface to support custom haptic devices (template).
Definition CMyCustomDevice.h:116
virtual bool getGripperAngleRad(double &a_angle)
This method returns the gripper angle in radian [rad].
Definition CMyCustomDevice.cpp:523
virtual ~cMyCustomDevice()
Destructor of cMyCustomDevice.
Definition CMyCustomDevice.cpp:226
static cMyCustomDevicePtr create(unsigned int a_deviceNumber=0)
Shared cMyCustomDevice allocator.
Definition CMyCustomDevice.h:130
virtual bool setForceAndTorqueAndGripperForce(const cVector3d &a_force, const cVector3d &a_torque, double a_gripperForce)
This method sends a force [N] and a torque [N*m] and gripper force [N] to the haptic device.
Definition CMyCustomDevice.cpp:565
virtual bool getPosition(cVector3d &a_position)
This method returns the position of the device.
Definition CMyCustomDevice.cpp:409
virtual bool close()
This method closes the connection to the haptic device.
Definition CMyCustomDevice.cpp:295
int m_MyVariable
A short description of my variable.
Definition CMyCustomDevice.h:190
virtual bool getRotation(cMatrix3d &a_rotation)
This method returns the orientation frame of the device end-effector.
Definition CMyCustomDevice.cpp:460
virtual bool calibrate(bool a_forceCalibration=false)
This method calibrates the haptic device.
Definition CMyCustomDevice.cpp:331
virtual bool open()
This method opens a connection to the haptic device.
Definition CMyCustomDevice.cpp:243
static unsigned int getNumDevices()
This method returns the number of devices available from this class of device.
Definition CMyCustomDevice.cpp:371
virtual bool getUserSwitches(unsigned int &a_userSwitches)
This method returns the status of all user switches [true = ON / false = OFF].
Definition CMyCustomDevice.cpp:635
Definition CAudioBuffer.cpp:57
std::shared_ptr< cMyCustomDevice > cMyCustomDevicePtr
Definition CMyCustomDevice.h:68
This class implements a 3D matrix.
Definition CMatrix3d.h:98
This class implements a 3D vector.
Definition CVector3d.h:89