{"id":17923847,"url":"https://github.com/kevinzakka/mujoco_cube","last_synced_at":"2025-07-19T00:33:43.819Z","repository":{"id":163659749,"uuid":"638504044","full_name":"kevinzakka/mujoco_cube","owner":"kevinzakka","description":"A 3x3x3 puzzle cube model for MuJoCo.","archived":false,"fork":false,"pushed_at":"2024-01-02T18:17:46.000Z","size":2559,"stargazers_count":29,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-19T01:11:21.981Z","etag":null,"topics":["mujoco","rubiks-cube","simulation"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kevinzakka.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-09T13:51:43.000Z","updated_at":"2024-11-13T13:33:32.000Z","dependencies_parsed_at":"2024-01-02T19:30:38.182Z","dependency_job_id":"2f8fed79-5324-46c2-9c77-262038452860","html_url":"https://github.com/kevinzakka/mujoco_cube","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinzakka%2Fmujoco_cube","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinzakka%2Fmujoco_cube/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinzakka%2Fmujoco_cube/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinzakka%2Fmujoco_cube/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kevinzakka","download_url":"https://codeload.github.com/kevinzakka/mujoco_cube/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245198943,"owners_count":20576471,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mujoco","rubiks-cube","simulation"],"created_at":"2024-10-28T20:45:48.287Z","updated_at":"2025-03-24T02:33:21.758Z","avatar_url":"https://github.com/kevinzakka.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MuJoCo 3x3x3 Puzzle Cube\n\n[![build][tests-badge]][tests]\n[![build][mujoco-version]][MuJoCo]\n\n[tests-badge]: https://github.com/kevinzakka/mujoco_cube/actions/workflows/ci.yml/badge.svg\n[tests]: https://github.com/kevinzakka/mujoco_cube/actions/workflows/ci.yml\n[mujoco-version]: https://img.shields.io/badge/MuJoCo-v2.3.3-blue\n\n[MuJoCo] model of a 3x3x3 puzzle cube, along with a script to procedurally generate it. Inspired by the [Rubik's Cube].\n\n\u003cp float=\"left\"\u003e\n  \u003cimg src=\"cube3x3x3.gif\" width=\"400\"\u003e\n\u003c/p\u003e\n\n## Requirements\n\nYou will need MuJoCo version 2.3.3 or greater to run the model. If you want to use an older version, replace the `implicitfast` integrator with `Euler`.\n\n## Play with the model\n\nJust drag and drop the `cube_3x3x3.xml` file into the simulate window.\n\n## Generate the model\n\nFirst install the dependencies:\n\n```bash\npip install -r requirements.txt\n```\n\nThen run the following to generate the assets and XML file:\n\n```bash\npython build_textures.py  # Creates the assets/ dir.\npython build_mjcf.py  # Creates cube_3x3x3.xml.\n```\n\n## Cubelet design\n\nSolidworks was used to design `cubelet.stl`. It has a dimension of 1.9 cm with chamfered edges of length 1.425 mm. The cube was exported as an STL file and processed with `process_mesh.py` to obtain the vertices for the `mesh` attribute in the MJCF file.\n\n[MuJoCo]: https://github.com/deepmind/mujoco\n[Rubik's Cube]: https://en.wikipedia.org/wiki/Rubik%27s_Cube\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevinzakka%2Fmujoco_cube","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkevinzakka%2Fmujoco_cube","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevinzakka%2Fmujoco_cube/lists"}