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
How to use urdf files in mujoco? #1569
Comments
and i noticed that the URDF Extensions, this picture is my files |
@LIUHAITAO-CH I see you are using the Franka Panda arm. I'd recommend you check out the Franka Panda arm from MuJoCo Menagerie if your main goal is to have a MuJoCo environment w/ the Panda arm already setup for you. |
@jonzamora thanks for your suggest, Franka is just an example of my test. What I want to realize is a mobile manipulator model, which is a 4-wheel differential base and franka as a whole. |
Just in case someone finds this discussion with search engines, there have been a discussion on this in #1432 . Main points I got from the discussion (if I write anything wrong feel free to correct me):
|
Thanks @traversaro ! How hard/easy would it be to add URI support? The URDF import code is in xml_urdf.cc, which I think is not very hard to read. Let us know if there are straightforward improvement that you'd like us to add. Better still, send us a PR 🙂 |
I did a working prototype in #1432 (comment), however I realized that anyhow this can't be used to load out of the box URDF with
So we pivoted to have code to modify the URDF files on the fly, as that is necessary for other parameters that can't be added as URDF extensions. See #1432 (comment) for a more in-depth discussion. |
thanks, @traversaro @yuvaltassa .now i have another question about mujoco visulaization.
I found that mujoco is not displaying a visual pattern, but a convex hull model in collision, and if the collision label is commented out, the normal visual label model will be displayed. Why is this? |
@yuvaltassa hello, I did read the document, i think that |
I think you are turning on the convex hull visualization. Try hitting the "H" key for both models, see what happens. |
@yuvaltassa thanks for your suggestion, I don't have a comment on the collision tag for my first two links, and I've noticed that holding down the h key doesn't make a noticeable difference, it's still a convex packet type. I feel that both visual and collision labels are displayed, but the collision label covers the content of the visual label. But I haven't found any other way not to implement the collision tag content, please help me, thank you |
try pressing the 0, 1 or 2 keys, I think the visual and collision geoms are usually in different groups |
@yuvaltassa thanks,you are right, when i press the 0 key again, the convex hull show up Can I not set it in the mujoco tag of the urdf file so that it does not show packages? Or is it only possible to convert urdf files to mjcf files? help me,thanks |
macOS Sonoma 14.4.1
Mujoco 3.1.3(
pip install mujoco
,not C++)How to use urdf files in mujoco? , should the urdf file be modified appropriately, or does mujoco have an API to directly process urdf files? And what is the general format of the mesh path in the urdf file?
Thanks
The text was updated successfully, but these errors were encountered: