us.ihmc.utilities.inputDevices
Class SpaceNavigatorController

java.lang.Object
  extended by us.ihmc.utilities.inputDevices.SpaceNavigatorController

public class SpaceNavigatorController
extends java.lang.Object

Details for: SpaceNavigator, Stick, Unknown Components: (8) 0. Z Axis, z, relative, analog, 0.0 1. Y Axis, y, relative, analog, 0.0 2. X Axis, x, relative, analog, 0.0 3. Z Rotation, rz, relative, analog, 0.0 4. Y Rotation, ry, relative, analog, 0.0 5. X Rotation, rx, relative, analog, 0.0 6. Button 0, 0, absolute, digital, 0.0 7. Button 1, 1, absolute, digital, 0.0 No Rumblers No subcontrollers


Field Summary
static int NUM_BUTTONS
           
 int RX_AXIS_Id
           
 int RY_AXIS_Id
           
 int RZ_AXIS_Id
           
 int X_AXIS_Id
           
 int Y_AXIS_Id
           
 int Z_AXIS_Id
           
 
Constructor Summary
SpaceNavigatorController()
           
 
Method Summary
 boolean[] getButtons()
          Return all the buttons in a single array.
 float getRX()
          X Rotation
 float getRY()
          Y Rotation
 float getRZ()
          Z Rotation
 float getTX()
          X Translation
 float getTY()
          Y Translation
 float getTZ()
          Z Translation
 boolean isButtonPressed(int pos)
           
 void poll()
           
 void registerMouse3DListener(Mouse3DListener listener)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NUM_BUTTONS

public static final int NUM_BUTTONS
See Also:
Constant Field Values

X_AXIS_Id

public int X_AXIS_Id

Y_AXIS_Id

public int Y_AXIS_Id

Z_AXIS_Id

public int Z_AXIS_Id

RX_AXIS_Id

public int RX_AXIS_Id

RY_AXIS_Id

public int RY_AXIS_Id

RZ_AXIS_Id

public int RZ_AXIS_Id
Constructor Detail

SpaceNavigatorController

public SpaceNavigatorController()
Method Detail

getButtons

public boolean[] getButtons()
Return all the buttons in a single array. Each button value is a boolean.


isButtonPressed

public boolean isButtonPressed(int pos)

poll

public void poll()

registerMouse3DListener

public void registerMouse3DListener(Mouse3DListener listener)

getTX

public float getTX()
X Translation

Returns:
float value between 1613 and -1613

Note: the returned value my not be very logic and correct, I just measured them during pooling


getTY

public float getTY()
Y Translation

Returns:
float value between 1613 and -1613

Note: the returned value my not be very logic and correct, I just measured them during pooling


getTZ

public float getTZ()
Z Translation

Returns:
float value between 1613 and -1613

Note: the returned value my not be very logic and correct, I just measured them during pooling


getRX

public float getRX()
X Rotation

Returns:
float value between 1560 and -1560

Note: the returned value my not be very logic and correct, I just measured them during pooling


getRY

public float getRY()
Y Rotation

Returns:
float value between 1560 and -1560

Note: the returned value my not be very logic and correct, I just measured them during pooling


getRZ

public float getRZ()
Z Rotation

Returns:
float value between 1560 and -1560

Note: the returned value my not be very logic and correct, I just measured them during pooling