Search topics and sections

Haptic rendering is the calculation of the forces that a haptic device pushes back on a user, so that the user can feel virtual objects by touch. It is the version for touch of graphics rendering, which turns a virtual scene into an image. Haptic rendering instead turns the user's contact with the scene into a force.[1]

The program runs in a fast loop. Each pass takes four steps:[1]

  1. Read where the user's hand or tool is.
  2. Check for contact with virtual objects.
  3. Calculate the force.
  4. Command the device's motors.

A common loop rate is 1,000 passes per second (1 kHz), while images in an interactive scene are usually redrawn about 30 times per second.[1][2]

Basic ideas

Touch is two-way

Touch exchanges energy in both directions, unlike sight and hearing. A screen only sends light to the eye, but a haptic device both pushes on the hand and is pushed by it. This two-way flow is often called the single most important feature of haptic interaction.[1]

The two-way flow is also the reason haptic rendering can become unstable, as the section on stability explains.

Devices and avatars

A haptic device is a small motorized machine, often a stylus or handle, that measures the user's motion and applies force feedback.[1]

An avatar is the device's stand-in inside the virtual world, such as a point at a tool's tip or a whole virtual tool.[1]

Moving the device moves the avatar. When the avatar touches a virtual object, that contact produces the forces the device applies.[1]

Devices fall into two types based on how they handle mechanical impedance, which is how strongly something resists being moved, measured as the force it gives for a given motion.[3][1]

  • Impedance devices read position and send force. They are simpler and cheaper to build, and they are the most common type.
  • Admittance devices read force and send position. They are usually used where high forces are needed in a large workspace, the region the device can reach.

What the user feels

People sense contact through mechanoreceptors in the skin, joints, tendons and muscles. They get two kinds of information:[1]

  • Tactile information comes from the skin and describes how pressure spreads across the contact area.
  • Kinesthetic information comes from sensors in the joints and is part of proprioception.

Most haptic rendering simulates contact through a tool handle. The system then only needs the forces between the tool's avatar and the objects. Salisbury and colleagues note that current methods handle such forces well in simple cases but are limited when tactile feedback is needed.[1]

The haptic loop

A haptic rendering program has three main blocks:[1]

  • Collision detection finds where, when and how deeply the avatar and objects overlap.
  • Force response computes the ideal contact force FdF_d, as close as possible to the force real objects would produce.
  • Control commands the device so that the force it actually applies, FrF_r, comes as close to FdF_d as the hardware allows.
Haptic rendering loopHapticdeviceHumanoperatorCollisiondetectionForceresponseControlalgorithmsSimulation engineVisualrenderingDisplayHaptic renderingposition Xcontacts S, XFdideal forceFr (applied force)Fdpositions
A haptic rendering system, after Salisbury, Conti and Barbagli (2004). Collision detection turns the device position XX into contacts SS, force response computes the ideal force FdF_d, and control algorithms return the applied force FrF_r to the device, a loop that commonly runs at about 1 kHz.

One pass of a typical loop runs these steps:[1]

  1. Read the position sensors at the device's joints.
  2. Combine the readings into the position of the handle in space, which is the avatar's position.
  3. Detect collisions between the avatar and objects, and report how deep the avatar has gone.
  4. Compute the contact force.
  5. Send the force to the control algorithms, which apply it to the user while keeping the system stable.

The simulation engine then uses the same forces to move or deform the virtual objects.[1]

There is no fixed rule for the loop rate, but 1 kHz is common. Salisbury and colleagues describe it as an acceptable trade-off, since faster loops give crisper contact and texture but leave less time per pass for complex scenes.[1] Ruspini and colleagues note that devices typically need rates over 1,000 Hz for stability.[2]

The virtual wall

Rendering a virtual wall, meaning contact with a very stiff flat surface, is the basic haptic task. It is also the standard test case in studies of stability.[1]

The loop runs in discrete steps, so the avatar always sinks a little into any virtual object before a force acts. The simplest wall algorithm uses that depth. If the avatar moves along the xx axis and the wall fills the region x≤xWx \le x_W, the force is[1]

F={0if x>xWK (xW−x)if x≤xWF = \begin{cases} 0 & \text{if } x > x_W \\ K\,(x_W - x) & \text{if } x \le x_W \end{cases}

Here xx is the avatar's position, xWx_W is the wall surface, and KK is the wall's stiffness, which should ideally be very large. This is a spring law like Hooke's law: the push grows in proportion to depth. Methods that compute force from penetration depth this way are called penalty methods.[1][4]

Many implementations add a virtual damper in parallel with the spring. The damper resists the avatar's speed, which is estimated from consecutive position samples.[3]

A one-dimensional virtual wallxxWWallFree spaceReaction forceIdeal avatarReal avatarxFxWF = 0F = K(xW − x)slope −K
A one-dimensional virtual wall. A virtual spring joins the real avatar inside the wall to the ideal avatar on the surface xWx_W, so the force is F=K(xW−x)F = K(x_W - x) for x≤xWx \le x_W (a line of slope −K-K against xx) and F=0F = 0 in free space.

Point contact in three dimensions

In the early 1990s, researchers saw that treating the user's tool as a single point made haptics much easier. Only three force components at the probe tip must be computed, which simplifies the device and the collision and force computations.[1] Such a device has three degrees of freedom (DOF), one for each direction of motion and force.

Vector-field methods and thin objects

Early 3-DOF methods, called vector-field methods, assign a force direction and size to each point inside an object. They split the inside of the object into regions and tie each region to one surface. These methods work for simple shapes, but it is unclear how to split complex shapes into regions.[5][1]

Vector-field methods also do not record where the probe was before.[1] Thin objects expose the flaw. As the user pushes harder, the probe goes deeper, and once it passes more than halfway through, the force flips direction and pushes the user out the other side.[6]

Push-through in haptic rendering of a thin slabUser push(a)(b)(c)Small forceLarger forceForce flips: pushed through
Push-through on a thin slab: the force grows as the probe moves deeper (a, b) and points back out the entry face. Once the probe crosses the center line (c), the nearest face is the far one, so the force flips and pushes the probe out the other side.

God-object and proxy methods

The god-object method (Craig Zilles and Kenneth Salisbury, 1995) and the virtual proxy method (Diego Ruspini, Krasimir Kolarov and Oussama Khatib, 1997) fixed this, and the two groups developed them independently.[1] Both keep an extra point (a small sphere in the proxy method) that is never allowed to enter an object. A virtual spring joins it to the device's actual position.

In free space the proxy sits at the device position, so the force is zero. When the device enters an object, the proxy is updated in two steps:[1]

  1. Find the set of active constraints, meaning the surfaces that block the motion.
  2. Move the proxy, starting from its old position, to the point on those constraints closest to the current device position.

The force then comes from the spring between the two points:

F=k (xp−xh)\mathbf{F} = k\,(\mathbf{x}_p - \mathbf{x}_h)

Here xp\mathbf{x}_p is the proxy position, xh\mathbf{x}_h is the device (haptic interface) position, and kk is the spring stiffness. Because the proxy stays on the surface the user is touching, the force direction is always clear, even for thin objects.[5]

God-object proxy in haptic renderingProxy xpDevice xhF = 0Free spaceContactF = k(xp − xh)Active constraint
In free space the proxy xpx_p sits at the device position xhx_h and no force is rendered. In contact the proxy stays on the surface at the point closest to xhx_h, and a virtual spring gives the force F=k(xp−xh)F = k(x_p - x_h).

The two methods differ in detail:

  • In the god-object method, a surface is active when the god-object is on one side of it and the device point is on the other, within the surface's edges. One surface can be active for each powered DOF, meaning each direction in which the device can actively apply force. With flat facets (the flat polygon faces that make up a surface), the new position comes from a small set of linear equations.[5]
  • The proxy is a massless sphere, not a point. Its radius is chosen large enough that it cannot fall through small gaps between mesh polygons. Ruspini and colleagues note that the god-object needed costly preprocessing of the mesh's connectivity to avoid such gaps.[4]
  • The proxy framework also renders shading, friction and texture, all by changing how the proxy moves.[4]

The proxy design also fails safely. If the proxy update cannot keep up with the control loop, objects feel "sticky", which Ruspini and colleagues judge better than unstable motion of the device.[4]

Smooth shapes and other models

In 1995, Salisbury's group blended surface normals (lines perpendicular to the surface) across a mesh, much like Phong shading in graphics, so that the force direction changes smoothly instead of jumping at edges. They found that a low-detail mesh then feels smooth, because human position sense is not very exact.[5] Morgenbesser and Srinivasan named and refined the method as force shading in 1996.[1]

Point-contact rendering has also been extended to other object models:[1]

  • Implicit surfaces given by equations, where collision tests are fast and the force direction and size come from exact formulas
  • NURBS surfaces, which are smooth curved surfaces defined by control points
  • Voxel models

Friction and texture

Surface forces add to the forces set by an object's shape. Tiny bumps on real surfaces resist sliding and create forces along the surface, opposite to the motion.[1]

Friction

Simple friction models go back to a model proposed by Leonardo da Vinci and developed by Charles-Augustin de Coulomb in 1785. Such models were the basis of the simpler friction models used with the god-object and proxy methods.[1]

More accurate models exist, but they are slower, so real-time haptics must trade accuracy against speed.[1] Salisbury and colleagues name three:

  • The Karnopp model of stick-slip friction treats any speed inside a small band around zero as sticking, so the program never has to detect an exact zero speed.[7]
  • The bristle model treats each contact point as a bond between flexible bristles that act as springs and snap when stretched too far.[7]
  • The reset integrator model is a faster version of the bristle model. It tracks the stretch of one bond and stops it growing once it reaches the point where slipping begins.[7]

Texture

Haptic texture methods often borrow from texture mapping in graphics, where an image is projected onto a surface. Margaret Minsky first proposed haptic texture mapping in 2D, and Ruspini and colleagues extended it to 3D scenes.[1]

Other methods build textures from math functions:[1]

  • Basdogan and colleagues, and Costa and Cutkosky, used fractals, patterns with similar detail at many different scales.
  • Siira and Pai used a random (stochastic) model.

Beyond a single point

A point probe cannot apply torques. This can lead to odd results, such as feeling an object with the tool's tip while the rest of the tool lies inside the object.[1]

Richer avatars address this. The number of DOF needed to describe the contact forces usually matches the number of powered DOF on the device.[1]

DOF Avatar Example
1 Motion and force along one line Squeezing scissors, turning a knob, pressing a syringe
2 A point moving in a plane A force-feedback mouse
3 A point probe Tool-tip contact with god-object or proxy
4 Soft-finger contact (a point contact with friction that also resists twisting about the contact normal) Grasping with several fingers (Barbagli and colleagues)
5 A line segment Long tools, using ray-based rendering, which models a tool as connected line segments and checks them for contact (Basdogan and colleagues)
6 A rigid object (one that does not bend or change shape) of any shape, with force and torque Six-DOF manipulation of a virtual part

Table content from Salisbury, Conti and Barbagli.[1]

Six-DOF rendering with voxels

William McNeely, Kevin Puterbaugh and James Troy at Boeing published a voxel-based 6-DOF method in 1999. Their software was called Voxmap PointShell.[8]

The method lets a user move one somewhat complex rigid object through a scene of any complexity made of fixed rigid objects.[8][1]

The method uses two data structures:[8]

  • A voxmap, a single 3D grid that records which cells are filled by the fixed objects. A generalized octree saves memory.
  • A point shell, a set of points on the moving object's surface, each with an inward-pointing surface normal.

Each haptic update runs three steps:[8]

  1. Move every point of the point shell with the object and look it up in the voxmap.
  2. For a point inside a surface voxel, measure its depth dd below a tangent plane that passes through the voxel's center and shares the point's normal. If the point has not passed below that plane, dd is zero. The point's force is proportional to dd and points along the point's normal.
  3. Combine the forces into one total force and torque. They are summed, or averaged once 10 or more points are in contact.
Voxmap PointShell haptic renderingPoint shellMoving objectCombined forceand torqueVoxmapStatic objectTangent planeF ∝ dd = 0,no forced
In the Voxmap PointShell method, a point inside a surface voxel produces a force along its normal only if it has passed below the voxel's tangent plane, and the force is proportional to that depth dd. The per-point forces are combined into one force and torque on the moving object: they are summed, or averaged once 10 or more points are in contact.

The force field is shifted outward from the surfaces so that the exact surfaces never pass into each other, at the cost of a voxel-sized gap.[8] The simple force model causes jumps in force size when a point crosses a voxel boundary, so the moving object is joined to the device through a virtual coupling (described below).[8]

The system ran the device at a steady 1,000 Hz on one dedicated processor, with a separate processor for graphics. For a fixed voxel size, the work per update grows linearly with the moving object's exposed surface area, and depends slightly on how much contact there is.[8]

The authors judged the accuracy suited to maintenance and assembly simulations that can tolerate voxel-scale gaps.[8] Later work traded fixed-time performance for about ten times finer spatial accuracy.[9]

Stability and passivity

An ideal device would feel like nothing in free space and exactly like the virtual object on contact. Real devices fall short in four ways:[1]

  • Motors give limited force, and not equally well in every direction. Outputs that hit their limit (saturate) give wrong or jumpy forces.
  • Friction, inertia (an object's tendency to resist changes in its motion) and backlash (play in the gears) in the device add unwanted forces.
  • The program works in discrete time, while the user moves continuously.
  • Position sensors have finite resolution, so every contact reading carries a quantization error.

Why virtual walls vibrate

Discrete time makes a virtual wall give back more energy than it takes. The force is updated only once per sample, so it is based on a slightly old position.

Pressing into the wall, the user does less work than with a real spring. On release, the wall returns more work than a real spring would.[1]

Energy gain from sampling in a virtual wallideal spring F = Kdpressing inreleasingenergy gainedby the userpenetration depth dforce F
A sampled virtual wall holds force constant between samples using the last sampled depth, so the force lies below the ideal spring F=KdF = Kd when pressing in and above it when releasing. The shaded area between the two staircases is the energy the wall returns to the user on each press and release.

This extra energy can make the device vibrate at high frequency or produce uncontrollably large forces. Stiffer walls and longer sample periods make it worse.[1]

Passivity

A passive system cannot release more energy than it has taken in. Passivity is a sufficient condition for stability.[10] The human operator's behavior cannot be captured by one simple model, so researchers have largely used passivity theory to build methods that stay stable for any user.[1]

Colgate and Schenkel (1994) derived a passivity condition for a one-DOF device rendering a virtual wall made of a spring and a damper. The device is modeled as a mass with physical damping, run by a controller that reads and acts only at fixed time steps. With no time delay, the wall is passive when[11][3]

b>KT2+∣B∣b > \frac{KT}{2} + |B|

Here bb is the device's physical (mechanical) damping, KK is the virtual stiffness, BB is the virtual damping (which may be negative), and TT is the sample period, the time between consecutive updates. Rearranged, the stiffest passive wall is K<2(b−∣B∣)/TK < 2(b - |B|)/T.

The condition has several direct results:[3]

  • Some physical damping is essential for passivity.
  • With bb and BB fixed, the largest passive stiffness is proportional to the sample rate 1/T1/T.
  • With bb and TT fixed, higher stiffness is possible at lower virtual damping.

As an illustration, take T=0.001T = 0.001 s (a 1 kHz loop), b=1b = 1 N·s/m and B=0B = 0. The condition then allows KK up to 2×1/0.001=2,0002 \times 1 / 0.001 = 2{,}000 N/m.

The condition is safe but strict: some walls outside it are still stable. It was also derived without time delay. Hulin, Preusche and Hirzinger showed that it does not hold once delay is present, as it is in most real systems.[11]

Z-width

Colgate and Brown (1994) proposed Z-width as a measure of device quality. Z-width is the range of impedances a device can render while staying passive, from the low impedance of free motion to the high impedance of a stiff wall.[3][12] A device with a larger Z-width generally renders more realistic virtual environments.[12]

Passive region of virtual stiffness and damping−b₂−b₁0b₁b₂Virtual damping BVirtual stiffness K2b₁/T2b₂/TMore physical damping b₂Passive (physical damping b₁)
Pairs of virtual stiffness KK and virtual damping BB inside the triangle meet b>KT/2+∣B∣b > KT/2 + |B| and keep the haptic display passive. A larger physical damping b2>b1b_2 > b_1 makes the triangle larger and raises its peak stiffness from 2b1/T2b_1/T to 2b2/T2b_2/T.

In their experiments, the device's own damping had an "overwhelming influence" on Z-width. To reach very high impedances, they recommended these measures:[3]

  • Maximize the device's physical damping, which they found the cheapest and most effective measure.
  • Maximize sensor resolution, especially when velocity is computed from position.
  • Maximize the sample rate, while filtering the velocity estimate, since faster sampling makes it noisier.
  • Pass the velocity signal through a low-pass filter, which removes rapid changes from a signal.

Later work added damping electrically in the motor amplifier. On one device this allowed about 6 times higher passive stiffness and 2.7 times more virtual damping.[12]

Virtual coupling

A virtual coupling is a virtual spring and damper placed between the haptic device and the avatar. J. Edward Colgate and colleagues introduced it in 1995.[1] The coupling caps the impedance the device must display. The virtual scene can then be as stiff as desired without making the device unstable, although the device itself still cannot render higher stiffness.[1]

Virtual coupling in haptic renderingHaptic deviceDevice positionCoupling forceVirtual coupling (spring + damper)Caps the impedance the device must displayAvatar in simulationStiff virtual object
A virtual coupling joins the haptic device to its avatar in the simulation with a spring and a damper in parallel. The device sends its position to the coupling, and the coupling sends a force back, so the device never has to display more impedance than the coupling allows.

Time-domain passivity control

Blake Hannaford and Jee-Hwan Ryu (2002) proposed checking passivity while the system runs.[13] Their method has two parts:

  • A passivity observer adds up the energy flowing into and out of part of the system at each sample. A negative total means that part is producing energy.
  • A passivity controller is an adjustable damper. At each sample it absorbs exactly the net energy the observer measures, if there is any.

On the Excalibur haptic device, the method gave stable contact with stiffness over 100 N/mm or time delays of 15 ms. It needs little extra computation and no model of the device's dynamics.[13] Its authors noted that it is sensitive to noise in the velocity estimate.[14]

Multirate architectures

A second way to keep the loop fast is to separate force output from slower computations. Adachi, Kumano and Ogino (1995) proposed an intermediate representation for this. The force loop runs at a high rate against a very simple local model of the nearby surface, such as a plane or a sphere.[1]

Salisbury and colleagues describe four threads, separate program tasks that can run at different rates:[1]

  1. A visual rendering loop, usually at up to 30 Hz.
  2. A simulation thread, run as fast as the scene's complexity allows.
  3. A slower collision-detection thread that updates the local model of the object part nearest the avatar.
  4. A fast thread that runs simple collision detection and force response against the local model at the high loop rate.
Multirate haptic rendering architectureVisual renderingUp to 30 HzSimulationAs fast as possibleCollision detectionSlower updatesForce responseAbout 1 kHzLocal modelTimeLocal model (plane)Avatar
A multirate haptic rendering architecture, after Salisbury, Conti and Barbagli (2004), with four threads that update at different rates. The collision detection thread passes a local model to the force response loop, which runs at about 1 kHz1\,\text{kHz}. In the inset, that local model is a tangent plane, one that touches the object surface near the avatar and matches its direction there.

Jumps in the local model are normally not felt, because human hand speed is limited and the local model can keep up. The approach became popular in surgical simulators, where computing deformable tissue is slow.[1]

History

The word haptics was first used in the early 20th century by psychophysicists, researchers who study how people sense and perceive things, for the study of touch. Robotics researchers took up touch in the 1970s and 1980s.[1] Key steps in haptic rendering include:

  • At least as early as the 1960s, Knoll showed haptic interaction with simple virtual objects.[1]
  • Before 1994, virtual reality work included Frederick Brooks's molecular docking project (modeling how molecules fit together) and Margaret Minsky's virtual sandpaper system.[3]
  • In the early 1990s, "computer haptics" emerged, and the value of point interaction was recognized.[1]
  • At the MIT Artificial Intelligence Laboratory, Salisbury's group developed the PHANToM desktop force display and rendering methods for it.[5]
  • In 1994, Colgate and Brown introduced Z-width.[3]
  • In 1995, Zilles and Salisbury published the god-object method.[6]
  • In 1997, Ruspini, Kolarov and Khatib published the virtual proxy.[2]
  • In 1999, Voxmap PointShell brought 6-DOF rendering of complex scenes.[8]
  • In 2002, Hannaford and Ryu published time-domain passivity control.[13]

Applications and open problems

Haptic rendering is used wherever people must feel virtual or remote objects. Salisbury and colleagues list these examples:[1]

  • Designers sculpting digital clay.
  • Museum visitors feeling objects they could not otherwise touch.
  • Doctors training for simple procedures without risk to patients.

Boeing used voxel-based 6-DOF rendering to check maintenance and assembly tasks on digital aircraft designs.[8][9] Related methods support virtual reality and teleoperation of remote robots.

Several problems remain open:[1]

  • Deformable objects, which bring large deformations, self-collision (parts of an object colliding with one another), large and changing contact areas, and changes caused by cutting and joining.
  • Contact with many points, both hands, or several users at once.
  • Adding tactile display of pressure patterns and vibration to force feedback.
  • Making touch consistent with sight and sound, so that an object feels the way it looks.

References

  1. Haptic Rendering: Introductory Concepts, K. Salisbury, F. Conti and F. Barbagli, IEEE Computer Graphics and Applications, 2004.
  2. The Haptic Display of Complex Graphical Environments, D. C. Ruspini, K. Kolarov and O. Khatib, ACM SIGGRAPH, 1997.
  3. Factors Affecting the Z-Width of a Haptic Display, J. E. Colgate and J. M. Brown, IEEE International Conference on Robotics and Automation, 1994.
  4. Haptic Interaction in Virtual Environments, D. C. Ruspini, K. Kolarov and O. Khatib, IEEE/RSJ International Conference on Intelligent Robots and Systems, 1997.
  5. Haptic Rendering: Programming Touch Interaction with Virtual Objects, K. Salisbury, D. Brock, T. Massie, N. Swarup and C. Zilles, ACM Symposium on Interactive 3D Graphics, 1995.
  6. A Constraint-Based God-Object Method for Haptic Display, C. B. Zilles and J. K. Salisbury, IEEE/RSJ International Conference on Intelligent Robots and Systems, 1995.
  7. Friction Models and Friction Compensation, H. Olsson, K. J. Åström and colleagues, European Journal of Control, 1998.
  8. Six Degree-of-Freedom Haptic Rendering Using Voxel Sampling, W. A. McNeely, K. D. Puterbaugh and J. J. Troy, ACM SIGGRAPH, 1999.
  9. Voxel-Based 6-DOF Haptic Rendering Improvements, W. A. McNeely, K. D. Puterbaugh and J. J. Troy, Haptics-e, 2006.
  10. Experimental Studies on Improving Safety in Haptic and Teleoperation Systems, J. Ware, Y. Ye, Y.-J. Pan and Y. P. Gupta, American Control Conference, 2009.
  11. Stability Boundary for Haptic Rendering: Influence of Physical Damping, T. Hulin, C. Preusche and G. Hirzinger, IEEE/RSJ International Conference on Intelligent Robots and Systems, 2006.
  12. Measuring and Increasing Z-Width with Active Electrical Damping, D. W. Weir, J. E. Colgate and M. A. Peshkin, IEEE Haptics Symposium, 2008.
  13. Time-Domain Passivity Control of Haptic Interfaces, B. Hannaford and J.-H. Ryu, IEEE Transactions on Robotics and Automation, 2002.
  14. Time-Domain Passivity Control of Haptic Interfaces with Tunable Damping Hardware, A. H. C. Gosline and V. Hayward, World Haptics Conference, 2007.

Figure