> For the complete documentation index, see [llms.txt](https://tk233.gitbook.io/notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tk233.gitbook.io/notes/ml-rl/notes-on-urdf-and-mjcf.md).

# Notes on URDF and MJCF

It is important to note the slight differences between the URDF and MJCF formats to avoid bugs. In this writeup I will try to list down some common pitfalls on working with these two formats.

### Box size

URDF defines a box size with the three side lengths, while MJCF specifies **half-size** length.

<figure><img src="https://1287130752-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvVJ0h2a4qMIhB1I8GdV8%2Fuploads%2FUFVzx9tb0fBKYpoNFBU6%2Fimage.png?alt=media&amp;token=a703eed9-52d3-4a74-a06c-34a2cb1d9f39" alt=""><figcaption></figcaption></figure>
