7 #include "imstkDummyClient.h" 8 #include "imstkLogger.h" 15 for (
unsigned int i = 0; i < numButtons; i++)
49 m_orientation = (Eigen::Affine3d(Eigen::Matrix4d(transform))).rotation();
57 auto x = m_buttons.find(buttonId);
58 if (x != m_buttons.end())
60 x->second = buttonStatus;
void unlock()
End a thread-safe region.
void setPosition(const Vec3d &pos)
Set position.
ParallelUtils::SpinLock m_dataLock
Used for button and analog data.
void init(const unsigned int numButtons=0)
Initialize the client.
void setButton(const unsigned int buttonId, const bool buttonStatus)
Set the button status if it exists.
void setVelocity(const Vec3d &vel)
Set velocity.
ParallelUtils::SpinLock m_transformLock
Used for devices filling data from other threads.
Quatd m_orientation
Orientation of the end effector.
void lock()
Start a thread-safe region, where only one thread can execute at a time until a call to the unlock fu...
Vec3d m_velocity
Linear velocity of end effector.
Vec3d m_position
Position of end effector.
void setOrientation(const Quatd &orient)
Set orientation.