Open srediske opened 1 year ago
"Model gets teleported to the origin" is the high level behaviour that correspond to the fact that at some points a NaN emerged in simulation, probably as a result of a numerically unstable simulation. Probably it would be easier to debug if you log the actual model state.
Environment
Description
We observed a strange behavior in the simulation: The model is sometimes teleported to the origin with all its links and cannot be used afterwards, so it has to be deleted from the sim. It only occurs with the world solver (ODE WorldStep)
This Video shows the problem:
https://user-images.githubusercontent.com/25820310/226826259-c7e81622-a1b7-466f-8d44-61cfd03907a9.mp4
What stands out here is the long-lasting jumping of the contact points. In this model, a nested model is placed with the
<include>
tag, which sits loosely without a joint. If the nested model is deactivated, it looks like this:https://user-images.githubusercontent.com/25820310/226826280-0cfa5df1-9490-4dc4-9f36-11eb099f7ce3.mp4
It's stable just after spawn. But the problem still exists, sooner or later the model will teleport (broken) to origin, at least after interaction with the model. We also tested some models from the official gazebo repo, e.g. the coke can:
https://user-images.githubusercontent.com/25820310/226826433-f4ecbce0-3458-4f7a-a28c-96dd5879d920.mp4
And what is going on with the contacts after another model is spawned? The contacts from the coke cans look stable and the terminal doesn't spam any annoying ODE errors (
ODE Message 3: LCP internal error, s <= 0 (s=...)
), but when i spawn another model they suddenly jump around. Also, note that the coke can had jumping contacts right before it teleported to the origin:https://user-images.githubusercontent.com/25820310/226826387-077be96b-10ec-4b5d-b3cf-eba5522db602.mp4
Problems with the same symptom but probably different cause:
Steps to reproduce
Start world file: