45 #ifndef CMyCustomDeviceH 46 #define CMyCustomDeviceH 48 #if defined(C_ENABLE_CUSTOM_DEVICE_SUPPORT) 130 static cMyCustomDevicePtr
create(
unsigned int a_deviceNumber = 0) {
return (std::make_shared<cMyCustomDevice>(a_deviceNumber)); }
143 virtual bool close();
146 virtual bool calibrate(
bool a_forceCalibration =
false);
196 #endif // C_ENABLE_CUSTOM_DEVICE_SUPPORT This class implements a 3D vector.
Definition: CVector3d.h:88
This class is a interface to support custom haptic devices (template).
Definition: CMyCustomDevice.h:115
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
static cMyCustomDevicePtr create(unsigned int a_deviceNumber=0)
Shared cMyCustomDevice allocator.
Definition: CMyCustomDevice.h:130
std::shared_ptr< cMyCustomDevice > cMyCustomDevicePtr
Definition: CMyCustomDevice.h:67
virtual ~cMyCustomDevice()
Destructor of cMyCustomDevice.
Definition: CMyCustomDevice.cpp:226
static unsigned int getNumDevices()
This method returns the number of devices available from this class of device.
Definition: CMyCustomDevice.cpp:371
cMyCustomDevice(unsigned int a_deviceNumber=0)
Constructor of cMyCustomDevice.
Definition: CMyCustomDevice.cpp:76
virtual bool close()
This method closes the connection to the haptic device.
Definition: CMyCustomDevice.cpp:295
Implements a base class for haptic devices.
This class implements a 3D matrix.
Definition: CMatrix3d.h:97
virtual bool getGripperAngleRad(double &a_angle)
This method returns the gripper angle in radian [rad].
Definition: CMyCustomDevice.cpp:523
This class implements a base class for haptic devices.
Definition: CGenericHapticDevice.h:280
virtual bool getPosition(cVector3d &a_position)
This method returns the position of the device.
Definition: CMyCustomDevice.cpp:409
virtual bool calibrate(bool a_forceCalibration=false)
This method calibrates the haptic device.
Definition: CMyCustomDevice.cpp:331
Definition: CAudioBuffer.cpp:56
virtual bool open()
This method opens a connection to the haptic device.
Definition: CMyCustomDevice.cpp:243
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 getUserSwitches(unsigned int &a_userSwitches)
This method returns the status of all user switches [true = ON / false = OFF].
Definition: CMyCustomDevice.cpp:635