mujoco 3.16.0__tar.gz → 4.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (339) hide show
  1. mujoco-4.0.0/MANIFEST.in +1 -0
  2. {mujoco-3.16.0/mujoco.egg-info → mujoco-4.0.0}/PKG-INFO +29 -36
  3. mujoco-4.0.0/README.md +67 -0
  4. {mujoco-3.16.0 → mujoco-4.0.0}/mujoco/__init__.py +102 -29
  5. {mujoco-3.16.0 → mujoco-4.0.0/mujoco.egg-info}/PKG-INFO +29 -36
  6. mujoco-4.0.0/mujoco.egg-info/SOURCES.txt +12 -0
  7. {mujoco-3.16.0 → mujoco-4.0.0}/mujoco.egg-info/requires.txt +6 -4
  8. {mujoco-3.16.0 → mujoco-4.0.0}/pyproject.toml +10 -53
  9. mujoco-4.0.0/setup.py +39 -0
  10. mujoco-3.16.0/MANIFEST.in +0 -5
  11. mujoco-3.16.0/README.md +0 -73
  12. mujoco-3.16.0/mujoco/CMakeLists.txt +0 -690
  13. mujoco-3.16.0/mujoco/bindings_test.py +0 -2425
  14. mujoco-3.16.0/mujoco/callbacks.cc +0 -556
  15. mujoco-3.16.0/mujoco/cgl/__init__.py +0 -74
  16. mujoco-3.16.0/mujoco/cgl/cgl.py +0 -142
  17. mujoco-3.16.0/mujoco/cmake/CheckAvxSupport.cmake +0 -56
  18. mujoco-3.16.0/mujoco/cmake/FindOrFetch.cmake +0 -233
  19. mujoco-3.16.0/mujoco/cmake/MujocoDependencies.cmake +0 -375
  20. mujoco-3.16.0/mujoco/cmake/MujocoHarden.cmake +0 -35
  21. mujoco-3.16.0/mujoco/cmake/MujocoLinkOptions.cmake +0 -64
  22. mujoco-3.16.0/mujoco/cmake/MujocoMacOS.cmake +0 -41
  23. mujoco-3.16.0/mujoco/cmake/MujocoOptions.cmake +0 -132
  24. mujoco-3.16.0/mujoco/cmake/ShellTests.cmake +0 -52
  25. mujoco-3.16.0/mujoco/cmake/TargetAddRpath.cmake +0 -194
  26. mujoco-3.16.0/mujoco/cmake/third_party_deps/atkinson_hyperlegible_mono/CMakeLists.txt +0 -15
  27. mujoco-3.16.0/mujoco/cmake/third_party_deps/atkinson_hyperlegible_mono.cmake +0 -28
  28. mujoco-3.16.0/mujoco/cmake/third_party_deps/atkinson_hyperlegible_next/CMakeLists.txt +0 -15
  29. mujoco-3.16.0/mujoco/cmake/third_party_deps/atkinson_hyperlegible_next.cmake +0 -28
  30. mujoco-3.16.0/mujoco/cmake/third_party_deps/dear_imgui/CMakeLists.txt +0 -77
  31. mujoco-3.16.0/mujoco/cmake/third_party_deps/dear_imgui.cmake +0 -28
  32. mujoco-3.16.0/mujoco/cmake/third_party_deps/filament.cmake +0 -83
  33. mujoco-3.16.0/mujoco/cmake/third_party_deps/font_awesome/CMakeLists.txt +0 -15
  34. mujoco-3.16.0/mujoco/cmake/third_party_deps/font_awesome.cmake +0 -28
  35. mujoco-3.16.0/mujoco/cmake/third_party_deps/implot/CMakeLists.txt +0 -33
  36. mujoco-3.16.0/mujoco/cmake/third_party_deps/implot.cmake +0 -28
  37. mujoco-3.16.0/mujoco/cmake/third_party_deps/libwebp.cmake +0 -38
  38. mujoco-3.16.0/mujoco/cmake/third_party_deps/lodepng/CMakeLists.txt +0 -33
  39. mujoco-3.16.0/mujoco/cmake/third_party_deps/lodepng.cmake +0 -28
  40. mujoco-3.16.0/mujoco/cmake/third_party_deps/openusd/CMakeLists.txt +0 -51
  41. mujoco-3.16.0/mujoco/cmake/third_party_deps/openusd.cmake +0 -38
  42. mujoco-3.16.0/mujoco/cmake/third_party_deps/sdl2.cmake +0 -28
  43. mujoco-3.16.0/mujoco/constants.cc +0 -101
  44. mujoco-3.16.0/mujoco/egl/__init__.py +0 -139
  45. mujoco-3.16.0/mujoco/egl/egl_ext.py +0 -71
  46. mujoco-3.16.0/mujoco/enum_traits.h +0 -1172
  47. mujoco-3.16.0/mujoco/enums.cc +0 -151
  48. mujoco-3.16.0/mujoco/errors.cc +0 -25
  49. mujoco-3.16.0/mujoco/errors.h +0 -229
  50. mujoco-3.16.0/mujoco/experimental/dear_imgui/dear_imgui.cc +0 -1271
  51. mujoco-3.16.0/mujoco/experimental/dear_imgui/dear_imgui_macros.h +0 -326
  52. mujoco-3.16.0/mujoco/experimental/implot/implot.cc +0 -487
  53. mujoco-3.16.0/mujoco/experimental/netimgui/CMakeLists.txt +0 -75
  54. mujoco-3.16.0/mujoco/experimental/netimgui/Code/Client/NetImgui_Api.h +0 -353
  55. mujoco-3.16.0/mujoco/experimental/netimgui/Code/Client/NetImgui_Config.h +0 -71
  56. mujoco-3.16.0/mujoco/experimental/netimgui/Code/Client/Private/NetImgui_Api.cpp +0 -948
  57. mujoco-3.16.0/mujoco/experimental/netimgui/Code/Client/Private/NetImgui_Client.cpp +0 -1046
  58. mujoco-3.16.0/mujoco/experimental/netimgui/Code/Client/Private/NetImgui_Client.h +0 -236
  59. mujoco-3.16.0/mujoco/experimental/netimgui/Code/Client/Private/NetImgui_Client.inl +0 -26
  60. mujoco-3.16.0/mujoco/experimental/netimgui/Code/Client/Private/NetImgui_CmdPackets.h +0 -426
  61. mujoco-3.16.0/mujoco/experimental/netimgui/Code/Client/Private/NetImgui_CmdPackets.inl +0 -101
  62. mujoco-3.16.0/mujoco/experimental/netimgui/Code/Client/Private/NetImgui_CmdPackets_DrawFrame.cpp +0 -477
  63. mujoco-3.16.0/mujoco/experimental/netimgui/Code/Client/Private/NetImgui_CmdPackets_DrawFrame.h +0 -63
  64. mujoco-3.16.0/mujoco/experimental/netimgui/Code/Client/Private/NetImgui_Network.h +0 -44
  65. mujoco-3.16.0/mujoco/experimental/netimgui/Code/Client/Private/NetImgui_NetworkPosix.cpp +0 -391
  66. mujoco-3.16.0/mujoco/experimental/netimgui/Code/Client/Private/NetImgui_NetworkWin32.cpp +0 -258
  67. mujoco-3.16.0/mujoco/experimental/netimgui/Code/Client/Private/NetImgui_Shared.h +0 -205
  68. mujoco-3.16.0/mujoco/experimental/netimgui/Code/Client/Private/NetImgui_Shared.inl +0 -341
  69. mujoco-3.16.0/mujoco/experimental/netimgui/Code/Client/Private/NetImgui_WarningDisable.h +0 -52
  70. mujoco-3.16.0/mujoco/experimental/netimgui/Code/Client/Private/NetImgui_WarningDisableImgui.h +0 -48
  71. mujoco-3.16.0/mujoco/experimental/netimgui/Code/Client/Private/NetImgui_WarningDisableStd.h +0 -32
  72. mujoco-3.16.0/mujoco/experimental/netimgui/Code/Client/Private/NetImgui_WarningReenable.h +0 -15
  73. mujoco-3.16.0/mujoco/experimental/netimgui/Code/Sample/Common/Sample.cpp +0 -195
  74. mujoco-3.16.0/mujoco/experimental/netimgui/Code/Sample/Common/Sample.h +0 -55
  75. mujoco-3.16.0/mujoco/experimental/netimgui/Code/Sample/Common/main.cpp +0 -423
  76. mujoco-3.16.0/mujoco/experimental/netimgui/Code/Sample/SampleNoBackend/SampleNoBackend.cpp +0 -198
  77. mujoco-3.16.0/mujoco/experimental/netimgui/Code/ServerApp/Source/Fonts/Roboto_Medium.cpp +0 -4828
  78. mujoco-3.16.0/mujoco/experimental/netimgui/Code/ServerApp/Source/NetImguiServer_App.cpp +0 -417
  79. mujoco-3.16.0/mujoco/experimental/netimgui/Code/ServerApp/Source/NetImguiServer_App.h +0 -144
  80. mujoco-3.16.0/mujoco/experimental/netimgui/Code/ServerApp/Source/NetImguiServer_Config.cpp +0 -441
  81. mujoco-3.16.0/mujoco/experimental/netimgui/Code/ServerApp/Source/NetImguiServer_Config.h +0 -160
  82. mujoco-3.16.0/mujoco/experimental/netimgui/Code/ServerApp/Source/NetImguiServer_Network.cpp +0 -577
  83. mujoco-3.16.0/mujoco/experimental/netimgui/Code/ServerApp/Source/NetImguiServer_Network.h +0 -28
  84. mujoco-3.16.0/mujoco/experimental/netimgui/Code/ServerApp/Source/NetImguiServer_RemoteClient.cpp +0 -664
  85. mujoco-3.16.0/mujoco/experimental/netimgui/Code/ServerApp/Source/NetImguiServer_RemoteClient.h +0 -199
  86. mujoco-3.16.0/mujoco/experimental/netimgui/Code/ServerApp/Source/NetImguiServer_UI.cpp +0 -1178
  87. mujoco-3.16.0/mujoco/experimental/netimgui/Code/ServerApp/Source/NetImguiServer_UI.h +0 -26
  88. mujoco-3.16.0/mujoco/experimental/netimgui/google/NetImgui_NetworkWASM.cpp +0 -324
  89. mujoco-3.16.0/mujoco/experimental/netimgui/google/logging.h +0 -100
  90. mujoco-3.16.0/mujoco/experimental/netimgui/google/network_status.h +0 -75
  91. mujoco-3.16.0/mujoco/experimental/studio/CMakeLists.txt +0 -120
  92. mujoco-3.16.0/mujoco/experimental/studio/endpoints.py +0 -154
  93. mujoco-3.16.0/mujoco/experimental/studio/launch_native.py +0 -102
  94. mujoco-3.16.0/mujoco/experimental/studio/launch_passive.py +0 -102
  95. mujoco-3.16.0/mujoco/experimental/studio/launch_thread.py +0 -125
  96. mujoco-3.16.0/mujoco/experimental/studio/launch_web.py +0 -116
  97. mujoco-3.16.0/mujoco/experimental/studio/messages.py +0 -572
  98. mujoco-3.16.0/mujoco/experimental/studio/native_viewer.cc +0 -236
  99. mujoco-3.16.0/mujoco/experimental/studio/native_viewer.py +0 -198
  100. mujoco-3.16.0/mujoco/experimental/studio/parser.py +0 -34
  101. mujoco-3.16.0/mujoco/experimental/studio/plugin_registry.py +0 -62
  102. mujoco-3.16.0/mujoco/experimental/studio/renderer.cc +0 -89
  103. mujoco-3.16.0/mujoco/experimental/studio/sample/custom_sim_loop.py +0 -122
  104. mujoco-3.16.0/mujoco/experimental/studio/sample/filament_camera.py +0 -127
  105. mujoco-3.16.0/mujoco/experimental/studio/sample/filament_multimodel.py +0 -120
  106. mujoco-3.16.0/mujoco/experimental/studio/sample/filament_multiview.py +0 -119
  107. mujoco-3.16.0/mujoco/experimental/studio/sample/filament_render.py +0 -83
  108. mujoco-3.16.0/mujoco/experimental/studio/sample/ghost.py +0 -186
  109. mujoco-3.16.0/mujoco/experimental/studio/sample/implot.py +0 -250
  110. mujoco-3.16.0/mujoco/experimental/studio/sim.cc +0 -112
  111. mujoco-3.16.0/mujoco/experimental/studio/sim_history.py +0 -170
  112. mujoco-3.16.0/mujoco/experimental/studio/step_control.py +0 -84
  113. mujoco-3.16.0/mujoco/experimental/studio/ux.cc +0 -707
  114. mujoco-3.16.0/mujoco/experimental/studio/viewer.py +0 -58
  115. mujoco-3.16.0/mujoco/experimental/studio/viewer_app.py +0 -743
  116. mujoco-3.16.0/mujoco/experimental/studio/viewer_app_events.py +0 -675
  117. mujoco-3.16.0/mujoco/experimental/studio/viewer_handle.py +0 -442
  118. mujoco-3.16.0/mujoco/experimental/studio/viewer_protocol.py +0 -309
  119. mujoco-3.16.0/mujoco/experimental/studio/viewer_utils.py +0 -71
  120. mujoco-3.16.0/mujoco/experimental/studio/web/CMakeLists.txt +0 -178
  121. mujoco-3.16.0/mujoco/experimental/studio/web/dist/assets/AtkinsonHyperlegibleMono-Regular.ttf +0 -0
  122. mujoco-3.16.0/mujoco/experimental/studio/web/dist/assets/AtkinsonHyperlegibleNext[wght].ttf +0 -0
  123. mujoco-3.16.0/mujoco/experimental/studio/web/dist/assets/decor.filamat +0 -0
  124. mujoco-3.16.0/mujoco/experimental/studio/web/dist/assets/decor_fade.filamat +0 -0
  125. mujoco-3.16.0/mujoco/experimental/studio/web/dist/assets/fontawesome-webfont.ttf +0 -0
  126. mujoco-3.16.0/mujoco/experimental/studio/web/dist/assets/ibl.ktx +0 -0
  127. mujoco-3.16.0/mujoco/experimental/studio/web/dist/assets/outline_composite.filamat +0 -0
  128. mujoco-3.16.0/mujoco/experimental/studio/web/dist/assets/outline_flatten.filamat +0 -0
  129. mujoco-3.16.0/mujoco/experimental/studio/web/dist/assets/outline_jumpflood.filamat +0 -0
  130. mujoco-3.16.0/mujoco/experimental/studio/web/dist/assets/pbr.filamat +0 -0
  131. mujoco-3.16.0/mujoco/experimental/studio/web/dist/assets/pbr_packed.filamat +0 -0
  132. mujoco-3.16.0/mujoco/experimental/studio/web/dist/assets/pbr_packed_reflect.filamat +0 -0
  133. mujoco-3.16.0/mujoco/experimental/studio/web/dist/assets/pbr_packed_transparent.filamat +0 -0
  134. mujoco-3.16.0/mujoco/experimental/studio/web/dist/assets/pbr_reflect.filamat +0 -0
  135. mujoco-3.16.0/mujoco/experimental/studio/web/dist/assets/pbr_transparent.filamat +0 -0
  136. mujoco-3.16.0/mujoco/experimental/studio/web/dist/assets/phong_2d.filamat +0 -0
  137. mujoco-3.16.0/mujoco/experimental/studio/web/dist/assets/phong_2d_fade.filamat +0 -0
  138. mujoco-3.16.0/mujoco/experimental/studio/web/dist/assets/phong_2d_uv.filamat +0 -0
  139. mujoco-3.16.0/mujoco/experimental/studio/web/dist/assets/phong_2d_uv_fade.filamat +0 -0
  140. mujoco-3.16.0/mujoco/experimental/studio/web/dist/assets/phong_2d_uv_reflect.filamat +0 -0
  141. mujoco-3.16.0/mujoco/experimental/studio/web/dist/assets/phong_color.filamat +0 -0
  142. mujoco-3.16.0/mujoco/experimental/studio/web/dist/assets/phong_color_fade.filamat +0 -0
  143. mujoco-3.16.0/mujoco/experimental/studio/web/dist/assets/phong_color_reflect.filamat +0 -0
  144. mujoco-3.16.0/mujoco/experimental/studio/web/dist/assets/phong_cube.filamat +0 -0
  145. mujoco-3.16.0/mujoco/experimental/studio/web/dist/assets/phong_cube_fade.filamat +0 -0
  146. mujoco-3.16.0/mujoco/experimental/studio/web/dist/assets/phong_cube_reflect.filamat +0 -0
  147. mujoco-3.16.0/mujoco/experimental/studio/web/dist/assets/unlit_depth.filamat +0 -0
  148. mujoco-3.16.0/mujoco/experimental/studio/web/dist/assets/unlit_segmentation.filamat +0 -0
  149. mujoco-3.16.0/mujoco/experimental/studio/web/dist/assets/unlit_ui.filamat +0 -0
  150. mujoco-3.16.0/mujoco/experimental/studio/web/dist/favicon.ico +0 -0
  151. mujoco-3.16.0/mujoco/experimental/studio/web/dist/index.html +0 -398
  152. mujoco-3.16.0/mujoco/experimental/studio/web/dist/web_client.js +0 -1
  153. mujoco-3.16.0/mujoco/experimental/studio/web/dist/web_client.wasm +0 -0
  154. mujoco-3.16.0/mujoco/experimental/studio/web/headless_ui.cc +0 -380
  155. mujoco-3.16.0/mujoco/experimental/studio/web/index.html +0 -398
  156. mujoco-3.16.0/mujoco/experimental/studio/web/state_payload.cc +0 -201
  157. mujoco-3.16.0/mujoco/experimental/studio/web/state_payload.h +0 -143
  158. mujoco-3.16.0/mujoco/experimental/studio/web/state_payload_py.cc +0 -77
  159. mujoco-3.16.0/mujoco/experimental/studio/web/web_client.cc +0 -867
  160. mujoco-3.16.0/mujoco/experimental/studio/web/web_client_local_ui.cc +0 -422
  161. mujoco-3.16.0/mujoco/experimental/studio/web/web_client_local_ui.h +0 -115
  162. mujoco-3.16.0/mujoco/experimental/studio/web/web_client_remote_ui.cc +0 -775
  163. mujoco-3.16.0/mujoco/experimental/studio/web/web_client_remote_ui.h +0 -192
  164. mujoco-3.16.0/mujoco/experimental/studio/web/web_client_session.cc +0 -320
  165. mujoco-3.16.0/mujoco/experimental/studio/web/web_client_session.h +0 -259
  166. mujoco-3.16.0/mujoco/experimental/studio/web/web_server.py +0 -1190
  167. mujoco-3.16.0/mujoco/experimental/studio/web_viewer.py +0 -416
  168. mujoco-3.16.0/mujoco/experimental/studio/window.cc +0 -117
  169. mujoco-3.16.0/mujoco/function_traits.h +0 -5979
  170. mujoco-3.16.0/mujoco/functions.cc +0 -1877
  171. mujoco-3.16.0/mujoco/functions.h +0 -214
  172. mujoco-3.16.0/mujoco/gil.h +0 -62
  173. mujoco-3.16.0/mujoco/gil_test.py +0 -35
  174. mujoco-3.16.0/mujoco/gl_context.py +0 -21
  175. mujoco-3.16.0/mujoco/glfw/__init__.py +0 -41
  176. mujoco-3.16.0/mujoco/indexer_xmacro.h +0 -442
  177. mujoco-3.16.0/mujoco/indexers.cc +0 -447
  178. mujoco-3.16.0/mujoco/indexers.h +0 -237
  179. mujoco-3.16.0/mujoco/introspect/__init__.py +0 -14
  180. mujoco-3.16.0/mujoco/introspect/ast_nodes.py +0 -307
  181. mujoco-3.16.0/mujoco/introspect/ast_nodes_test.py +0 -202
  182. mujoco-3.16.0/mujoco/introspect/codegen/ast_processor.py +0 -369
  183. mujoco-3.16.0/mujoco/introspect/codegen/formatter.py +0 -149
  184. mujoco-3.16.0/mujoco/introspect/codegen/generate.py +0 -151
  185. mujoco-3.16.0/mujoco/introspect/enums.py +0 -1166
  186. mujoco-3.16.0/mujoco/introspect/enums_test.py +0 -70
  187. mujoco-3.16.0/mujoco/introspect/functions.py +0 -13289
  188. mujoco-3.16.0/mujoco/introspect/functions_test.py +0 -68
  189. mujoco-3.16.0/mujoco/introspect/mjxmacro.py +0 -43
  190. mujoco-3.16.0/mujoco/introspect/structs.py +0 -12707
  191. mujoco-3.16.0/mujoco/introspect/structs_test.py +0 -129
  192. mujoco-3.16.0/mujoco/introspect/type_parsing.py +0 -154
  193. mujoco-3.16.0/mujoco/introspect/type_parsing_test.py +0 -58
  194. mujoco-3.16.0/mujoco/memory_leak_test.py +0 -70
  195. mujoco-3.16.0/mujoco/minimize.py +0 -613
  196. mujoco-3.16.0/mujoco/minimize_test.py +0 -516
  197. mujoco-3.16.0/mujoco/mjpython/Info.plist +0 -34
  198. mujoco-3.16.0/mujoco/mjpython/mjpython.icns +0 -0
  199. mujoco-3.16.0/mujoco/mjpython/mjpython.mm +0 -388
  200. mujoco-3.16.0/mujoco/mjpython/mjpython.py +0 -100
  201. mujoco-3.16.0/mujoco/mjrf.py +0 -17
  202. mujoco-3.16.0/mujoco/msh2obj.py +0 -118
  203. mujoco-3.16.0/mujoco/msh2obj_test.py +0 -140
  204. mujoco-3.16.0/mujoco/osmesa/__init__.py +0 -81
  205. mujoco-3.16.0/mujoco/private.h +0 -33
  206. mujoco-3.16.0/mujoco/raw.h +0 -98
  207. mujoco-3.16.0/mujoco/render.cc +0 -323
  208. mujoco-3.16.0/mujoco/render_filament.cc +0 -573
  209. mujoco-3.16.0/mujoco/render_filament_generated.cc.inc +0 -869
  210. mujoco-3.16.0/mujoco/render_test.py +0 -172
  211. mujoco-3.16.0/mujoco/renderer.py +0 -21
  212. mujoco-3.16.0/mujoco/renderer_test.py +0 -269
  213. mujoco-3.16.0/mujoco/rendering/__init__.py +0 -17
  214. mujoco-3.16.0/mujoco/rendering/classic/__init__.py +0 -16
  215. mujoco-3.16.0/mujoco/rendering/classic/gl_context.py +0 -56
  216. mujoco-3.16.0/mujoco/rendering/classic/renderer.py +0 -349
  217. mujoco-3.16.0/mujoco/rendering/filament/__init__.py +0 -26
  218. mujoco-3.16.0/mujoco/rendering/filament/model_scene.py +0 -58
  219. mujoco-3.16.0/mujoco/rendering/filament/renderer.py +0 -265
  220. mujoco-3.16.0/mujoco/rollout.cc +0 -369
  221. mujoco-3.16.0/mujoco/rollout.py +0 -433
  222. mujoco-3.16.0/mujoco/rollout_test.py +0 -1016
  223. mujoco-3.16.0/mujoco/serialization.h +0 -78
  224. mujoco-3.16.0/mujoco/simulate/CMakeLists.txt +0 -269
  225. mujoco-3.16.0/mujoco/simulate/array_safety.h +0 -105
  226. mujoco-3.16.0/mujoco/simulate/cmake/CheckAvxSupport.cmake +0 -56
  227. mujoco-3.16.0/mujoco/simulate/cmake/FindOrFetch.cmake +0 -233
  228. mujoco-3.16.0/mujoco/simulate/cmake/MujocoHarden.cmake +0 -35
  229. mujoco-3.16.0/mujoco/simulate/cmake/MujocoLinkOptions.cmake +0 -64
  230. mujoco-3.16.0/mujoco/simulate/cmake/MujocoMacOS.cmake +0 -41
  231. mujoco-3.16.0/mujoco/simulate/cmake/SimulateDependencies.cmake +0 -109
  232. mujoco-3.16.0/mujoco/simulate/cmake/SimulateOptions.cmake +0 -132
  233. mujoco-3.16.0/mujoco/simulate/glfw_adapter.cc +0 -273
  234. mujoco-3.16.0/mujoco/simulate/glfw_adapter.h +0 -78
  235. mujoco-3.16.0/mujoco/simulate/glfw_corevideo.h +0 -57
  236. mujoco-3.16.0/mujoco/simulate/glfw_corevideo.mm +0 -71
  237. mujoco-3.16.0/mujoco/simulate/glfw_dispatch.cc +0 -131
  238. mujoco-3.16.0/mujoco/simulate/glfw_dispatch.h +0 -81
  239. mujoco-3.16.0/mujoco/simulate/macos_gui.mm +0 -44
  240. mujoco-3.16.0/mujoco/simulate/main.cc +0 -548
  241. mujoco-3.16.0/mujoco/simulate/platform_ui_adapter.cc +0 -229
  242. mujoco-3.16.0/mujoco/simulate/platform_ui_adapter.h +0 -101
  243. mujoco-3.16.0/mujoco/simulate/simulate.cc +0 -3226
  244. mujoco-3.16.0/mujoco/simulate/simulate.h +0 -396
  245. mujoco-3.16.0/mujoco/simulate.cc +0 -468
  246. mujoco-3.16.0/mujoco/specs.cc +0 -2050
  247. mujoco-3.16.0/mujoco/specs.cc.inc +0 -8987
  248. mujoco-3.16.0/mujoco/specs_test.py +0 -2755
  249. mujoco-3.16.0/mujoco/specs_wrapper.cc +0 -194
  250. mujoco-3.16.0/mujoco/specs_wrapper.h +0 -126
  251. mujoco-3.16.0/mujoco/structs.cc +0 -1471
  252. mujoco-3.16.0/mujoco/structs.h +0 -1328
  253. mujoco-3.16.0/mujoco/structs_wrappers.cc +0 -1461
  254. mujoco-3.16.0/mujoco/sysid/__init__.py +0 -62
  255. mujoco-3.16.0/mujoco/sysid/_src/__init__.py +0 -15
  256. mujoco-3.16.0/mujoco/sysid/_src/io.py +0 -81
  257. mujoco-3.16.0/mujoco/sysid/_src/model_modifier.py +0 -598
  258. mujoco-3.16.0/mujoco/sysid/_src/optimize.py +0 -363
  259. mujoco-3.16.0/mujoco/sysid/_src/parameter.py +0 -700
  260. mujoco-3.16.0/mujoco/sysid/_src/plotting.py +0 -114
  261. mujoco-3.16.0/mujoco/sysid/_src/residual.py +0 -449
  262. mujoco-3.16.0/mujoco/sysid/_src/signal_modifier.py +0 -325
  263. mujoco-3.16.0/mujoco/sysid/_src/signal_transform.py +0 -301
  264. mujoco-3.16.0/mujoco/sysid/_src/timeseries.py +0 -816
  265. mujoco-3.16.0/mujoco/sysid/_src/trajectory.py +0 -659
  266. mujoco-3.16.0/mujoco/sysid/py.typed +0 -0
  267. mujoco-3.16.0/mujoco/sysid/report/builder.py +0 -122
  268. mujoco-3.16.0/mujoco/sysid/report/defaults.py +0 -291
  269. mujoco-3.16.0/mujoco/sysid/report/sections/__init__.py +0 -15
  270. mujoco-3.16.0/mujoco/sysid/report/sections/base.py +0 -63
  271. mujoco-3.16.0/mujoco/sysid/report/sections/covariance.py +0 -177
  272. mujoco-3.16.0/mujoco/sysid/report/sections/group.py +0 -59
  273. mujoco-3.16.0/mujoco/sysid/report/sections/insights.py +0 -113
  274. mujoco-3.16.0/mujoco/sysid/report/sections/optimization_trace.py +0 -471
  275. mujoco-3.16.0/mujoco/sysid/report/sections/parameter_distribution.py +0 -428
  276. mujoco-3.16.0/mujoco/sysid/report/sections/parameters.py +0 -240
  277. mujoco-3.16.0/mujoco/sysid/report/sections/row.py +0 -63
  278. mujoco-3.16.0/mujoco/sysid/report/sections/signals.py +0 -231
  279. mujoco-3.16.0/mujoco/sysid/report/sections/video.py +0 -216
  280. mujoco-3.16.0/mujoco/sysid/report/templates/covariance.html +0 -204
  281. mujoco-3.16.0/mujoco/sysid/report/templates/group.html +0 -13
  282. mujoco-3.16.0/mujoco/sysid/report/templates/insights.html +0 -90
  283. mujoco-3.16.0/mujoco/sysid/report/templates/layout.html +0 -699
  284. mujoco-3.16.0/mujoco/sysid/report/templates/optimization_trace.html +0 -20
  285. mujoco-3.16.0/mujoco/sysid/report/templates/parameter_confidence.html +0 -3
  286. mujoco-3.16.0/mujoco/sysid/report/templates/parameters_table.html +0 -147
  287. mujoco-3.16.0/mujoco/sysid/report/templates/plot_generic.html +0 -8
  288. mujoco-3.16.0/mujoco/sysid/report/templates/row.html +0 -13
  289. mujoco-3.16.0/mujoco/sysid/report/templates/signals.html +0 -3
  290. mujoco-3.16.0/mujoco/sysid/report/templates/video.html +0 -11
  291. mujoco-3.16.0/mujoco/sysid/report/utils.py +0 -61
  292. mujoco-3.16.0/mujoco/sysid/tests/__init__.py +0 -15
  293. mujoco-3.16.0/mujoco/sysid/tests/conftest.py +0 -230
  294. mujoco-3.16.0/mujoco/sysid/tests/test_integration.py +0 -276
  295. mujoco-3.16.0/mujoco/sysid/tests/test_model_modifier.py +0 -131
  296. mujoco-3.16.0/mujoco/sysid/tests/test_parameter.py +0 -183
  297. mujoco-3.16.0/mujoco/sysid/tests/test_signal.py +0 -391
  298. mujoco-3.16.0/mujoco/sysid/tests/test_timeseries.py +0 -453
  299. mujoco-3.16.0/mujoco/sysid/tests/test_trajectory.py +0 -204
  300. mujoco-3.16.0/mujoco/testdata/MJCF_NoRoot.zip +0 -0
  301. mujoco-3.16.0/mujoco/testdata/MJCF_Root.zip +0 -0
  302. mujoco-3.16.0/mujoco/testdata/abdomen_1_body.msh +0 -0
  303. mujoco-3.16.0/mujoco/testdata/model.urdf +0 -4
  304. mujoco-3.16.0/mujoco/testdata/model.xml +0 -178
  305. mujoco-3.16.0/mujoco/testdata/msh.xml +0 -5
  306. mujoco-3.16.0/mujoco/testdata/simple_usd_preview_surface.usda +0 -81
  307. mujoco-3.16.0/mujoco/testdata/usd_golden.usda +0 -89
  308. mujoco-3.16.0/mujoco/thread_safety_test.py +0 -208
  309. mujoco-3.16.0/mujoco/threadpool.cc +0 -87
  310. mujoco-3.16.0/mujoco/threadpool.h +0 -80
  311. mujoco-3.16.0/mujoco/usd/camera.py +0 -54
  312. mujoco-3.16.0/mujoco/usd/demo.py +0 -96
  313. mujoco-3.16.0/mujoco/usd/exporter.py +0 -528
  314. mujoco-3.16.0/mujoco/usd/exporter_test.py +0 -74
  315. mujoco-3.16.0/mujoco/usd/lights.py +0 -82
  316. mujoco-3.16.0/mujoco/usd/objects.py +0 -551
  317. mujoco-3.16.0/mujoco/usd/shapes.py +0 -440
  318. mujoco-3.16.0/mujoco/usd/utils.py +0 -28
  319. mujoco-3.16.0/mujoco/util/CMakeLists.txt +0 -97
  320. mujoco-3.16.0/mujoco/util/array_traits.h +0 -140
  321. mujoco-3.16.0/mujoco/util/array_traits_test.cc +0 -95
  322. mujoco-3.16.0/mujoco/util/crossplatform.h +0 -71
  323. mujoco-3.16.0/mujoco/util/func_traits.h +0 -114
  324. mujoco-3.16.0/mujoco/util/func_traits_test.cc +0 -156
  325. mujoco-3.16.0/mujoco/util/func_wrap.h +0 -193
  326. mujoco-3.16.0/mujoco/util/func_wrap_test.cc +0 -102
  327. mujoco-3.16.0/mujoco/util/tuple_tools.h +0 -159
  328. mujoco-3.16.0/mujoco/util/tuple_tools_test.cc +0 -54
  329. mujoco-3.16.0/mujoco/vfs.h +0 -46
  330. mujoco-3.16.0/mujoco/vfs_test.py +0 -251
  331. mujoco-3.16.0/mujoco/viewer.py +0 -620
  332. mujoco-3.16.0/mujoco/viewer_test.py +0 -28
  333. mujoco-3.16.0/mujoco.egg-info/SOURCES.txt +0 -333
  334. mujoco-3.16.0/setup.py +0 -447
  335. {mujoco-3.16.0 → mujoco-4.0.0}/LICENSE +0 -0
  336. {mujoco-3.16.0 → mujoco-4.0.0}/LICENSES_THIRD_PARTY.md +0 -0
  337. {mujoco-3.16.0 → mujoco-4.0.0}/mujoco.egg-info/dependency_links.txt +0 -0
  338. {mujoco-3.16.0 → mujoco-4.0.0}/mujoco.egg-info/top_level.txt +0 -0
  339. {mujoco-3.16.0 → mujoco-4.0.0}/setup.cfg +0 -0
@@ -0,0 +1 @@
1
+ include LICENSE *.md
@@ -1,35 +1,33 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mujoco
3
- Version: 3.16.0
3
+ Version: 4.0.0
4
4
  Summary: MuJoCo Physics Simulator
5
5
  Author-email: Google DeepMind <mujoco@deepmind.com>
6
6
  License-Expression: Apache-2.0
7
7
  Project-URL: Homepage, https://github.com/google-deepmind/mujoco
8
- Project-URL: Documentation, https://mujoco.readthedocs.io/en/3.16.0
8
+ Project-URL: Documentation, https://mujoco.readthedocs.io/en/4.0.0
9
9
  Project-URL: Repository, https://github.com/google-deepmind/mujoco
10
- Project-URL: Changelog, https://mujoco.readthedocs.io/en/3.16.0/changelog.html
10
+ Project-URL: Changelog, https://mujoco.readthedocs.io/en/4.0.0/changelog.html
11
11
  Classifier: Development Status :: 5 - Production/Stable
12
12
  Classifier: Intended Audience :: Developers
13
13
  Classifier: Intended Audience :: Science/Research
14
14
  Classifier: Natural Language :: English
15
15
  Classifier: Programming Language :: Python :: 3
16
- Classifier: Programming Language :: Python :: 3.10
17
16
  Classifier: Programming Language :: Python :: 3.11
18
17
  Classifier: Programming Language :: Python :: 3.12
19
18
  Classifier: Programming Language :: Python :: 3.13
20
19
  Classifier: Programming Language :: Python :: 3.14
21
20
  Classifier: Programming Language :: Python :: 3.15
22
21
  Classifier: Topic :: Scientific/Engineering
23
- Requires-Python: >=3.10
22
+ Requires-Python: >=3.11
24
23
  Description-Content-Type: text/markdown
25
24
  License-File: LICENSE
26
25
  License-File: LICENSES_THIRD_PARTY.md
27
- Requires-Dist: absl-py
28
- Requires-Dist: etils[epath]
29
26
  Requires-Dist: glfw
27
+ Requires-Dist: mujoco-core==4.0.0
28
+ Requires-Dist: mujoco-studio==4.0.0
30
29
  Requires-Dist: numpy
31
30
  Requires-Dist: pyopengl
32
- Requires-Dist: websockets>=13
33
31
  Provides-Extra: sysid
34
32
  Requires-Dist: absl-py; extra == "sysid"
35
33
  Requires-Dist: colorama; extra == "sysid"
@@ -42,8 +40,9 @@ Requires-Dist: scipy; extra == "sysid"
42
40
  Requires-Dist: tabulate; extra == "sysid"
43
41
  Requires-Dist: typing_extensions; extra == "sysid"
44
42
  Provides-Extra: usd
45
- Requires-Dist: usd-core; extra == "usd"
43
+ Requires-Dist: mujoco-usd==4.0.0; python_version <= "3.13" and extra == "usd"
46
44
  Requires-Dist: pillow; extra == "usd"
45
+ Requires-Dist: usd-core; extra == "usd"
47
46
  Dynamic: description
48
47
  Dynamic: description-content-type
49
48
  Dynamic: license-file
@@ -57,21 +56,28 @@ Dynamic: license-file
57
56
  [pypi-badge]: https://badge.fury.io/py/mujoco.svg
58
57
  [pypi]: https://pypi.org/project/mujoco/
59
58
 
60
- This package is the canonical Python bindings for the
59
+ This package is the canonical Python distribution for the
61
60
  [MuJoCo physics engine](https://github.com/google-deepmind/mujoco).
62
- These bindings are developed and maintained by Google DeepMind, and is kept
61
+ These bindings are developed and maintained by Google DeepMind, and are kept
63
62
  up-to-date with the latest developments in MuJoCo itself.
64
63
 
65
- The `mujoco` package provides direct access to raw MuJoCo C API functions,
66
- structs, constants, and enumerations. Structs are provided as Python classes,
67
- with Pythonic initialization and deletion semantics.
64
+ Installing `mujoco` installs:
65
+
66
+ - **`mujoco-core`**: Core C API functions, structs, constants, enumerations,
67
+ `MjSpec`, classic OpenGL rendering (`egl`, `glfw`, `osmesa`), and the classic
68
+ `mujoco.viewer`.
69
+ - **`mujoco-studio`**: MuJoCo Studio desktop and web viewers (`mujoco.studio`)
70
+ and Filament rendering bindings (`mujoco.mjrf`).
71
+ - **`glfw`** and **`pyopengl`**: Default OpenGL context and viewer dependencies.
68
72
 
69
- It is not the aim of this package to provide fully fledged
70
- scene/environment/game authoring API, as there are already a number of existing
71
- packages that do this well. However, this package does provide a number of
72
- lower-level components outside of MuJoCo itself that are likely to be useful to
73
- most users who access MuJoCo through Python. For example, the `egl`, `glfw`, and
74
- `osmesa` subpackages contain utilities for setting up OpenGL rendering contexts.
73
+ For minimal headless simulation environments (e.g., RL training or MJX/Warp
74
+ workers) that do not need Studio, Filament, or OpenGL, you can install
75
+ `mujoco-core` directly (`pip install mujoco-core`), which depends only on
76
+ `numpy`. To switch an existing `mujoco` installation to `mujoco-core` only, run:
77
+
78
+ ```sh
79
+ pip uninstall -y mujoco mujoco-studio && pip install --force-reinstall --no-deps mujoco-core
80
+ ```
75
81
 
76
82
  ## Installation
77
83
 
@@ -81,18 +87,8 @@ The recommended way to install this package is via [PyPI](https://pypi.org/proje
81
87
  pip install mujoco
82
88
  ```
83
89
 
84
- A copy of the MuJoCo library is provided as part of the package and does **not**
85
- need to be downloaded or installed separately.
86
-
87
- ### Source
88
-
89
- **IMPORTANT:** Building from source is only necessary if you are modifying the
90
- Python bindings (or are trying to run on exceptionally old Linux systems).
91
- If that's not the case, then we recommend installing the prebuilt binaries from
92
- PyPI.
93
-
94
- If you need to build the Python bindings from source, please consult
95
- [the documentation](https://mujoco.readthedocs.io/en/latest/python.html#building-from-source).
90
+ A copy of the MuJoCo library is provided as part of `mujoco-core` and does
91
+ **not** need to be downloaded or installed separately.
96
92
 
97
93
  ## Usage
98
94
 
@@ -107,10 +103,7 @@ MuJoCo using Python:
107
103
  ## Versioning
108
104
 
109
105
  The `major.minor.micro` portion of the version number matches the version of
110
- MuJoCo that the bindings provide. Optionally, if we release updates to the
111
- Python bindings themselves that target the same version of MuJoCo, a `.postN`
112
- suffix is added, for example `2.1.2.post2` represents the second update to the
113
- bindings for MuJoCo 2.1.2.
106
+ MuJoCo that the bindings provide.
114
107
 
115
108
  ## License and Disclaimer
116
109
 
mujoco-4.0.0/README.md ADDED
@@ -0,0 +1,67 @@
1
+ # MuJoCo Python Bindings
2
+
3
+ [![PyPI Python Version][pypi-versions-badge]][pypi]
4
+ [![PyPI version][pypi-badge]][pypi]
5
+
6
+ [pypi-versions-badge]: https://img.shields.io/pypi/pyversions/mujoco
7
+ [pypi-badge]: https://badge.fury.io/py/mujoco.svg
8
+ [pypi]: https://pypi.org/project/mujoco/
9
+
10
+ This package is the canonical Python distribution for the
11
+ [MuJoCo physics engine](https://github.com/google-deepmind/mujoco).
12
+ These bindings are developed and maintained by Google DeepMind, and are kept
13
+ up-to-date with the latest developments in MuJoCo itself.
14
+
15
+ Installing `mujoco` installs:
16
+
17
+ - **`mujoco-core`**: Core C API functions, structs, constants, enumerations,
18
+ `MjSpec`, classic OpenGL rendering (`egl`, `glfw`, `osmesa`), and the classic
19
+ `mujoco.viewer`.
20
+ - **`mujoco-studio`**: MuJoCo Studio desktop and web viewers (`mujoco.studio`)
21
+ and Filament rendering bindings (`mujoco.mjrf`).
22
+ - **`glfw`** and **`pyopengl`**: Default OpenGL context and viewer dependencies.
23
+
24
+ For minimal headless simulation environments (e.g., RL training or MJX/Warp
25
+ workers) that do not need Studio, Filament, or OpenGL, you can install
26
+ `mujoco-core` directly (`pip install mujoco-core`), which depends only on
27
+ `numpy`. To switch an existing `mujoco` installation to `mujoco-core` only, run:
28
+
29
+ ```sh
30
+ pip uninstall -y mujoco mujoco-studio && pip install --force-reinstall --no-deps mujoco-core
31
+ ```
32
+
33
+ ## Installation
34
+
35
+ The recommended way to install this package is via [PyPI](https://pypi.org/project/mujoco/):
36
+
37
+ ```sh
38
+ pip install mujoco
39
+ ```
40
+
41
+ A copy of the MuJoCo library is provided as part of `mujoco-core` and does
42
+ **not** need to be downloaded or installed separately.
43
+
44
+ ## Usage
45
+
46
+ Once installed, the package can be imported via `import mujoco`. Please consult
47
+ our [documentation](https://mujoco.readthedocs.io/en/stable/python.html) for
48
+ further detail on the package's API.
49
+
50
+ We recommend going through the tutorial notebook which covers the basics of
51
+ MuJoCo using Python:
52
+ [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/google-deepmind/mujoco/blob/main/python/tutorial.ipynb)
53
+
54
+ ## Versioning
55
+
56
+ The `major.minor.micro` portion of the version number matches the version of
57
+ MuJoCo that the bindings provide.
58
+
59
+ ## License and Disclaimer
60
+
61
+ Copyright 2022 DeepMind Technologies Limited
62
+
63
+ MuJoCo and its Python bindings are licensed under the Apache License,
64
+ Version 2.0. You may obtain a copy of the License at
65
+ https://www.apache.org/licenses/LICENSE-2.0.
66
+
67
+ This is not an officially supported Google product.
@@ -19,8 +19,7 @@ import ctypes.util
19
19
  import os
20
20
  import platform
21
21
  import subprocess
22
- from typing import Any, IO, Union, Sequence
23
- from typing_extensions import TypeAlias
22
+ from typing import Any, IO, Sequence, TypeAlias, Union
24
23
  import warnings
25
24
  import zipfile
26
25
 
@@ -35,13 +34,18 @@ __path__ = __import__('pkgutil').extend_path(__path__, __name__)
35
34
 
36
35
  _SYSTEM = platform.system()
37
36
  if _SYSTEM == 'Windows':
38
- ctypes.WinDLL(os.path.join(os.path.dirname(__file__), 'mujoco.dll'))
37
+ _dll_path = os.path.join(os.path.dirname(__file__), 'mujoco.dll')
38
+ if os.path.exists(_dll_path):
39
+ ctypes.WinDLL(_dll_path)
39
40
  elif _SYSTEM == 'Darwin':
40
- proc_translated = subprocess.run(
41
- ['sysctl', '-n', 'sysctl.proc_translated'], capture_output=True).stdout
41
+ # sysctl is in /usr/sbin, which is not on minimal PATHs (e.g. the
42
+ # environment Bazel runs tests in), so don't rely on PATH lookup.
42
43
  try:
44
+ proc_translated = subprocess.run(
45
+ ['/usr/sbin/sysctl', '-n', 'sysctl.proc_translated'],
46
+ capture_output=True).stdout
43
47
  is_rosetta = bool(int(proc_translated))
44
- except ValueError:
48
+ except (OSError, ValueError):
45
49
  is_rosetta = False
46
50
  if is_rosetta and platform.machine() == 'x86_64':
47
51
  raise ImportError(
@@ -49,6 +53,31 @@ elif _SYSTEM == 'Darwin':
49
53
  'machine. This is not supported by MuJoCo. Please install and run a '
50
54
  'native, arm64 build of Python.')
51
55
 
56
+ _EXPECTED_VERSION = '4.0.0'
57
+ try:
58
+ from mujoco._version import __version__ as _core_version
59
+ import mujoco._specs
60
+ except ModuleNotFoundError as _e:
61
+ if not (_e.name or '').startswith('mujoco'):
62
+ raise
63
+ raise ImportError(
64
+ "The 'mujoco' package is installed, but its core bindings "
65
+ "('mujoco-core') are missing or corrupted (for example, after "
66
+ "uninstalling a previous monolithic 'mujoco' package). "
67
+ "Repair your environment with:\n"
68
+ ' pip install --force-reinstall --no-deps '
69
+ 'mujoco mujoco-core mujoco-studio'
70
+ ) from _e
71
+ if _core_version != _EXPECTED_VERSION:
72
+ raise ImportError(
73
+ f"Version mismatch between 'mujoco' ({_EXPECTED_VERSION}) and "
74
+ f"'mujoco-core' ({_core_version}). Please upgrade all packages "
75
+ 'together:\n'
76
+ f" pip install --upgrade 'mujoco=={_EXPECTED_VERSION}' "
77
+ f"'mujoco-core=={_EXPECTED_VERSION}' "
78
+ f"'mujoco-studio=={_EXPECTED_VERSION}'"
79
+ )
80
+
52
81
  from mujoco import _specs
53
82
  from mujoco import _structs
54
83
  from mujoco._callbacks import *
@@ -162,6 +191,20 @@ def from_zip(file: Union[str, IO[bytes]]) -> _specs.MjSpec:
162
191
  return _specs.MjSpec.from_string(xml_string, assets=assets)
163
192
 
164
193
 
194
+ def _bind_getattr(elements: Sequence[Any], key: str):
195
+ items = []
196
+ for e in elements:
197
+ val = getattr(e, key)
198
+ if isinstance(val, (str, bytes)):
199
+ items.append(val)
200
+ else:
201
+ try:
202
+ items.extend(val)
203
+ except TypeError:
204
+ items.append(val)
205
+ return items
206
+
207
+
165
208
  class _MjBindModel:
166
209
  """Wrapper for MjModel that allows binding multiple specs."""
167
210
 
@@ -169,13 +212,22 @@ class _MjBindModel:
169
212
  object.__setattr__(self, 'elements', elements)
170
213
 
171
214
  def __getattr__(self, key: str):
172
- items = []
173
- for e in self.elements:
174
- items.extend(getattr(e, key))
175
- return items
215
+ return _bind_getattr(self.elements, key)
176
216
 
177
217
  def __setattr__(self, key: str, value: Any):
178
- raise AttributeError(f'Cannot set {key} on MjModel.')
218
+ try:
219
+ values = list(value)
220
+ except TypeError:
221
+ raise ValueError(
222
+ f'Expected {len(self.elements)} values, got non-iterable'
223
+ f' {type(value).__name__}'
224
+ ) from None
225
+ if len(values) != len(self.elements):
226
+ raise ValueError(
227
+ f'Expected {len(self.elements)} values, got {len(values)}'
228
+ )
229
+ for element, val in zip(self.elements, values):
230
+ setattr(element, key, val)
179
231
 
180
232
 
181
233
  class _MjBindData:
@@ -185,15 +237,22 @@ class _MjBindData:
185
237
  object.__setattr__(self, 'elements', elements)
186
238
 
187
239
  def __getattr__(self, key: str):
188
- items = []
189
- for e in self.elements:
190
- items.extend(getattr(e, key))
191
- return items
240
+ return _bind_getattr(self.elements, key)
192
241
 
193
242
  def __setattr__(self, key: str, value: Any):
194
- value_it = iter(value)
195
- for element in self.elements:
196
- setattr(element, key, next(value_it))
243
+ try:
244
+ values = list(value)
245
+ except TypeError:
246
+ raise ValueError(
247
+ f'Expected {len(self.elements)} values, got non-iterable'
248
+ f' {type(value).__name__}'
249
+ ) from None
250
+ if len(values) != len(self.elements):
251
+ raise ValueError(
252
+ f'Expected {len(self.elements)} values, got {len(values)}'
253
+ )
254
+ for element, val in zip(self.elements, values):
255
+ setattr(element, key, val)
197
256
 
198
257
 
199
258
  def _bind_model(
@@ -236,22 +295,36 @@ _specs.MjSpec.to_zip = to_zip
236
295
  _structs.MjData.bind = _bind_data # pyrefly: ignore[bad-assignment]
237
296
  _structs.MjModel.bind = _bind_model # pyrefly: ignore[bad-assignment]
238
297
 
298
+ __version__ = mj_versionString() # pylint: disable=undefined-variable
299
+
239
300
  HEADERS_DIR = os.path.join(os.path.dirname(__file__), 'include/mujoco')
240
301
  PLUGINS_DIR = os.path.join(os.path.dirname(__file__), 'plugin')
241
302
 
242
303
  PLUGIN_HANDLES = []
243
304
 
244
305
  def _load_all_bundled_plugins():
245
- for directory, _, filenames in os.walk(PLUGINS_DIR):
246
- for filename in filenames:
247
- if os.path.splitext(filename)[-1] in [".dll", ".dylib", ".so"]:
248
- PLUGIN_HANDLES.append(ctypes.CDLL(os.path.join(directory, filename)))
249
- elif filename == "__init__.py":
250
- pass
251
- else:
252
- warnings.warn('Ignoring non-library in plugin directory: '
253
- f'{os.path.join(directory, filename)}', ImportWarning)
306
+ if os.path.isdir(PLUGINS_DIR):
307
+ for directory, _, filenames in os.walk(PLUGINS_DIR):
308
+ for filename in filenames:
309
+ if os.path.splitext(filename)[-1] in [".dll", ".dylib", ".so"]:
310
+ lib_path = os.path.join(directory, filename)
311
+ PLUGIN_HANDLES.append(ctypes.CDLL(lib_path))
312
+ elif filename == "__init__.py":
313
+ pass
314
+ else:
315
+ warnings.warn('Ignoring non-library in plugin directory: '
316
+ f'{os.path.join(directory, filename)}', ImportWarning)
317
+ try:
318
+ import importlib.metadata as _metadata
319
+ for _ep in _metadata.entry_points(group='mujoco.plugins'):
320
+ try:
321
+ _ep.load()()
322
+ except Exception as _ep_err: # pylint: disable=broad-exception-caught
323
+ warnings.warn(
324
+ f'Failed to load mujoco plugin entry point {_ep.name}: {_ep_err}',
325
+ RuntimeWarning,
326
+ )
327
+ except Exception: # pylint: disable=broad-exception-caught
328
+ pass
254
329
 
255
330
  _load_all_bundled_plugins()
256
-
257
- __version__ = mj_versionString() # pylint: disable=undefined-variable
@@ -1,35 +1,33 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mujoco
3
- Version: 3.16.0
3
+ Version: 4.0.0
4
4
  Summary: MuJoCo Physics Simulator
5
5
  Author-email: Google DeepMind <mujoco@deepmind.com>
6
6
  License-Expression: Apache-2.0
7
7
  Project-URL: Homepage, https://github.com/google-deepmind/mujoco
8
- Project-URL: Documentation, https://mujoco.readthedocs.io/en/3.16.0
8
+ Project-URL: Documentation, https://mujoco.readthedocs.io/en/4.0.0
9
9
  Project-URL: Repository, https://github.com/google-deepmind/mujoco
10
- Project-URL: Changelog, https://mujoco.readthedocs.io/en/3.16.0/changelog.html
10
+ Project-URL: Changelog, https://mujoco.readthedocs.io/en/4.0.0/changelog.html
11
11
  Classifier: Development Status :: 5 - Production/Stable
12
12
  Classifier: Intended Audience :: Developers
13
13
  Classifier: Intended Audience :: Science/Research
14
14
  Classifier: Natural Language :: English
15
15
  Classifier: Programming Language :: Python :: 3
16
- Classifier: Programming Language :: Python :: 3.10
17
16
  Classifier: Programming Language :: Python :: 3.11
18
17
  Classifier: Programming Language :: Python :: 3.12
19
18
  Classifier: Programming Language :: Python :: 3.13
20
19
  Classifier: Programming Language :: Python :: 3.14
21
20
  Classifier: Programming Language :: Python :: 3.15
22
21
  Classifier: Topic :: Scientific/Engineering
23
- Requires-Python: >=3.10
22
+ Requires-Python: >=3.11
24
23
  Description-Content-Type: text/markdown
25
24
  License-File: LICENSE
26
25
  License-File: LICENSES_THIRD_PARTY.md
27
- Requires-Dist: absl-py
28
- Requires-Dist: etils[epath]
29
26
  Requires-Dist: glfw
27
+ Requires-Dist: mujoco-core==4.0.0
28
+ Requires-Dist: mujoco-studio==4.0.0
30
29
  Requires-Dist: numpy
31
30
  Requires-Dist: pyopengl
32
- Requires-Dist: websockets>=13
33
31
  Provides-Extra: sysid
34
32
  Requires-Dist: absl-py; extra == "sysid"
35
33
  Requires-Dist: colorama; extra == "sysid"
@@ -42,8 +40,9 @@ Requires-Dist: scipy; extra == "sysid"
42
40
  Requires-Dist: tabulate; extra == "sysid"
43
41
  Requires-Dist: typing_extensions; extra == "sysid"
44
42
  Provides-Extra: usd
45
- Requires-Dist: usd-core; extra == "usd"
43
+ Requires-Dist: mujoco-usd==4.0.0; python_version <= "3.13" and extra == "usd"
46
44
  Requires-Dist: pillow; extra == "usd"
45
+ Requires-Dist: usd-core; extra == "usd"
47
46
  Dynamic: description
48
47
  Dynamic: description-content-type
49
48
  Dynamic: license-file
@@ -57,21 +56,28 @@ Dynamic: license-file
57
56
  [pypi-badge]: https://badge.fury.io/py/mujoco.svg
58
57
  [pypi]: https://pypi.org/project/mujoco/
59
58
 
60
- This package is the canonical Python bindings for the
59
+ This package is the canonical Python distribution for the
61
60
  [MuJoCo physics engine](https://github.com/google-deepmind/mujoco).
62
- These bindings are developed and maintained by Google DeepMind, and is kept
61
+ These bindings are developed and maintained by Google DeepMind, and are kept
63
62
  up-to-date with the latest developments in MuJoCo itself.
64
63
 
65
- The `mujoco` package provides direct access to raw MuJoCo C API functions,
66
- structs, constants, and enumerations. Structs are provided as Python classes,
67
- with Pythonic initialization and deletion semantics.
64
+ Installing `mujoco` installs:
65
+
66
+ - **`mujoco-core`**: Core C API functions, structs, constants, enumerations,
67
+ `MjSpec`, classic OpenGL rendering (`egl`, `glfw`, `osmesa`), and the classic
68
+ `mujoco.viewer`.
69
+ - **`mujoco-studio`**: MuJoCo Studio desktop and web viewers (`mujoco.studio`)
70
+ and Filament rendering bindings (`mujoco.mjrf`).
71
+ - **`glfw`** and **`pyopengl`**: Default OpenGL context and viewer dependencies.
68
72
 
69
- It is not the aim of this package to provide fully fledged
70
- scene/environment/game authoring API, as there are already a number of existing
71
- packages that do this well. However, this package does provide a number of
72
- lower-level components outside of MuJoCo itself that are likely to be useful to
73
- most users who access MuJoCo through Python. For example, the `egl`, `glfw`, and
74
- `osmesa` subpackages contain utilities for setting up OpenGL rendering contexts.
73
+ For minimal headless simulation environments (e.g., RL training or MJX/Warp
74
+ workers) that do not need Studio, Filament, or OpenGL, you can install
75
+ `mujoco-core` directly (`pip install mujoco-core`), which depends only on
76
+ `numpy`. To switch an existing `mujoco` installation to `mujoco-core` only, run:
77
+
78
+ ```sh
79
+ pip uninstall -y mujoco mujoco-studio && pip install --force-reinstall --no-deps mujoco-core
80
+ ```
75
81
 
76
82
  ## Installation
77
83
 
@@ -81,18 +87,8 @@ The recommended way to install this package is via [PyPI](https://pypi.org/proje
81
87
  pip install mujoco
82
88
  ```
83
89
 
84
- A copy of the MuJoCo library is provided as part of the package and does **not**
85
- need to be downloaded or installed separately.
86
-
87
- ### Source
88
-
89
- **IMPORTANT:** Building from source is only necessary if you are modifying the
90
- Python bindings (or are trying to run on exceptionally old Linux systems).
91
- If that's not the case, then we recommend installing the prebuilt binaries from
92
- PyPI.
93
-
94
- If you need to build the Python bindings from source, please consult
95
- [the documentation](https://mujoco.readthedocs.io/en/latest/python.html#building-from-source).
90
+ A copy of the MuJoCo library is provided as part of `mujoco-core` and does
91
+ **not** need to be downloaded or installed separately.
96
92
 
97
93
  ## Usage
98
94
 
@@ -107,10 +103,7 @@ MuJoCo using Python:
107
103
  ## Versioning
108
104
 
109
105
  The `major.minor.micro` portion of the version number matches the version of
110
- MuJoCo that the bindings provide. Optionally, if we release updates to the
111
- Python bindings themselves that target the same version of MuJoCo, a `.postN`
112
- suffix is added, for example `2.1.2.post2` represents the second update to the
113
- bindings for MuJoCo 2.1.2.
106
+ MuJoCo that the bindings provide.
114
107
 
115
108
  ## License and Disclaimer
116
109
 
@@ -0,0 +1,12 @@
1
+ LICENSE
2
+ LICENSES_THIRD_PARTY.md
3
+ MANIFEST.in
4
+ README.md
5
+ pyproject.toml
6
+ setup.py
7
+ mujoco/__init__.py
8
+ mujoco.egg-info/PKG-INFO
9
+ mujoco.egg-info/SOURCES.txt
10
+ mujoco.egg-info/dependency_links.txt
11
+ mujoco.egg-info/requires.txt
12
+ mujoco.egg-info/top_level.txt
@@ -1,9 +1,8 @@
1
- absl-py
2
- etils[epath]
3
1
  glfw
2
+ mujoco-core==4.0.0
3
+ mujoco-studio==4.0.0
4
4
  numpy
5
5
  pyopengl
6
- websockets>=13
7
6
 
8
7
  [sysid]
9
8
  absl-py
@@ -18,5 +17,8 @@ tabulate
18
17
  typing_extensions
19
18
 
20
19
  [usd]
21
- usd-core
22
20
  pillow
21
+ usd-core
22
+
23
+ [usd:python_version <= "3.13"]
24
+ mujoco-usd==4.0.0
@@ -4,12 +4,12 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "mujoco"
7
- version = "3.16.0"
7
+ version = "4.0.0"
8
8
  authors = [
9
9
  {name = "Google DeepMind", email = "mujoco@deepmind.com"},
10
10
  ]
11
11
  description = "MuJoCo Physics Simulator"
12
- requires-python = ">=3.10"
12
+ requires-python = ">=3.11"
13
13
  license = "Apache-2.0"
14
14
  classifiers = [
15
15
  "Development Status :: 5 - Production/Stable",
@@ -17,7 +17,6 @@ classifiers = [
17
17
  "Intended Audience :: Science/Research",
18
18
  "Natural Language :: English",
19
19
  "Programming Language :: Python :: 3",
20
- "Programming Language :: Python :: 3.10",
21
20
  "Programming Language :: Python :: 3.11",
22
21
  "Programming Language :: Python :: 3.12",
23
22
  "Programming Language :: Python :: 3.13",
@@ -26,47 +25,25 @@ classifiers = [
26
25
  "Topic :: Scientific/Engineering",
27
26
  ]
28
27
  dependencies = [
29
- "absl-py",
30
- "etils[epath]",
31
28
  "glfw",
29
+ "mujoco-core==4.0.0",
30
+ "mujoco-studio==4.0.0",
32
31
  "numpy",
33
32
  "pyopengl",
34
- "websockets>=13",
35
33
  ]
36
- dynamic = ["readme", "scripts"]
34
+ dynamic = ["readme"]
37
35
 
38
36
  [project.urls]
39
37
  Homepage = "https://github.com/google-deepmind/mujoco"
40
- Documentation = "https://mujoco.readthedocs.io/en/3.16.0"
38
+ Documentation = "https://mujoco.readthedocs.io/en/4.0.0"
41
39
  Repository = "https://github.com/google-deepmind/mujoco"
42
- Changelog = "https://mujoco.readthedocs.io/en/3.16.0/changelog.html"
40
+ Changelog = "https://mujoco.readthedocs.io/en/4.0.0/changelog.html"
43
41
 
44
42
  [tool.setuptools]
45
43
  include-package-data = false
46
44
 
47
45
  [tool.setuptools.packages.find]
48
- include = ["mujoco*"]
49
- exclude = [
50
- "mujoco.codegen",
51
- "mujoco.mjpython",
52
- ]
53
-
54
- [tool.setuptools.package-data]
55
- mujoco = [
56
- "libmujoco.*.dylib",
57
- "libmujoco*.so.*",
58
- "mujoco.dll",
59
- "include/mujoco/*.h",
60
- "testdata/*.xml",
61
- "testdata/*.msh",
62
- "testdata/*.usda",
63
- "testdata/*.zip",
64
- "testdata/*.urdf",
65
- "sysid/report/templates/*.html",
66
- "experimental/studio/web/*.html",
67
- "experimental/studio/web/dist/*",
68
- "experimental/studio/web/dist/assets/*",
69
- ]
46
+ include = ["mujoco"]
70
47
 
71
48
  [project.optional-dependencies]
72
49
  sysid = [
@@ -82,27 +59,7 @@ sysid = [
82
59
  "typing_extensions",
83
60
  ]
84
61
  usd = [
62
+ "mujoco-usd==4.0.0; python_version<='3.13'",
63
+ "pillow",
85
64
  "usd-core",
86
- "pillow"
87
65
  ]
88
-
89
- [tool.isort]
90
- force_single_line = true
91
- force_sort_within_sections = true
92
- lexicographical = true
93
- single_line_exclusions = ["typing"]
94
- order_by_type = false
95
- group_by_package = true
96
- line_length = 120
97
- use_parentheses = true
98
- multi_line_output = 3
99
- skip_glob = ["**/*.ipynb"]
100
-
101
- [tool.pyink]
102
- line-length = 80
103
- unstable = true
104
- pyink-indentation = 2
105
- pyink-use-majority-quotes = true
106
- extend-exclude = '''(
107
- .ipynb$
108
- )'''