Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QUESTION] Shape Model Scaling and Physics Simulation Units #410

Open
AmineElhafsi opened this issue Dec 28, 2024 · 1 comment
Open

[QUESTION] Shape Model Scaling and Physics Simulation Units #410

AmineElhafsi opened this issue Dec 28, 2024 · 1 comment
Assignees
Labels
question The issue author requires information

Comments

@AmineElhafsi
Copy link

AmineElhafsi commented Dec 28, 2024

Hello,

I'm trying to use Warp in my pipeline to plan robot actions through physical interactions with a reconstruction of its environment. However, I'm finding that the size of some of my objects can be quite small, which I've observed can lead to instabilities in the simulation (e.g., small spheres will bounce off the ground plane at extremely high velocity at the start of the sim, meshes will rotate or bounce on the ground, etc.). Scaling up the model sizes has been the one solution to this that seemed to work for me. That said, I am trying to accurately simulate a real world scene and so this scaling will require me to adjust the units of other parameters in the simulation such as gravity, density, the material stiffnesses, and so on.

My first question is would doing so be sufficient for me to maintain coherence in the internal physics computations, or are there any subtle assumptions made internally regarding units? I understand that the simulation should be unit agnostic, however the default units appear to be kilograms, meters, seconds (given that the default gravity is -9.80665) so I'm wondering if there's anything I might miss in doing so.

For my second question, is there a global scale configuration parameter that I can set to automatically handle this for me? As far as I could tell there didn't seem to be, but I just wanted to check since this would make life a lot easier.

Thanksz1

@AmineElhafsi AmineElhafsi added the question The issue author requires information label Dec 28, 2024
@eric-heiden
Copy link
Contributor

Hi @AmineElhafsi,

The simulation is indeed unit agnostic, we added sensible defaults for gravity, density and other material properties in the ModelBuilder class to make it easier to get started. These defaults are based on kilograms, meters, seconds. You are free to modify these values to use your own units; a global scaling parameter is currently not implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question The issue author requires information
Projects
None yet
Development

No branches or pull requests

2 participants