-
Notifications
You must be signed in to change notification settings - Fork 810
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
Run model from URDF #216
Comments
Solved, it is because of compile executable file issue. |
hi,I am planing to do the similar thing. I think that I might have the same problem. So could you make it more clear about what is wrong there and how to fix that? |
Hey, below is the code that I got it to work for my hexapod robot. I also attach the raw xml file generates by ./compile which doesn't work
|
Thanks! This was helpful! |
Thank! This is really helpful! |
Hi @XuanLin thanks for the answer, however I find it a bit confusing. In the first post you had a problem with a urdf file, however in the following explanation you presented xml files. Is there a chance you can post the urdf as well? |
Here it is: |
I see you have the |
Yes, I did it manually. ./compile doesn't give me the part. |
It is the command in terminal for compiling URDF file. The compile execution file may be in the mujoco folder. You can find 'compile' execution file. |
HI, I am new to mujoco. When I use "./compile model.urdf model.mjb", but the mjb file I got is empty, do you have the same question before? thanks a lot. So i still need to add the contents to the XML file by myself? |
Sorry for the late reply. Is the problem solved? I didn't encounter this issue before. Have you add
to your urdf file? Also you want to make sure you have the writing permission to your files in that location. If you don't mind you can share your file and I can try it on my computer. |
Thanks for your reply! I solved it . And by the way, could you use xml.eletree.parse() to parse your urdf file? I meet a new problem with urdf file :( |
Sorry I haven't used xml.eletree.parse() in my project. I haven't been working on mujoco for a while so it will probably take me some time to re-organize the code I left aside (they are a little bit in pieces right now) .... |
Hello,
I have a robot urdf file that I want to use mujoco_py to simulate, so I did the following steps:
to my URDF file, then use
./compile model.urdf model.mjb
to convert it to mjb
sudo python3 trySim.py
Then the screen blinks once and I get the following error:
I confirm that my model.mjb works in mujoco if I run ./simulate and just drag and drop, I also confirm that my trySim.py works for the given humanoid.xml example. So both my model and python code should be fine...
Does anyone know why it happens?
Thank you!
The text was updated successfully, but these errors were encountered: