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 about loading a robot and an object #86

Open
crtie opened this issue May 13, 2023 · 1 comment
Open

Question about loading a robot and an object #86

crtie opened this issue May 13, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@crtie
Copy link

crtie commented May 13, 2023

Hi ! I'm using Dojo to build my simulation task. I need to create an environment with atlas robot and an object (.obj file). But in your documents, you just mention how to load a urdf file or some meshes, how can I simultaneously load atlas (.urdf) and an object(.obj) into Dojo?
Thanks for your reply !

@janbruedigam
Copy link
Member

There isn't a super elegant way for this, but maybe check how the mechanisms are created in DojoEnvironments. First, a URDF is parsed, then the bodies, joints, origins, are extracted from the mechanism. You could now add an object to the bodies vector, and then recreate the mechanism.
So basically copy this file and add the object somewhere before line 100: https://github.com/dojo-sim/Dojo.jl/blob/main/DojoEnvironments/src/mechanisms/atlas/mechanism.jl

@janbruedigam janbruedigam added the enhancement New feature or request label May 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants