-
Notifications
You must be signed in to change notification settings - Fork 27
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
Randomized inertia tensor does not satisfy the triangle inequality #218
Comments
I am working on implementing a version of this for my own use that I could create a pull request for after. I have two ideas on how to achieve this without adding bias.
Do either of these options sound like a good way to implement this randomization? |
I made a small google colab which also includes a randomization using the constraints of the triangle inequalities to avoid permutations. https://colab.research.google.com/drive/1BQRnzZ69jncUPdaVWVzR6ZIeWmAugGf3?usp=sharing However,I am not convinced this avoids biasing the output to the clipped values... There might be a much more intelligent way to do this. |
Hello @HorvathDawson, great to see that someone is looking into this. I implemented a simple randomization of inertial properties within the context of
Therefore, I thought I would share the code. It's an old and messy Python script, but there might be something useful (or not). Here, all links of models are assumed to have a mesh geometry (one or more And then also some other stuff within this context that might be relevant for your application (or not). |
Note Cleaning up old issues and pull requests I opened over the past years that are now outdated or stale. If this is still relevant, feel free to reopen it or create a new one with updated details. Thanks! |
The recently introduced SDF randomizer #177, part of the bigger randomization plan defined in #41, allows to randomize mostly all entries of an SDF model taking advantage of XPaths.
This is applied also to the inertia parameters that define the inertia matrix. However, sampling the parameters from a random distribution sometimes leads to parameters that do not satisfy the triangle inequality, obtaining an invalid model (check performed in
ignition::math::MassMatrix3::ValidMoments
.Refer to
test_sdf_randomizer
for usage examples.We should add a new randomization method specific for the inertia tensor that samples from a physically consistent distribution, something like:
so that
ixx
,iyy
andizz
are sampled consistently.The text was updated successfully, but these errors were encountered: