Skip to content

Conversation

@alberthli
Copy link
Contributor

@alberthli alberthli commented Nov 10, 2023

This PR closes #10.

New features:

  • mujoco and mjx are built from source at 4:53AM daily (weird time to avoid peak runner traffic on Github servers) and cached. Also, when a draft PR is made "ready to review," we see if we need to rebuild again
  • All tests use the nightly builds
  • New installation bash script created to handle installing from source (or not), also allows the user to choose a commit hash
  • conditional rebuilding depending on whether no new commits have been made to mujoco
  • the Newton solver is now the default in mjx

[NOTE] We need to keep an eye out to make sure this is working. Whenever mujoco uploads a new commit, check the next workflow run to make sure that the commit hash used also updated correctly.

UPDATE (Nov. 13, 2023): confirmed that when we have multiple artifacts, the code checks pull the one corresponding to the latest nightly build as expected.

@alberthli alberthli marked this pull request as draft November 10, 2023 18:26
@alberthli alberthli marked this pull request as ready for review November 10, 2023 21:44
@alberthli alberthli marked this pull request as draft November 10, 2023 21:54
@alberthli alberthli marked this pull request as ready for review November 10, 2023 21:54
@alberthli alberthli marked this pull request as draft November 10, 2023 22:04
@alberthli alberthli marked this pull request as ready for review November 10, 2023 22:04
@alberthli alberthli marked this pull request as draft November 10, 2023 22:56
@alberthli alberthli marked this pull request as draft November 11, 2023 23:02
@alberthli alberthli marked this pull request as ready for review November 11, 2023 23:02
@alberthli alberthli marked this pull request as draft November 11, 2023 23:34
@alberthli alberthli marked this pull request as ready for review November 11, 2023 23:34
Copy link
Collaborator

@vincekurtz vincekurtz left a comment

Choose a reason for hiding this comment

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

Overall this looks great! Just a few little questions and suggestions.

I'm less confident about the github worksflows part - that might take some iterating to see what works/doesn't work. But the script for installing mujoco from source is excellent: way less hassle than trying to figure it out from the sparse mujoco docs!

@alberthli alberthli requested a review from vincekurtz November 13, 2023 06:49
@alberthli alberthli marked this pull request as draft November 13, 2023 17:47
@alberthli alberthli marked this pull request as ready for review November 13, 2023 17:47
@alberthli alberthli marked this pull request as draft November 13, 2023 18:03
@alberthli alberthli marked this pull request as ready for review November 13, 2023 18:03
alberthli added a commit that referenced this pull request Nov 13, 2023
* added functionality that parses actuators from URDF and ensures that they are present in the XML

* added test for actuator loading

* added some guidance in the README about model loading

* update README with info about transmission tag

* added additional test to ensure that the actuators in the XML and URDF are the same

* add parsing for mimic joints

* for now, temporarily comment out the joint equality constraints in the barrett hand xml, since they weren't supported in the original mjx release

* update pendulum to have capsules, add back in equality constraints for barrett hand

* commented out equality-constrained joints for now, since mjx is still bugged out on them

* changed comments to be about merging #21 instead of mistaken mjx bug

* remove stray commented code

* upgrade pip in the code checks
Copy link
Collaborator

@vincekurtz vincekurtz left a comment

Choose a reason for hiding this comment

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

LGTM

@vincekurtz vincekurtz merged commit 40a80a6 into main Nov 13, 2023
@alberthli alberthli deleted the source-install-option branch November 13, 2023 21:08
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.

Add option to install mujoco from source

3 participants