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

Questions about creating MJCF file converted from URDF file #74

Open
zhang-jiaqi-1207 opened this issue Jul 17, 2024 · 1 comment
Open

Comments

@zhang-jiaqi-1207
Copy link

Thanks for your excellent works and repo! But I wonder

  • Why does the robot arms (e.g. UR5e) hold their initial pose with the grevity in the MuJoCo simulator.
  • Which labels play a role in holding the pose?

I want to get the MJCF file of my 6-DOF custom robot arm from its URDF file. But it can't hold the initial pose under the grevity. I guess I may miss some xml labels in the MJCF model file. Moreover, it seems that the <visual> and <collision> labels are missing after converting although setting discardvisual="false" in the URDF file.

The robot arm product which I use is Jaka Zu 7, which is similar with the UR5e. This is its introduction if needed. The URDF file is downloaded directly from the company website. The file-convert procedure follows the UR5e README file in this repo.

Besides, my codes are also provided here JakaZu7.zip. After unzip the file, there are mesh files in meshes directory, mjcf file in MJCF directory and urdf file in URDF directoty.

Thank you very much if you could give me some help or guidelines or suggestions!

@lvjonok
Copy link
Contributor

lvjonok commented Jul 18, 2024

I believe the initial pose is held due specific actuators in default section.

<general gaintype="fixed" biastype="affine" ctrlrange="-6.2831 6.2831" gainprm="2000" biasprm="0 -2000 -400" forcerange="-150 150"/>

This line of the original UR5e xml description tells the simulator that the joints are controlled in position-mode.

A while ago I did a demo of switching actuators on the go, you may find it useful.

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