16 #ifndef SURGSIM_DEVICES_NOVINT_NOVINTDEVICE_H 17 #define SURGSIM_DEVICES_NOVINT_NOVINTDEVICE_H 21 #include "SurgSim/DataStructures/OptionalValue.h" 22 #include "SurgSim/Input/CommonDevice.h" 30 SURGSIM_STATIC_REGISTRATION(NovintDevice);
191 double m_pitchOffset;
193 double m_toolDofOffset;
199 bool finalize()
override;
210 std::shared_ptr<NovintScaffold> m_scaffold;
219 double m_positionScale;
221 double m_orientationScale;
227 #endif // SURGSIM_DEVICES_NOVINT_NOVINTDEVICE_H void setOrientationScale(double scale)
Sets the orientation scale for this device.
Definition: NovintDevice.cpp:148
double m_maxForce
The maximum force magnitude (in Newtons) that should be sent to the hardware.
Definition: NovintDevice.h:183
Wraps glewInit() to separate the glew opengl definitions from the osg opengl definitions only imgui n...
Definition: AddRandomSphereBehavior.cpp:36
void setPositionScale(double scale)
Sets the position scale for this device.
Definition: NovintDevice.cpp:134
virtual bool is7DofDevice() const
Query if this object represents a 7 degree of freedom hardware device.
Definition: NovintDevice.cpp:168
void setAntigrav(Math::Vector3d antigrav)
Set a constant force that gets added to all forces sent to the hardware.
Definition: NovintDevice.cpp:187
bool getSerialNumber(std::string *serialNumber) const
Gets the serial number used to register this device with the hardware library.
Definition: NovintDevice.cpp:76
bool m_7DofDevice
True if the device is 7Dof, false if the device is 3Dof.
Definition: NovintDevice.h:180
void setYawOffset(double yawOffset)
Set constant offset for yaw.
Definition: NovintDevice.cpp:225
A class that manages Novint Falcon devices.
Definition: NovintScaffold.h:37
void set7DofDevice(bool val)
Sets whether or not this is supposed to be a 7Dof device.
Definition: NovintDevice.cpp:162
Eigen::Matrix< double, 3, 1 > Vector3d
A 3D vector of doubles.
Definition: Vector.h:57
double getToolDofOffset() const
Definition: NovintDevice.cpp:250
void setPitchOffset(double pitchOffset)
Set constant offset for pitch.
Definition: NovintDevice.cpp:235
double getYawOffset() const
Definition: NovintDevice.cpp:220
void setSerialNumber(const std::string &serialNumber)
Sets the serial number used to register this device with the hardware library.
Definition: NovintDevice.cpp:66
A class implementing the communication with a Novint Falcon device.
Definition: NovintDevice.h:69
bool getInitializationName(std::string *initializationName) const
Gets the name used to register this device with the hardware library.
Definition: NovintDevice.cpp:96
double getRollOffset() const
Definition: NovintDevice.cpp:240
bool isInitialized() const override
Definition: NovintDevice.cpp:129
Math::Vector3d m_antigrav
The anti-gravity force in Newtons.
Definition: NovintDevice.h:186
void setToolDofOffset(double toolDofOffset)
Set constant offset for tool DOF.
Definition: NovintDevice.cpp:255
double getPitchOffset() const
Definition: NovintDevice.cpp:230
void setRollOffset(double rollOffset)
Set constant offset for roll.
Definition: NovintDevice.cpp:245
NovintDevice(const std::string &name)
Constructor.
Definition: NovintDevice.cpp:31
double getOrientationScale() const
Gets the orientation scale for this device.
Definition: NovintDevice.cpp:157
virtual ~NovintDevice()
Destructor.
Definition: NovintDevice.cpp:58
void setInitializationName(const std::string &initializationName)
Sets the name used to register this device with the hardware library.
Definition: NovintDevice.cpp:86
void setMaxForce(double force)
Set the maximum force that can be sent to the device.
Definition: NovintDevice.cpp:173
double m_yawOffset
Definition: NovintDevice.h:190
double getPositionScale() const
Gets the position scale for this device.
Definition: NovintDevice.cpp:143
Math::Vector3d getAntigrav() const
Definition: NovintDevice.cpp:195
double getMaxForce() const
Definition: NovintDevice.cpp:182
bool initialize() override
Fully initialize the device.
Definition: NovintDevice.cpp:106