(This is from a Drake Slack conversation.)
I'm playing with an "exploding IIWA" demo to prototype some workflows with MultibodyPlant
and SceneGraph
. Basically, I'm just adding a robot arm that has articulation (revolute joints between multiple links) and dropping the robot arm from a height. When it hits a certain point, I want to pause the simulation, remove all of the joints, and the resume the simulation.
Here is the code that I am working with (which needs some Drake PRs at present to work off of a binary build):
multibody_plant_subgraph_test.py
However, when I try all of the joints and simulate, I get the following assertion from Drake's TAMSI Solver:
File ".../common/test/multibody_plant_subgraph_test.py", line 345, in do_falling_exploding_sim
simulator_new.AdvanceTo(2.)
SystemExit: Failure at external/drake/multibody/plant/tamsi_solver.cc:217 in SolveQuadraticForTheSmallestPositiveRoot(): condition 'Delta > 0' failed.
Any ideas as to why this happens?
FTR This is what the simulation looks like if I just remove the collisions and futz with the velocities: