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

Add idyntree-model-simplify-shapes command line tool #933

Closed
traversaro opened this issue Nov 7, 2021 · 2 comments
Closed

Add idyntree-model-simplify-shapes command line tool #933

traversaro opened this issue Nov 7, 2021 · 2 comments
Assignees

Comments

@traversaro
Copy link
Member

A recurring pattern I noticed in people working in co-design/optimizing model parameters based on some task, is that tipically they want as a starting point something based on a real robot, but without the strange visual or collision solid shapes, because it is too difficult or complex to optimize mesh based shapes. For this reason, it is necessary to switch to a model similar to the starting one, but with all meshes substitued with a simple primitive shape.

At the moment, I am not aware of how this can be done automatically. As we already have a quite simple iDynTree::computeBoundingBoxFromShape, I guess it should be trivial (basically just a few for loops) to do a idyntree-model-simplify-shapes command line tool that could be used like:

idyntree-model-simplify-shapes -m <complex-model.urdf> -o <simple-model.urdf>

However, to ensure that this tool is easy to use we need to first make sure that assimp dependency is enabled by default in robotology-superbuild and conda-forge:

@traversaro
Copy link
Member Author

fyi @CarlottaSartore @fabiodinatale @VenusPasandi @valentino-razza

@traversaro
Copy link
Member Author

Note that in theory more complex "approximation strategy" could be used instead of just the simple axis-aligned bounding-box that is just the easier strategy, but as as initial prototype just using axis-aligned bounding-box is probably enough.

@traversaro traversaro self-assigned this Nov 8, 2021
traversaro added a commit that referenced this issue Nov 13, 2021
This tool is useful to take in input a model, and return in
output the same model, but with all the geometries of the model
approximated with their axis aligned bounding boxes.

Fix #933 .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant