Hi,
I'm using the SpaceNavigator (
http://www.3dconnexion.eu/products/spacemouse/spacenavigator.html). It is not to expensive and besides, I already have one which I use for my CAD software (Solidworks).
Thought, using the iPhone as a 6DOF motion input is also interesting as 'possibly' many RVT uses will own a smartphone.
Just to update the status of this topic:
----------------------------------------------------------------------------------------------------------------------------------
I currently have connected the 3D space mouse to the robotic object with succes. I found a 3D mouse drive for matlab in the FEX (
3D mouse support) written by Nick Clark (so all credits to Nick!)
His driver uses event which I use to trigger a callback in which I extract the mouse data and use it to calculate the desired joint configuration. like;
% Connect the 3D space mouse to the SerialLink object
import mouse3D.* % Import the mouse3D package
hDrv = mouse3Ddrv; % instantiate driver object
lh = event.listener(hDrv,'SenState',@(src,eventdata)CallBackFun(src,eventdata,robot)); % create an event to trigger the callback
hMon = mouse3D.mouse3Dmonitor(hDrv); % just a nice monitor from the package.
Example of the output can be seen in the attached picture.
I build it on top of the toolbox instead of integrating it with the toolbox, Therefore I have to delete the spacemouse objects and event listener myself. I did this on purpose because I don't want to break down my code when updating to a next release. My plan it to extend this with a wrapper function able to flexibly change the control frame (base, tool) and IK algorithms.
----------------------------------------------------------------------------------------------------------------------------------
Although this is nice, a more elegant way would be extending the joystick.m and joy2tr for 6DOF data (if the SDL library supports this) and implement it like the initial idea of joystick.m
Any ideas or remarks are more than welcome!!
Erik