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

"buildModelFromXML()" cannot be used to import .xml file for Pinocchino 2.6.4 #1739

Closed
JackTony123 opened this issue Aug 26, 2022 · 3 comments

Comments

@JackTony123
Copy link

JackTony123 commented Aug 26, 2022

Hello all! Recently I met a new problem when I use the function "buildModelFromXML()" to import my model from .XML file. Here is my code below:
xml_path = "/home/Tony/RR_robots/robot_description/UR5/UR5.xml" model = pin.buildModelFromXML(xml_path) data = model.createData()
When I run the program, it shows on terminal as
ValueError: The XML stream does not contain a valid URDF model.
For the UR5.xml file, I can make sure there is no problem with that, and I can run it on Mujoco directly. Also, in another project, I can import the XML file through the IKPY library. I don't know what's the problem with this function. Is there something I did wrong or Pinocchio 2.6.4 didn't support this function?

@wxmerkt
Copy link
Member

wxmerkt commented Aug 26, 2022

Can you provide the UR5.xml file for debugging?

@JackTony123
Copy link
Author

Can you provide the UR5.xml file for debugging?

Hi, May I send you through email? The file is a little bit large. My email: jackshine97@yahoo.com
Thanks for your help!
Anyone who would like to see the XML file can send email to me and I will send you. Thanks!

@wxmerkt
Copy link
Member

wxmerkt commented Aug 26, 2022

Closing the issue as replied via email - the file in question is a MuJoCo MJCF file and not a URDF. Cf. #1680 for MJCF support

@wxmerkt wxmerkt closed this as completed Aug 26, 2022
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

2 participants