From Human Computer Interaction Laboratory
The SensAble Phatnom device offers a haptic feedback, which can be exploited in the Vrecko system. In the HCI laboratory, there were a few papers written about it. At the present time (autumn 2011), the most recent is this one- describing how it is implemented in the Vrecko system.
To shorten it a bit, the Phantom works as a Device Plugin inside the Vrecko. The plugin manages a series of Filters, that are applied each Haptic Frame (usually 1000 times per second).
The Filters may modify the resulting force and can be of a different types: simple Multiplying filter, collision detection (generates force response), virtual coupling (drags the tool in the direction of user movement), logging etc.
The collision detection filters are merely an interface to a real collision detection algorithms, that are present in a SpacePartitioning plugin and are called through the Vrecko core - see Collision detection, namely the "Universal interface" section...
Aside from the algorithms, another problem lies in the specification of the various parameters. There must carefully calculated (or guessed) the optimal collision distance to react quickly enough before the object crashes to another, but it shouldn't be too far, so that object cannot even get close to the environment. Similar parameters are used for Virtual Coupling that generates force to move the tool in the user specified direction - the force should be high enough to make the tool reactive, but also small enough so that collision force is greater and will repulse the object if it will be about to collide.