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

Remove is_urdf argument when building the model #238

Merged
merged 4 commits into from
Sep 25, 2024
Merged

Conversation

flferretti
Copy link
Collaborator

@flferretti flferretti commented Sep 19, 2024

This PR removes the is_urdf argument, as it can get automatically detected by rod. Furthermore, it enables using a rod.Sdf instance to build a JaxSimModel.

Warning

Requires ami-iit/rod#42


📚 Documentation preview 📚: https://jaxsim--238.org.readthedocs.build//238/

@flferretti flferretti self-assigned this Sep 19, 2024
@flferretti flferretti force-pushed the fix/remove_is_urdf branch 2 times, most recently from 94a11e9 to 1164aaa Compare September 23, 2024 07:43
@diegoferigo
Copy link
Member

I just released rod v0.3.2, can you please bump the dependency? CI should pass as soon as it is deployed to PyPI (maybe in ~10 mins).

@diegoferigo
Copy link
Member

@flferretti also in environment.yml :)

@flferretti
Copy link
Collaborator Author

I just released rod v0.3.2, can you please bump the dependency? CI should pass as soon as it is deployed to PyPI (maybe in ~10 mins).

Thanks for the release! I made the requested changes on the requirements, it should be okay now

@flferretti
Copy link
Collaborator Author

RTD action will fail until rod==0.3.3 will be released on conda-forge. I triggered conda-forge/rod-feedstock#12

@flferretti flferretti force-pushed the fix/remove_is_urdf branch 3 times, most recently from 441de78 to d998a0e Compare September 25, 2024 07:57
@flferretti
Copy link
Collaborator Author

As discussed f2f, I added the possibility to force parsing the resource as URDF.

Copy link
Member

@diegoferigo diegoferigo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Last fix since the changes introduced a minor change of behavior in a new considered case.

src/jaxsim/mujoco/loaders.py Outdated Show resolved Hide resolved
src/jaxsim/parsers/rod/parser.py Outdated Show resolved Hide resolved
Copy link
Member

@diegoferigo diegoferigo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! Thanks @flferretti for addressing feedback.

@diegoferigo diegoferigo merged commit 8080f3c into main Sep 25, 2024
24 checks passed
@diegoferigo diegoferigo deleted the fix/remove_is_urdf branch September 25, 2024 10:04
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

Successfully merging this pull request may close these issues.

2 participants