non-penetration modeling error in physical simulation time...

24
Outline Introduction Error in non-penetration modeling New method to determine active set Conclusion Non-penetration modeling error in physical simulation time-steppers A more accurate and robust method Binh Nguyen, Jeff Trinkle Computer Science Department,RPI May 29, 2008 Binh Nguyen, Jeff Trinkle Non-penetration modeling error in physical simulation time-step

Upload: others

Post on 27-Sep-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Non-penetration modeling error in physical simulation time ...robotics.cs.brown.edu/events/nems2008/slides/Nguyen_nems08.pdf · Outline Introduction Error in non-penetration modeling

OutlineIntroduction

Error in non-penetration modelingNew method to determine active set

Conclusion

Non-penetration modeling error in physicalsimulation time-steppers

A more accurate and robust method

Binh Nguyen, Jeff Trinkle

Computer Science Department,RPI

May 29, 2008

Binh Nguyen, Jeff Trinkle Non-penetration modeling error in physical simulation time-steppers

Page 2: Non-penetration modeling error in physical simulation time ...robotics.cs.brown.edu/events/nems2008/slides/Nguyen_nems08.pdf · Outline Introduction Error in non-penetration modeling

OutlineIntroduction

Error in non-penetration modelingNew method to determine active set

Conclusion

IntroductionReview of physical simulationReview of current physical simulation methods

Error in non-penetration modelingCase studyActive set in physical simulation

New method to determine active setConstraints activation in physical simulationThe algorithm

Conclusion

Binh Nguyen, Jeff Trinkle Non-penetration modeling error in physical simulation time-steppers

Page 3: Non-penetration modeling error in physical simulation time ...robotics.cs.brown.edu/events/nems2008/slides/Nguyen_nems08.pdf · Outline Introduction Error in non-penetration modeling

OutlineIntroduction

Error in non-penetration modelingNew method to determine active set

Conclusion

Review of physical simulationReview of current physical simulation methods

Building block of physical simulation

Common physical simulations follow the same set of rules(models)

I force = mass × acceleration.

I Non-penetration and rigid bodylaws

I Friction law

Binh Nguyen, Jeff Trinkle Non-penetration modeling error in physical simulation time-steppers

Page 4: Non-penetration modeling error in physical simulation time ...robotics.cs.brown.edu/events/nems2008/slides/Nguyen_nems08.pdf · Outline Introduction Error in non-penetration modeling

OutlineIntroduction

Error in non-penetration modelingNew method to determine active set

Conclusion

Review of physical simulationReview of current physical simulation methods

Current physical simulation methods

There are many physical simulation libraries available

I Havok (Intel), Ageia (NVIDIA), ODE (open source), Bullet(open source),CHRONO (free for noncommercial), TrueAxis(free for noncommercial),...

I Most of them are created for games, virtual reality.

I Many robotics researchers are using them and having greatdifficulty to get satisfactory accuracy.

I Simulation quality depends heavily on collision detection.

Binh Nguyen, Jeff Trinkle Non-penetration modeling error in physical simulation time-steppers

Page 5: Non-penetration modeling error in physical simulation time ...robotics.cs.brown.edu/events/nems2008/slides/Nguyen_nems08.pdf · Outline Introduction Error in non-penetration modeling

OutlineIntroduction

Error in non-penetration modelingNew method to determine active set

Conclusion

Review of physical simulationReview of current physical simulation methods

Current physical simulation methods

There are many physical simulation libraries available

I Havok (Intel), Ageia (NVIDIA), ODE (open source), Bullet(open source),CHRONO (free for noncommercial), TrueAxis(free for noncommercial),...

I Most of them are created for games, virtual reality.

I Many robotics researchers are using them and having greatdifficulty to get satisfactory accuracy.

I Simulation quality depends heavily on collision detection.

Binh Nguyen, Jeff Trinkle Non-penetration modeling error in physical simulation time-steppers

Page 6: Non-penetration modeling error in physical simulation time ...robotics.cs.brown.edu/events/nems2008/slides/Nguyen_nems08.pdf · Outline Introduction Error in non-penetration modeling

OutlineIntroduction

Error in non-penetration modelingNew method to determine active set

Conclusion

Review of physical simulationReview of current physical simulation methods

Current physical simulation methods

There are many physical simulation libraries available

I Havok (Intel), Ageia (NVIDIA), ODE (open source), Bullet(open source),CHRONO (free for noncommercial), TrueAxis(free for noncommercial),...

I Most of them are created for games, virtual reality.

I Many robotics researchers are using them and having greatdifficulty to get satisfactory accuracy.

I Simulation quality depends heavily on collision detection.

Binh Nguyen, Jeff Trinkle Non-penetration modeling error in physical simulation time-steppers

Page 7: Non-penetration modeling error in physical simulation time ...robotics.cs.brown.edu/events/nems2008/slides/Nguyen_nems08.pdf · Outline Introduction Error in non-penetration modeling

OutlineIntroduction

Error in non-penetration modelingNew method to determine active set

Conclusion

Review of physical simulationReview of current physical simulation methods

Current physical simulation methods

There are many physical simulation libraries available

I Havok (Intel), Ageia (NVIDIA), ODE (open source), Bullet(open source),CHRONO (free for noncommercial), TrueAxis(free for noncommercial),...

I Most of them are created for games, virtual reality.

I Many robotics researchers are using them and having greatdifficulty to get satisfactory accuracy.

I Simulation quality depends heavily on collision detection.

Binh Nguyen, Jeff Trinkle Non-penetration modeling error in physical simulation time-steppers

Page 8: Non-penetration modeling error in physical simulation time ...robotics.cs.brown.edu/events/nems2008/slides/Nguyen_nems08.pdf · Outline Introduction Error in non-penetration modeling

OutlineIntroduction

Error in non-penetration modelingNew method to determine active set

Conclusion

Review of physical simulationReview of current physical simulation methods

Normal simulation steps

Constraint in 2D consists of a pair of edge and vertex.In step two, we model the system as Linear ComplimentarilyProblem.

Binh Nguyen, Jeff Trinkle Non-penetration modeling error in physical simulation time-steppers

Page 9: Non-penetration modeling error in physical simulation time ...robotics.cs.brown.edu/events/nems2008/slides/Nguyen_nems08.pdf · Outline Introduction Error in non-penetration modeling

OutlineIntroduction

Error in non-penetration modelingNew method to determine active set

Conclusion

Review of physical simulationReview of current physical simulation methods

Non-penetration constraint

There are two main types of method to model non-penetrationconstraint:

I Type 1: Correcting penetration (most current physics engines)

I Type 2: Preventing penetration (dvc2D, a 2D physics enginedeveloped by RPI and UPenn)

Binh Nguyen, Jeff Trinkle Non-penetration modeling error in physical simulation time-steppers

Page 10: Non-penetration modeling error in physical simulation time ...robotics.cs.brown.edu/events/nems2008/slides/Nguyen_nems08.pdf · Outline Introduction Error in non-penetration modeling

OutlineIntroduction

Error in non-penetration modelingNew method to determine active set

Conclusion

Review of physical simulationReview of current physical simulation methods

Non-penetration constraint

There are two main types of method to model non-penetrationconstraint:

I Type 1: Correcting penetration (most current physics engines)

I Type 2: Preventing penetration (dvc2D, a 2D physics enginedeveloped by RPI and UPenn)

Binh Nguyen, Jeff Trinkle Non-penetration modeling error in physical simulation time-steppers

Page 11: Non-penetration modeling error in physical simulation time ...robotics.cs.brown.edu/events/nems2008/slides/Nguyen_nems08.pdf · Outline Introduction Error in non-penetration modeling

OutlineIntroduction

Error in non-penetration modelingNew method to determine active set

Conclusion

Case studyActive set in physical simulation

A case study: Disk - Line

Binh Nguyen, Jeff Trinkle Non-penetration modeling error in physical simulation time-steppers

Page 12: Non-penetration modeling error in physical simulation time ...robotics.cs.brown.edu/events/nems2008/slides/Nguyen_nems08.pdf · Outline Introduction Error in non-penetration modeling

OutlineIntroduction

Error in non-penetration modelingNew method to determine active set

Conclusion

Case studyActive set in physical simulation

Disk - Line

Binh Nguyen, Jeff Trinkle Non-penetration modeling error in physical simulation time-steppers

Page 13: Non-penetration modeling error in physical simulation time ...robotics.cs.brown.edu/events/nems2008/slides/Nguyen_nems08.pdf · Outline Introduction Error in non-penetration modeling

OutlineIntroduction

Error in non-penetration modelingNew method to determine active set

Conclusion

Case studyActive set in physical simulation

Disk - Line

Binh Nguyen, Jeff Trinkle Non-penetration modeling error in physical simulation time-steppers

Page 14: Non-penetration modeling error in physical simulation time ...robotics.cs.brown.edu/events/nems2008/slides/Nguyen_nems08.pdf · Outline Introduction Error in non-penetration modeling

OutlineIntroduction

Error in non-penetration modelingNew method to determine active set

Conclusion

Case studyActive set in physical simulation

Disk - Line

Binh Nguyen, Jeff Trinkle Non-penetration modeling error in physical simulation time-steppers

Page 15: Non-penetration modeling error in physical simulation time ...robotics.cs.brown.edu/events/nems2008/slides/Nguyen_nems08.pdf · Outline Introduction Error in non-penetration modeling

OutlineIntroduction

Error in non-penetration modelingNew method to determine active set

Conclusion

Case studyActive set in physical simulation

Disk - Line

ql

l

ql+1 2

ql+11

v n p

(p,n)

Error of method type 1

Binh Nguyen, Jeff Trinkle Non-penetration modeling error in physical simulation time-steppers

Page 16: Non-penetration modeling error in physical simulation time ...robotics.cs.brown.edu/events/nems2008/slides/Nguyen_nems08.pdf · Outline Introduction Error in non-penetration modeling

OutlineIntroduction

Error in non-penetration modelingNew method to determine active set

Conclusion

Case studyActive set in physical simulation

Constraints activation scheme

I Type 1 : Only activate when there is penetration. So theactive set A reported from collision detection in this methodat time l is empty and at time l + 1 is {(circle, plane)}.

I Type 2 : Only activate if there could be a penetration in thenext time step. So the active set A reported from collisiondetection in this method is {(circle, plane)} at both time land l + 1. A simple (and actual used in practice) heuristic todecide whether to activate a constraint is if their distance isless than a threshold ε then activate.

Lesson learnt

I Methods of type one always have a error proportion to relativevelocity and time step even in this simplest example.

I Methods of type two give expected result.Binh Nguyen, Jeff Trinkle Non-penetration modeling error in physical simulation time-steppers

Page 17: Non-penetration modeling error in physical simulation time ...robotics.cs.brown.edu/events/nems2008/slides/Nguyen_nems08.pdf · Outline Introduction Error in non-penetration modeling

OutlineIntroduction

Error in non-penetration modelingNew method to determine active set

Conclusion

Constraints activation in physical simulationThe algorithm

Disk - Two lines

Binh Nguyen, Jeff Trinkle Non-penetration modeling error in physical simulation time-steppers

Page 18: Non-penetration modeling error in physical simulation time ...robotics.cs.brown.edu/events/nems2008/slides/Nguyen_nems08.pdf · Outline Introduction Error in non-penetration modeling

OutlineIntroduction

Error in non-penetration modelingNew method to determine active set

Conclusion

Constraints activation in physical simulationThe algorithm

Disk - Two lines

Binh Nguyen, Jeff Trinkle Non-penetration modeling error in physical simulation time-steppers

Page 19: Non-penetration modeling error in physical simulation time ...robotics.cs.brown.edu/events/nems2008/slides/Nguyen_nems08.pdf · Outline Introduction Error in non-penetration modeling

OutlineIntroduction

Error in non-penetration modelingNew method to determine active set

Conclusion

Constraints activation in physical simulationThe algorithm

Disk - Two lines

Binh Nguyen, Jeff Trinkle Non-penetration modeling error in physical simulation time-steppers

Page 20: Non-penetration modeling error in physical simulation time ...robotics.cs.brown.edu/events/nems2008/slides/Nguyen_nems08.pdf · Outline Introduction Error in non-penetration modeling

OutlineIntroduction

Error in non-penetration modelingNew method to determine active set

Conclusion

Constraints activation in physical simulationThe algorithm

The algorithm

DefinitionA group of constraint corresponding to a pair of objects containsall possible constraints between them to make sure that there is nopenetration.

23

4

5

6

7

Depend on thesituation, we canchoose the group ofconstraintdifferently.

Binh Nguyen, Jeff Trinkle Non-penetration modeling error in physical simulation time-steppers

Page 21: Non-penetration modeling error in physical simulation time ...robotics.cs.brown.edu/events/nems2008/slides/Nguyen_nems08.pdf · Outline Introduction Error in non-penetration modeling

OutlineIntroduction

Error in non-penetration modelingNew method to determine active set

Conclusion

Constraints activation in physical simulationThe algorithm

The algorithm

I Step 1 (Exploratory step) : Formulate a complete system withall possible constraints. Solve for it and determine whichconstraint is actually active in a group. (Active constraint isthe one with distance value equals zero)

I Step 2 : If there is no active constraint then go to step 4.

I Step 3 : Now reformulate with the correct active constraintdetermined in step 1 then solve for it.

I Step 4 : Update then go to step 1.

Binh Nguyen, Jeff Trinkle Non-penetration modeling error in physical simulation time-steppers

Page 22: Non-penetration modeling error in physical simulation time ...robotics.cs.brown.edu/events/nems2008/slides/Nguyen_nems08.pdf · Outline Introduction Error in non-penetration modeling

OutlineIntroduction

Error in non-penetration modelingNew method to determine active set

Conclusion

Conclusion

I The three types of methods to model non-penetrationconstraints have different errors and activation schemes.

I The new method is more flexible and robust.

I It can also remove the need for a sophisticated collisiondetection (with the price of having to solve larger LCPsystem).

Binh Nguyen, Jeff Trinkle Non-penetration modeling error in physical simulation time-steppers

Page 23: Non-penetration modeling error in physical simulation time ...robotics.cs.brown.edu/events/nems2008/slides/Nguyen_nems08.pdf · Outline Introduction Error in non-penetration modeling

OutlineIntroduction

Error in non-penetration modelingNew method to determine active set

Conclusion

Conclusion

I The three types of methods to model non-penetrationconstraints have different errors and activation schemes.

I The new method is more flexible and robust.

I It can also remove the need for a sophisticated collisiondetection (with the price of having to solve larger LCPsystem).

Binh Nguyen, Jeff Trinkle Non-penetration modeling error in physical simulation time-steppers

Page 24: Non-penetration modeling error in physical simulation time ...robotics.cs.brown.edu/events/nems2008/slides/Nguyen_nems08.pdf · Outline Introduction Error in non-penetration modeling

OutlineIntroduction

Error in non-penetration modelingNew method to determine active set

Conclusion

Conclusion

I The three types of methods to model non-penetrationconstraints have different errors and activation schemes.

I The new method is more flexible and robust.

I It can also remove the need for a sophisticated collisiondetection (with the price of having to solve larger LCPsystem).

Binh Nguyen, Jeff Trinkle Non-penetration modeling error in physical simulation time-steppers