Haptic rendering Part 1 4/CY/B3 Part 1. Collision detection and response Nic Melder Part 2. Manipulation and polygon transitions (T.B.A.)

Slides:



Advertisements
Similar presentations
2.5. B ASIC P RIMITIVE I NTERSECTION Details of common forms of primitive intersection test.
Advertisements

COMP 175 | COMPUTER GRAPHICS Remco Chang1/6103b – Shapes Lecture 03b: Shapes COMP 175: Computer Graphics February 3, 2015.
Intersection Testing Chapter 13 Tomas Akenine-Möller Department of Computer Engineering Chalmers University of Technology.
Collision Detection CSCE /60 What is Collision Detection?  Given two geometric objects, determine if they overlap.  Typically, at least one of.
Force Force is a push or pull on an object The object is called the System Force on a system in motion causes change in velocity = acceleration Force is.
Physics Montwood High School R. Casao
Computational Geometry & Collision detection
Week 14 - Monday.  What did we talk about last time?  Bounding volume/bounding volume intersections.
Advanced Computer Graphics Spring 2014 K. H. Ko School of Mechatronics Gwangju Institute of Science and Technology.
A Fast Algorithm for Incremental Distance Calculation Paper by Ming C. Ling and John F. Canny Presented by Denise Jones.
RSS 2011 Workshop on RGB-D Cameras
6 6.1 © 2012 Pearson Education, Inc. Orthogonality and Least Squares INNER PRODUCT, LENGTH, AND ORTHOGONALITY.
1 Geometry A line in 3D space is represented by  S is a point on the line, and V is the direction along which the line runs  Any point P on the line.
1cs533d-term Notes  list Even if you’re just auditing!
READING QUIZ The friction that exist between two contacting surfaces in the absence of lubrication is called _________. A) fluid friction B) normal friction.
1Notes. 2 Time integration for particles  Back to the ODE problem, either  Accuracy, stability, and ease-of- implementation are main issues  Obviously.
Providing Haptic ‘Hints’ to Automatic Motion Planners Providing Haptic ‘Hints’ to Automatic Motion Planners by Burchan Bayazit Department of Computer Science.
UNC Chapel Hill M. C. Lin Review Particle Dynamics (see transparencies in class)
Scalar and Vector Fields
From Chapter 23 – Coulomb’s Law
Computer graphics & visualization Collision Detection – Narrow Phase.
Kinetic energy Vector dot product (scalar product) Definition of work done by a force on an object Work-kinetic-energy theorem Lecture 10: Work and kinetic.
ELECTRICITY & MAGNETISM (Fall 2011) LECTURE # 4 BY MOEEN GHIYAS.
Motion & Force: Dynamics Physics 11. Galileo’s Inertia  Galileo attempted to explain inertia based upon rolling a ball down a ramp  Predict what would.
Classical Mechanics Describes the relationship between the motion of objects in our everyday world and the forces acting on them Conditions when Classical.
Cloth Simulation By Chris Szendrovits o based on Jim Adams “Soft Body Mesh” demo.
Computer Graphics: Programming, Problem Solving, and Visual Communication Steve Cunningham California State University Stanislaus and Grinnell College.
CS 450: Computer Graphics REVIEW: OVERVIEW OF POLYGONS
COMP 175: Computer Graphics March 24, 2015
Technology and Historical Overview. Introduction to 3d Computer Graphics  3D computer graphics is the science, study, and method of projecting a mathematical.
Introduction Tracking the corners Camera model and collision detection Keyframes Path Correction Controlling the entire path of a virtual camera In computer.
Collision handling: detection and response
ESS 303 – Biomechanics Linear Kinetics. Kinetics The study of the forces that act on or influence movement Force = Mass * Acceleration: F = M * a Force.
Engineering Mechanics: Statics
CS 325 Introduction to Computer Graphics 04 / 26 / 2010 Instructor: Michael Eckmann.
Surface Area of Pyramids and Cones SWBAT: Define Pyramid, Vertex of a pyramid, slant height, Regular Pyramid, Cone, and Right cone. Find the area.
3.4. C ONTACT G ENERATION Generating contacts between rigid bodies.
Energy Transformations and Conservation of Mechanical Energy 8
PRESENTED BY – GAURANGI TILAK SHASHANK AGARWAL Collision Detection.
Gauss’s Law Chapter 21 Summary Sheet 2. EXERCISE: Draw electric field vectors due to the point charge shown, at A, B and C +.. B. A C Now draw field lines.
Haptic Rendering Part 2 4/CY/B3 Part 1. Collision detection and response Nic Melder Part 2. Manipulation and polygon transitions Nic Melder.
CHAPTER 24 : GAUSS’S LAW 24.1) ELECTRIC FLUX
1© Manhattan Press (H.K.) Ltd. 1.7 Stability 2 © Manhattan Press (H.K.) Ltd. Stability 1.7 Stability (SB p. 75) What makes objects more stable than others?
Energy Transformations and Conservation of Mechanical Energy 8.01 W05D2.
Force and Motion This week – This week – Force and Motion – Chapter 4 Force and Motion – Chapter 4.
1 Haptic Systems Mohsen Mahvash Lecture 3 11/1/06.
Model: Sliding Wedge. Introduction This is a NAFEMS benchmark model which treats the behavior of a contactor wedge forced to slide over a stiff target.
The Laws of Motion. Classical Mechanics Describes the relationship between the motion of objects in our everyday world and the forces acting on them Describes.
Exam 2 Review 8.02 W08D1. Announcements Test Two Next Week Thursday Oct 27 7:30-9:30 Section Room Assignments on Announcements Page Test Two Topics: Circular.
M. Zareinejad.  Use haptic device to physically interact with the VE – optical encoders measure position of end effector – actuators apply forces.
Chapter 4 The Laws of Motion. Classical Mechanics Describes the relationship between the motion of objects in our everyday world and the forces acting.
Computer Game Design and Development
M. Zareinejad.  What ’ s Virtual Proxy? ◦ A substitute for the probe in the VE ◦ An extension of the ‘ God-Object ’ ◦ A finite sized massless sphere.
Chapters 5, 6 Force and Laws of Motion. Newtonian mechanics Describes motion and interaction of objects Applicable for speeds much slower than the speed.
REVISION NEWTON’S LAW. Quantity with magnitude and direction. e.g. displacement, velocity, acceleration, force and weight.. VECTOR Quantity having only.
Module 1.1 – Displacement and Velocity Vectors
Friction. Definition of Friction Friction is a force that opposes the direction of motion of an object.
A Fast Algorithm for Incremental Distance Calculation Ming C. Lin and John F. Canny University of California, Berkeley 1991 Original slides by Adit Koolwal.
A Fast Algorithm for Incremental Distance Calculation Ming C. Lin & John Canny University of California, Berkeley 1991 Presentation by Adit Koolwal.
SIGGRAPH 2005 신 승 호 신 승 호. Water Drops on Surfaces Huamin Wang Peter J. Mucha Greg Turk Georgia Institute of Technology.
Computer Graphics Imaging Ying Zhu Georgia State University Lecture 29 Soft Bodies and Rigid Bodies.
Gauss’ Law Chapter 23. Electric field vectors and field lines pierce an imaginary, spherical Gaussian surface that encloses a particle with charge +Q.
1 Haptic Systems Mohsen Mahvash Lecture 6 17/1/06.
2.5. Basic Primitive Intersection
Chapter 7: Work; Energy of a System
Physics Warm-Up List 15 forces you have applied since you were last in Physics class. Circle the forces that caused an acceleration.
Computer Animation Algorithms and Techniques
Gauss’s Law Chapter 21 Summary Sheet 2.
Presentation transcript:

Haptic rendering Part 1 4/CY/B3 Part 1. Collision detection and response Nic Melder Part 2. Manipulation and polygon transitions (T.B.A.)

Haptic rendering ● Identical concepts to visual rendering ● Usually includes other modalities, in particular vision ● Stability criteria require fast update speeds typical Hz

Definitions ● PHIP = Physical haptic interface point ● HIP = haptic interface point ● SP = surface contact point ● GO = god-object (where the HIP should be)

Phases to haptic rendering ● Collision detection – Open source eg I-Collide OBBTree – Haptic specific (must be fast and efficient) – Only a polygon/point collision algorithm is required. ● Force estimation ● Collision response – Requires a model of what should happen, eg physics engine

Sphere Collision ● v is vector from Centre of sphere C to Haptic point P ● v=P-C ● If (v T v < r 2 ) then HIP is in the sphere ● Force response eg F= K (r-|v|)v/|v| v C r P HIP

Dot product Given two vectors u and v can work out a scalar dot product u.v = u 1 v 1 +u 2 v 2 +u 3 v 3 =|u||v|cos   u T v (if vectors expressed as a column matrix) If one vector is a unit vector, then dot product represents the projection of the second vector onto the first u v 

Collision by polygon transition ● d is (scalar) perpendicular distance to polygon from origin ● n is outward facing normal ● Distance from origin along perpendicular is p o.n and p n.n d n popo pnpn

Condition for collision of line with polygon ● Polygon plane penetrated if (n.p n -d) and (n.p o -d ) have different signs ● Calculate as (n.p n -d) (n.p o -d)<0 ● If this is true the ‘ray’ has passed through the plane of the polygon ● Must then check with three planes forming a ‘toblerone bar’ around this triangle to see if ray penetrates into the bar and hence the polygon

Force estimation ● Hookes lawF=Kq ● Visco elastic F=Kq+B dq/dt ● Fluid F= B dq/dt ● (effectively part of PID controller)

Simplistic collision response evaluate q as the perpendicular distance to nearest surface. Eg cube F=Kq Problem with push through of narrow objects q

Zilles and Salisbury god-object ● Maintains a history of contact ● God-object is connected to HIP by a virtual spring ● God object is – either coincident with HIP (freespace) – or on the surface of the object while HIP is in object

God-object algorithm ● Algorithm needs to track god-object on – A) surface of entry polygon – B) transition to edge or vertex of adjoining polygons – C) surface of additional polygons – D) transition into free space

Zilles and Salisbury algorithm If polygon is defined by Ax+By+Cz=D Surface normal to face 1 is For the closest point to a surface form For the closest point to an edge (two intersecting polygons) form

Zilles and Salisbury For the closest point to a vertex (three intersecting polygons) form Solution is Where x p is current phantom HIP position and x go is the position of the god-object on the polygon

Picking up an object ● In Zilles and Salisbury algorithm friction is then added in if needed. ● Friction is needed to form a stable grasp ● Good friction model needed to lift against gravity

Friction Background - Friction ● Classical Friction Model: – Typically has response as shown. – LeGru model includes model of micro-slip behaviour – Simpler models are Karnopp and Dahl. – Coulomb model assumes no viscous friction. Stribeck effect Coulomb friction Viscous friction Negative limit of static friction Positive limit of static friction Velocity Friction force

Friction cone algorithm (Melder and Harwin) ● Friction Cone Algorithm is active only when the haptic interaction point is inside an object. ● A cone is placed at the haptic interaction point oriented in the direction of the normal of the contacted surface. ● Intersection of this cone on the surface defines a friction circle. ● Define  tan  =

Friction Cone Algorithm God-Object inside Friction Cone - unchanged God-Object outside Friction Cone - moved to edge HIP tan -1  surface polygon Surface point (SP) god-object (GO)  Surface point (SP) god-object (GO) tan -1  n (surface normal) HIP move

Calculating friction ● Calculate depth of penetration d = (HIP - GO)  n. ● Hence, calculate. SP = HIP + dn. ● Circle (the intersection of the friction cone with the surface polygon) has radius R = d  (  is the friction coefficient for the surface). ● Compare distance between the surface point (SP) and the current god-object (GO) i.e. r =  GO – SP  to the radius of the friction circle. Update the god- object if outside circle. The response force can now be calculated based upon the vector from the HIP to the god-object and will be proportional to the surface stiffness.

Modeling dynamic (coulomb) and static friction State transition diagram – either slipping or not If slipping use coulomb  If GO within friction circle change state and use static  SLIP use  d NON- SLIP use  s  < tan -1  d  > tan -1  s  > tan -1  d

Residual Force Algorithm Direction vector from GO to HIP is proportional to force applied by haptic interface to object. Summing all force vectors on the object gives the residual force in the object (including gravity etc.) Residual force is input to a suitable movement algorithm.

End of haptic rendering part 1

Crossing polygon boundaries F FS E V FS = Free-space F = Face E = Edge V = Vertex

Polygon tracking in the friction cone alogorithm