I'm trying to build my application using the Phantom Omni haptic device and in order to get the angular velocity of the device, I'm using a function from its library (OpenHaptics):
hdGetDoublev(HD_CURRENT_ANGULAR_VELOCITY, ang_vel);
but it returns [0,0,0]
. I'm using the same function to get the linear velocity:
hdGetDoublev(HD_CURRENT_VELOCITY, lin_vel);
and it's working fine. (Both lin_vel
and ang_vel
are defined as hduVector3Dd
)
What am I missing?