Skip to content

Commit

Permalink
Update urdf2mjcf.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
WT-MM authored Jan 4, 2025
1 parent 8c945c6 commit 875cfe3
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions pages/utils/urdf2mjcf.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,33 @@ To see all the options, use:
urdf2mjcf -h
```

As of `urdf2mjcf==0.0.4`, the options are:
```bash
usage: urdf2mjcf [-h] [--no-collision-mesh] [--output OUTPUT] [--copy-meshes]
[--camera-distance CAMERA_DISTANCE]
[--camera-height-offset CAMERA_HEIGHT_OFFSET]
[--no-frc-limit] [--default-position DEFAULT_POSITION]
urdf_path

Convert a URDF file to an MJCF file.

positional arguments:
urdf_path The path to the URDF file.

options:
-h, --help show this help message and exit
--no-collision-mesh Do not include collision meshes.
--output OUTPUT The path to the output MJCF file.
--copy-meshes Copy mesh files to the output MJCF directory.
--camera-distance CAMERA_DISTANCE
Camera distance from the robot.
--camera-height-offset CAMERA_HEIGHT_OFFSET
Camera height offset.
--no-frc-limit Do not include force limit for the actuators.
--default-position DEFAULT_POSITION
Default position for the robot.
```

### Python

To run the conversion script from Python, use:
Expand Down

0 comments on commit 875cfe3

Please sign in to comment.