haptics – dont lose touch with virtual reality petr kmoch computer graphics group mff uk kmoch/...

33
Haptics – Don’t Lose Touch with Virtual Reality Petr Kmoch Computer Graphics Group MFF UK http://cgg.ms.mff.cuni.cz/~kmoch/

Upload: alejandra-rawls

Post on 30-Mar-2015

219 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: Haptics – Dont Lose Touch with Virtual Reality Petr Kmoch Computer Graphics Group MFF UK kmoch/ kmoch

Haptics – Don’t Lose Touch with Virtual Reality

Petr KmochComputer Graphics Group

MFF UKhttp://cgg.ms.mff.cuni.cz/~kmoch/

Page 2: Haptics – Dont Lose Touch with Virtual Reality Petr Kmoch Computer Graphics Group MFF UK kmoch/ kmoch

What is “Haptics”?

Touch-based computer interface involving force

Haptic ≠ tactile Force pressure

Broad sense: force feedback controllers Steering wheels, Nintendo Rumble Pak, Nintendo Wii, Sony

DUALSHOCK, …

Narrow sense: force I/O devices PHANTOM, omega, CyberGrasp, Freedom, …

2Petr Kmoch, Computer Graphics Group, MFF UK

Page 3: Haptics – Dont Lose Touch with Virtual Reality Petr Kmoch Computer Graphics Group MFF UK kmoch/ kmoch

Presentation

User’s view Practical notes, overview No claim of completeness

Outline Introduction to haptics Device overview chai3d Live demo

3Petr Kmoch, Computer Graphics Group, MFF UK

Page 4: Haptics – Dont Lose Touch with Virtual Reality Petr Kmoch Computer Graphics Group MFF UK kmoch/ kmoch

Presentation

User’s view Practical notes, overview No claim of completeness

Outline Introduction to haptics Device overview chai3d Live demo

4Petr Kmoch, Computer Graphics Group, MFF UK

Page 5: Haptics – Dont Lose Touch with Virtual Reality Petr Kmoch Computer Graphics Group MFF UK kmoch/ kmoch

Introduction to Haptics

Another scene modality

Haptics = force-based Sensing and applying forces (I/O) 3D shape

Tactile = pressure-based (Fine) texture

5Petr Kmoch, Computer Graphics Group, MFF UK

Sight Hearing Touch

Page 6: Haptics – Dont Lose Touch with Virtual Reality Petr Kmoch Computer Graphics Group MFF UK kmoch/ kmoch

Why Bother?

Realistic haptic rendering 3D perception Material differentiation

Non-realistic haptic rendering Helps visualization Potential fields, flow, …

Professional training Visually impaired users

Petr Kmoch, Computer Graphics Group, MFF UK 6

MPB F7S deviceImages © MPB Technologies Inc.

Page 7: Haptics – Dont Lose Touch with Virtual Reality Petr Kmoch Computer Graphics Group MFF UK kmoch/ kmoch

Technical Issues

Rendering frequency Visual: 25-30Hz Haptic:

Device costs Typically n€10,000

Device APIs Manufacturer-specific Some multi-device alternatives

Petr Kmoch, Computer Graphics Group, MFF UK 7

1kHz

Page 8: Haptics – Dont Lose Touch with Virtual Reality Petr Kmoch Computer Graphics Group MFF UK kmoch/ kmoch

Haptic Rendering (what)

High level Surface properties

Friction (static, dynamic) Stiffness

Force fields Function of device position

Low level Forces, torques

Petr Kmoch, Computer Graphics Group, MFF UK 8

Page 9: Haptics – Dont Lose Touch with Virtual Reality Petr Kmoch Computer Graphics Group MFF UK kmoch/ kmoch

Haptic Proxy

Common force computing mechanism Proxy object in scene

Device (probe): copies physical position Proxy: blocked by virtual scene

Collisions tested for proxy Force applied towards proxy

Typically spring-like Depends on surface properties

Petr Kmoch, Computer Graphics Group, MFF UK 9

Page 10: Haptics – Dont Lose Touch with Virtual Reality Petr Kmoch Computer Graphics Group MFF UK kmoch/ kmoch

Haptic Rendering (how)

Haptic thread Push approach Custom thread running at 1kHz

Reading position Writing forces & torques

Callbacks Pull approach Haptic thread is in driver (or device)

Petr Kmoch, Computer Graphics Group, MFF UK 10

Page 11: Haptics – Dont Lose Touch with Virtual Reality Petr Kmoch Computer Graphics Group MFF UK kmoch/ kmoch

Presentation

User’s view Practical notes, overview No claim of completeness

Outline Introduction to haptics Device overview chai3d Live demo

11Petr Kmoch, Computer Graphics Group, MFF UK

Page 12: Haptics – Dont Lose Touch with Virtual Reality Petr Kmoch Computer Graphics Group MFF UK kmoch/ kmoch

Device Classification

Input degrees of freedom 3DOF: position 6DOF: position & rotation 7DOF: 6DOF + extra (grip, scissors, …)

Output degrees of freedom 3DOF: forces 6DOF: forces & torques

Petr Kmoch, Computer Graphics Group, MFF UK 12

Page 13: Haptics – Dont Lose Touch with Virtual Reality Petr Kmoch Computer Graphics Group MFF UK kmoch/ kmoch

Technical Parameters

Workspace dimensions Angular range Force range Sensitivity Force compensation

Petr Kmoch, Computer Graphics Group, MFF UK 13

Page 14: Haptics – Dont Lose Touch with Virtual Reality Petr Kmoch Computer Graphics Group MFF UK kmoch/ kmoch

3-DOF Devices

Petr Kmoch, Computer Graphics Group, MFF UK 14

omega.3 Cubic3 PHANTOM Premium Falcon

Force Dimension MPB SensAble Novint

Page 15: Haptics – Dont Lose Touch with Virtual Reality Petr Kmoch Computer Graphics Group MFF UK kmoch/ kmoch

6/3-DOF Devices

Petr Kmoch, Computer Graphics Group, MFF UK 15

omega.6 PHANTOM Omni PHANTOM Premium Virtuose 3D15-25

Force Dimension SensAble SensAble Haption

Page 16: Haptics – Dont Lose Touch with Virtual Reality Petr Kmoch Computer Graphics Group MFF UK kmoch/ kmoch

6-DOF Devices

Petr Kmoch, Computer Graphics Group, MFF UK 16

delta.6 Freedom S6 PHANTOM Premium 6DOF

Virtuose 6D35-45

Force Dimension MPB SensAble Haption

Page 17: Haptics – Dont Lose Touch with Virtual Reality Petr Kmoch Computer Graphics Group MFF UK kmoch/ kmoch

Special Devices

Petr Kmoch, Computer Graphics Group, MFF UK 17

omega.7 Freedom 7S CyberGrasp Falcon

Force Dimension MPB Immersion Novint

Grasping Medical Glove add-on Cheap :-)

Page 18: Haptics – Dont Lose Touch with Virtual Reality Petr Kmoch Computer Graphics Group MFF UK kmoch/ kmoch

Presentation

User’s view Practical notes, overview No claim of completeness

Outline Introduction to haptics Device overview chai3d Live demo

18Petr Kmoch, Computer Graphics Group, MFF UK

Page 19: Haptics – Dont Lose Touch with Virtual Reality Petr Kmoch Computer Graphics Group MFF UK kmoch/ kmoch

chai3d

Open-source library (GPL) C++, OpenGL Windows, beta Linux Multi-device

PHANTOM, delta/omega, Freedom, Falcon Virtual device

Scene graph

Petr Kmoch, Computer Graphics Group, MFF UK 19

Page 20: Haptics – Dont Lose Touch with Virtual Reality Petr Kmoch Computer Graphics Group MFF UK kmoch/ kmoch

Feature Overview Graphic display

Viewport Scene graph

Mesh, camera, material, light, tool, shader, … Collision detection

AABBs, spheres Force algorithms

Point contact, potential field Devices

Single-device, virtual device, meta-device Utilities

Loaders, algebra, text labels, timers, arrows, …

Petr Kmoch, Computer Graphics Group, MFF UK 20

Page 21: Haptics – Dont Lose Touch with Virtual Reality Petr Kmoch Computer Graphics Group MFF UK kmoch/ kmoch

Setup

Create scene graph (world) Lights, meshes, potential fields Camera, tool

Create collision detectors Initialize haptic device

Setup force algorithms Run

Petr Kmoch, Computer Graphics Group, MFF UK 21

Page 22: Haptics – Dont Lose Touch with Virtual Reality Petr Kmoch Computer Graphics Group MFF UK kmoch/ kmoch

Scene Graph

All nodes derived from cGenericObject Transformation matrix Global/local coordinates Collision detector

Visualization options Bounding box Coordinate frame Scene graph tree

Petr Kmoch, Computer Graphics Group, MFF UK 22

Page 23: Haptics – Dont Lose Touch with Virtual Reality Petr Kmoch Computer Graphics Group MFF UK kmoch/ kmoch

Mesh Node

cMesh (sub)class Colors, textures Material

Graphics (A/D/S color, shininess, transparency) Haptics (stiffness, friction)

Visualization options Normals Wireframe

Petr Kmoch, Computer Graphics Group, MFF UK 23

Page 24: Haptics – Dont Lose Touch with Virtual Reality Petr Kmoch Computer Graphics Group MFF UK kmoch/ kmoch

Potential Field Node

cGenericPotentialField subclass Force based on probe position No common properties

Two sample classes provided Sphere Torus Properties set via material

Petr Kmoch, Computer Graphics Group, MFF UK 24

Page 25: Haptics – Dont Lose Touch with Virtual Reality Petr Kmoch Computer Graphics Group MFF UK kmoch/ kmoch

Haptic Tool Node

cGenericTool,cGeneric3dofPointer Workspace size, proxy Device position and velocity Force algorithms Device access (cGenericDevice) Stores computed forces

Visualization options Proxy, device

Petr Kmoch, Computer Graphics Group, MFF UK 25

Page 26: Haptics – Dont Lose Touch with Virtual Reality Petr Kmoch Computer Graphics Group MFF UK kmoch/ kmoch

Force Algorithms

cGenericPointForceAlgo subclasses cProxyPointForceAlgo

Renders meshes Spherical proxy Manages contact state Moving object support

cPotentialFieldForceAlgo Renders potential fields

Petr Kmoch, Computer Graphics Group, MFF UK 26

Page 27: Haptics – Dont Lose Touch with Virtual Reality Petr Kmoch Computer Graphics Group MFF UK kmoch/ kmoch

Other Nodes

cGenericShader Shader applies to node’s descendants

cBitmap Uses glDrawPixels

cCamera Projection, 2D foreground

cLight OpenGL light properties

Petr Kmoch, Computer Graphics Group, MFF UK 27

Page 28: Haptics – Dont Lose Touch with Virtual Reality Petr Kmoch Computer Graphics Group MFF UK kmoch/ kmoch

Haptic Rendering

Haptic thread Continuous or timer-based Haptic call sequence:

tool->updatePose() tool->computeForces() tool->applyForces()

Callbacks If device supports them (now just PHANTOM)

Petr Kmoch, Computer Graphics Group, MFF UK 28

Page 29: Haptics – Dont Lose Touch with Virtual Reality Petr Kmoch Computer Graphics Group MFF UK kmoch/ kmoch

Virtual Device

Software “device” Stand-alone .exe 3DOF Mouse-controlled

Last resort for meta-device Can start automatically

In theory

Petr Kmoch, Computer Graphics Group, MFF UK 29

Page 30: Haptics – Dont Lose Touch with Virtual Reality Petr Kmoch Computer Graphics Group MFF UK kmoch/ kmoch

chai3d Summary

High-level scene graph Also access to low-level force computing

Multiple devices Force Dimension, MPB, Novint, SensAble Run-time automatic selection possible

Virtual device Extensible – virtual method mechanism Implementation a bit messy

Petr Kmoch, Computer Graphics Group, MFF UK 30

Page 31: Haptics – Dont Lose Touch with Virtual Reality Petr Kmoch Computer Graphics Group MFF UK kmoch/ kmoch

Alternatives

Device manufacturers’ SDKs Device dependent, optimized, closed-source Level varies

H3D Open-source, high-level

HAPI Open-source, low-level Used in H3D

Petr Kmoch, Computer Graphics Group, MFF UK 31

Page 32: Haptics – Dont Lose Touch with Virtual Reality Petr Kmoch Computer Graphics Group MFF UK kmoch/ kmoch

Haptics Summary

Another scene modality Touch

Haptic ≠ tactile Force based

Expensive devices Falcon an exception

chai3d, H3D multi-device APIs Rendering frequency 1kHz

Petr Kmoch, Computer Graphics Group, MFF UK 32

Page 33: Haptics – Dont Lose Touch with Virtual Reality Petr Kmoch Computer Graphics Group MFF UK kmoch/ kmoch

Presentation

User’s view Practical notes, overview No claim of completeness

Outline Introduction to haptics Device overview chai3d Live demo

33Petr Kmoch, Computer Graphics Group, MFF UK