Skip to content

Conversation

@hshi74
Copy link

@hshi74 hshi74 commented Aug 30, 2025

Description

This PR adds the model of toddlerbot_2xc and toddlerbot_2xm

Fixes:

Checklist

Please check off each item ([x]) once complete, or mark it as [N/A] if it doesn't apply:

  • Added your name to CONTRIBUTORS.md (alphabetically by first name)
  • Updated CHANGELOG.md:
    • [N/A] Global changelog (if your change affects the overall repo)
    • Model-specific changelog (if it affects a specific model only)
  • Followed the XML formatting/style guidelines (if editing MJCF)
  • Ran pytest test/ locally and ensured all tests pass
  • Signed the Contributor License Agreement (CLA)

Refer to the contributing guide if you're unsure about any of the steps.

Copy link
Contributor

@louislelay louislelay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice PR, thanks for sharing this! Could you remove all URDF files and follow the same structure used for other assets? That includes adding a readme in the asset folder describing how you created the XML. You should also consider adding entries for your robots in the global readme. And, are the fixed XML files really necessary?

hshi74 added 2 commits October 2, 2025 20:01
- Remove all URDF files
- Remove the fixed XML files
- Add a readme in the asset folder
- Add a license
- Add an entry in the humanoids table of the global readme
@hshi74
Copy link
Author

hshi74 commented Oct 2, 2025

Hi Louis, thanks for looking into this! I have updated the PR based on your suggestions. I added an entry in the humanoids table in the global readme, but I didn't add a thumbnail in the gallery since it seems like they're following a specific style. Are there any instructions to create such thumbnails?

Copy link
Contributor

@louislelay louislelay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Some more general comments ;)

Could you also change the images by screenshot from MuJoCo similarly to other assets. As for the thumbmails, i remember seeing in an older PR that Kevin Zakka add them himself as he have a script for it!

Comment on lines 32 to 33
</default>
<worldbody>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you format your xml files? See here.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. I followed the instructions to format the files.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok! Could you add a blank line between the big blocks? Look at the other assets to see how it’s done, it would improve readability.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be fixed in the latest commit

size="0.02045 0.02325 0.023" name="left_shoulder_roll_link_collision"
material="shoulder_roll_link_visual_material"/>
<body name="left_shoulder_gear_drive" pos="0.019 0.024 -0.019" quat="1 0 0 0">
<joint axis="0.0 0.0 1.0" name="left_shoulder_yaw_drive" type="hinge"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When you have axis 0 0 1, it's not necessary to write it as it's already the default value. Please remove them and verify if you've other parameters with default values that you can remove.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be fixed now

hshi74 and others added 3 commits October 2, 2025 22:11
Co-authored-by: Louis LE LAY <[email protected]>
- Remove robot.yml
- Remove default values in the XML files
- Update the photos
mesh="waist_gear_drive_visual" material="waist_gear_drive_visual_material"/>
</body>
<body name="waist_gear_drive_2" pos="-0.03275 -0.0 -0.0196" quat="1 0 0 0">
<joint axis="0.0 -0.0 1.0" name="waist_act_2" range="-4.698838925616426 4.656125865073181" class="XC330"/>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe you’re still missing some due to the way it’s written. It might be good to remove any unnecessary decimals and also remove the minus signs from zero values.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch! Just fixed.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work! Maybe you could generalize the removal of unnecessary decimals and minus signs to other parameters as well, such as quat, pos, etc

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the feedback! I updated all the other parameters. I also found the script generate_gallery.py to render the thumbnail.

return arena


MODEL_XMLS = [pathlib.Path(f"../{k}.xml") for k in MODEL_MAP.keys()]
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to be a typo.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes it does!

Copy link
Contributor

@louislelay louislelay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks for taking the time to go through my comments. I believe we cleared up a good amount of work for the maintainers :)

There are still a few things I’m a bit mixed up about, but the maintainers will have better judgment on those than I do.

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

Successfully merging this pull request may close these issues.

2 participants