mujoco 3.17.0__tar.gz → 4.0.1__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 (346) hide show
  1. mujoco-4.0.1/MANIFEST.in +1 -0
  2. {mujoco-3.17.0/mujoco.egg-info → mujoco-4.0.1}/PKG-INFO +32 -38
  3. mujoco-4.0.1/README.md +68 -0
  4. {mujoco-3.17.0 → mujoco-4.0.1}/mujoco/__init__.py +96 -26
  5. {mujoco-3.17.0 → mujoco-4.0.1/mujoco.egg-info}/PKG-INFO +32 -38
  6. mujoco-4.0.1/mujoco.egg-info/SOURCES.txt +12 -0
  7. {mujoco-3.17.0 → mujoco-4.0.1}/mujoco.egg-info/requires.txt +6 -4
  8. {mujoco-3.17.0 → mujoco-4.0.1}/pyproject.toml +10 -53
  9. mujoco-4.0.1/setup.py +39 -0
  10. mujoco-3.17.0/MANIFEST.in +0 -5
  11. mujoco-3.17.0/README.md +0 -73
  12. mujoco-3.17.0/mujoco/CMakeLists.txt +0 -710
  13. mujoco-3.17.0/mujoco/batch.cc +0 -613
  14. mujoco-3.17.0/mujoco/batch.py +0 -930
  15. mujoco-3.17.0/mujoco/batch_test.py +0 -1146
  16. mujoco-3.17.0/mujoco/bindings_test.py +0 -2688
  17. mujoco-3.17.0/mujoco/callbacks.cc +0 -556
  18. mujoco-3.17.0/mujoco/cgl/__init__.py +0 -74
  19. mujoco-3.17.0/mujoco/cgl/cgl.py +0 -142
  20. mujoco-3.17.0/mujoco/cmake/CheckAvxSupport.cmake +0 -56
  21. mujoco-3.17.0/mujoco/cmake/FindOrFetch.cmake +0 -233
  22. mujoco-3.17.0/mujoco/cmake/MujocoDependencies.cmake +0 -375
  23. mujoco-3.17.0/mujoco/cmake/MujocoHarden.cmake +0 -35
  24. mujoco-3.17.0/mujoco/cmake/MujocoLinkOptions.cmake +0 -64
  25. mujoco-3.17.0/mujoco/cmake/MujocoMacOS.cmake +0 -41
  26. mujoco-3.17.0/mujoco/cmake/MujocoOptions.cmake +0 -132
  27. mujoco-3.17.0/mujoco/cmake/ShellTests.cmake +0 -52
  28. mujoco-3.17.0/mujoco/cmake/TargetAddRpath.cmake +0 -194
  29. mujoco-3.17.0/mujoco/cmake/third_party_deps/atkinson_hyperlegible_mono/CMakeLists.txt +0 -15
  30. mujoco-3.17.0/mujoco/cmake/third_party_deps/atkinson_hyperlegible_mono.cmake +0 -28
  31. mujoco-3.17.0/mujoco/cmake/third_party_deps/atkinson_hyperlegible_next/CMakeLists.txt +0 -15
  32. mujoco-3.17.0/mujoco/cmake/third_party_deps/atkinson_hyperlegible_next.cmake +0 -28
  33. mujoco-3.17.0/mujoco/cmake/third_party_deps/dear_imgui/CMakeLists.txt +0 -77
  34. mujoco-3.17.0/mujoco/cmake/third_party_deps/dear_imgui.cmake +0 -28
  35. mujoco-3.17.0/mujoco/cmake/third_party_deps/filament.cmake +0 -83
  36. mujoco-3.17.0/mujoco/cmake/third_party_deps/font_awesome/CMakeLists.txt +0 -15
  37. mujoco-3.17.0/mujoco/cmake/third_party_deps/font_awesome.cmake +0 -28
  38. mujoco-3.17.0/mujoco/cmake/third_party_deps/implot/CMakeLists.txt +0 -33
  39. mujoco-3.17.0/mujoco/cmake/third_party_deps/implot.cmake +0 -28
  40. mujoco-3.17.0/mujoco/cmake/third_party_deps/libwebp.cmake +0 -38
  41. mujoco-3.17.0/mujoco/cmake/third_party_deps/lodepng/CMakeLists.txt +0 -33
  42. mujoco-3.17.0/mujoco/cmake/third_party_deps/lodepng.cmake +0 -28
  43. mujoco-3.17.0/mujoco/cmake/third_party_deps/openusd/CMakeLists.txt +0 -51
  44. mujoco-3.17.0/mujoco/cmake/third_party_deps/openusd.cmake +0 -38
  45. mujoco-3.17.0/mujoco/cmake/third_party_deps/sdl2.cmake +0 -28
  46. mujoco-3.17.0/mujoco/constants.cc +0 -107
  47. mujoco-3.17.0/mujoco/egl/__init__.py +0 -139
  48. mujoco-3.17.0/mujoco/egl/egl_ext.py +0 -71
  49. mujoco-3.17.0/mujoco/enum_traits.h +0 -1200
  50. mujoco-3.17.0/mujoco/enums.cc +0 -151
  51. mujoco-3.17.0/mujoco/errors.cc +0 -25
  52. mujoco-3.17.0/mujoco/errors.h +0 -229
  53. mujoco-3.17.0/mujoco/experimental/dear_imgui/dear_imgui.cc +0 -1293
  54. mujoco-3.17.0/mujoco/experimental/dear_imgui/dear_imgui_macros.h +0 -326
  55. mujoco-3.17.0/mujoco/experimental/implot/implot.cc +0 -487
  56. mujoco-3.17.0/mujoco/experimental/netimgui/CMakeLists.txt +0 -75
  57. mujoco-3.17.0/mujoco/experimental/netimgui/Code/Client/NetImgui_Api.h +0 -353
  58. mujoco-3.17.0/mujoco/experimental/netimgui/Code/Client/NetImgui_Config.h +0 -71
  59. mujoco-3.17.0/mujoco/experimental/netimgui/Code/Client/Private/NetImgui_Api.cpp +0 -952
  60. mujoco-3.17.0/mujoco/experimental/netimgui/Code/Client/Private/NetImgui_Client.cpp +0 -1081
  61. mujoco-3.17.0/mujoco/experimental/netimgui/Code/Client/Private/NetImgui_Client.h +0 -240
  62. mujoco-3.17.0/mujoco/experimental/netimgui/Code/Client/Private/NetImgui_Client.inl +0 -26
  63. mujoco-3.17.0/mujoco/experimental/netimgui/Code/Client/Private/NetImgui_CmdPackets.h +0 -472
  64. mujoco-3.17.0/mujoco/experimental/netimgui/Code/Client/Private/NetImgui_CmdPackets.inl +0 -138
  65. mujoco-3.17.0/mujoco/experimental/netimgui/Code/Client/Private/NetImgui_CmdPackets_DrawFrame.cpp +0 -554
  66. mujoco-3.17.0/mujoco/experimental/netimgui/Code/Client/Private/NetImgui_CmdPackets_DrawFrame.h +0 -68
  67. mujoco-3.17.0/mujoco/experimental/netimgui/Code/Client/Private/NetImgui_Network.h +0 -44
  68. mujoco-3.17.0/mujoco/experimental/netimgui/Code/Client/Private/NetImgui_NetworkPosix.cpp +0 -391
  69. mujoco-3.17.0/mujoco/experimental/netimgui/Code/Client/Private/NetImgui_NetworkWin32.cpp +0 -263
  70. mujoco-3.17.0/mujoco/experimental/netimgui/Code/Client/Private/NetImgui_Shared.h +0 -209
  71. mujoco-3.17.0/mujoco/experimental/netimgui/Code/Client/Private/NetImgui_Shared.inl +0 -375
  72. mujoco-3.17.0/mujoco/experimental/netimgui/Code/Client/Private/NetImgui_WarningDisable.h +0 -52
  73. mujoco-3.17.0/mujoco/experimental/netimgui/Code/Client/Private/NetImgui_WarningDisableImgui.h +0 -48
  74. mujoco-3.17.0/mujoco/experimental/netimgui/Code/Client/Private/NetImgui_WarningDisableStd.h +0 -32
  75. mujoco-3.17.0/mujoco/experimental/netimgui/Code/Client/Private/NetImgui_WarningReenable.h +0 -15
  76. mujoco-3.17.0/mujoco/experimental/netimgui/Code/Sample/Common/Sample.cpp +0 -195
  77. mujoco-3.17.0/mujoco/experimental/netimgui/Code/Sample/Common/Sample.h +0 -55
  78. mujoco-3.17.0/mujoco/experimental/netimgui/Code/Sample/Common/main.cpp +0 -423
  79. mujoco-3.17.0/mujoco/experimental/netimgui/Code/Sample/SampleNoBackend/SampleNoBackend.cpp +0 -198
  80. mujoco-3.17.0/mujoco/experimental/netimgui/Code/ServerApp/Source/Fonts/Roboto_Medium.cpp +0 -4828
  81. mujoco-3.17.0/mujoco/experimental/netimgui/Code/ServerApp/Source/NetImguiServer_App.cpp +0 -420
  82. mujoco-3.17.0/mujoco/experimental/netimgui/Code/ServerApp/Source/NetImguiServer_App.h +0 -144
  83. mujoco-3.17.0/mujoco/experimental/netimgui/Code/ServerApp/Source/NetImguiServer_Config.cpp +0 -441
  84. mujoco-3.17.0/mujoco/experimental/netimgui/Code/ServerApp/Source/NetImguiServer_Config.h +0 -160
  85. mujoco-3.17.0/mujoco/experimental/netimgui/Code/ServerApp/Source/NetImguiServer_Network.cpp +0 -596
  86. mujoco-3.17.0/mujoco/experimental/netimgui/Code/ServerApp/Source/NetImguiServer_Network.h +0 -28
  87. mujoco-3.17.0/mujoco/experimental/netimgui/Code/ServerApp/Source/NetImguiServer_RemoteClient.cpp +0 -670
  88. mujoco-3.17.0/mujoco/experimental/netimgui/Code/ServerApp/Source/NetImguiServer_RemoteClient.h +0 -199
  89. mujoco-3.17.0/mujoco/experimental/netimgui/Code/ServerApp/Source/NetImguiServer_UI.cpp +0 -1178
  90. mujoco-3.17.0/mujoco/experimental/netimgui/Code/ServerApp/Source/NetImguiServer_UI.h +0 -26
  91. mujoco-3.17.0/mujoco/experimental/netimgui/google/NetImgui_NetworkWASM.cpp +0 -332
  92. mujoco-3.17.0/mujoco/experimental/netimgui/google/logging.h +0 -100
  93. mujoco-3.17.0/mujoco/experimental/netimgui/google/network_status.h +0 -75
  94. mujoco-3.17.0/mujoco/experimental/studio/CMakeLists.txt +0 -115
  95. mujoco-3.17.0/mujoco/experimental/studio/endpoints.py +0 -154
  96. mujoco-3.17.0/mujoco/experimental/studio/hot_reload.py +0 -548
  97. mujoco-3.17.0/mujoco/experimental/studio/hot_reload_utils.py +0 -220
  98. mujoco-3.17.0/mujoco/experimental/studio/launch_native.py +0 -97
  99. mujoco-3.17.0/mujoco/experimental/studio/launch_passive.py +0 -85
  100. mujoco-3.17.0/mujoco/experimental/studio/launch_thread.py +0 -125
  101. mujoco-3.17.0/mujoco/experimental/studio/launch_web.py +0 -111
  102. mujoco-3.17.0/mujoco/experimental/studio/messages.py +0 -595
  103. mujoco-3.17.0/mujoco/experimental/studio/native_viewer.cc +0 -105
  104. mujoco-3.17.0/mujoco/experimental/studio/native_viewer.py +0 -256
  105. mujoco-3.17.0/mujoco/experimental/studio/parser.py +0 -51
  106. mujoco-3.17.0/mujoco/experimental/studio/plugin.py +0 -222
  107. mujoco-3.17.0/mujoco/experimental/studio/plugin_registry.py +0 -103
  108. mujoco-3.17.0/mujoco/experimental/studio/sample/custom_sim_loop.py +0 -122
  109. mujoco-3.17.0/mujoco/experimental/studio/sample/filament_camera.py +0 -126
  110. mujoco-3.17.0/mujoco/experimental/studio/sample/filament_multimodel.py +0 -121
  111. mujoco-3.17.0/mujoco/experimental/studio/sample/filament_multiview.py +0 -119
  112. mujoco-3.17.0/mujoco/experimental/studio/sample/filament_render.py +0 -82
  113. mujoco-3.17.0/mujoco/experimental/studio/sample/ghost.py +0 -129
  114. mujoco-3.17.0/mujoco/experimental/studio/sample/implot.py +0 -201
  115. mujoco-3.17.0/mujoco/experimental/studio/sim.cc +0 -112
  116. mujoco-3.17.0/mujoco/experimental/studio/sim_history.py +0 -166
  117. mujoco-3.17.0/mujoco/experimental/studio/step_control.py +0 -91
  118. mujoco-3.17.0/mujoco/experimental/studio/ux.cc +0 -707
  119. mujoco-3.17.0/mujoco/experimental/studio/viewer.py +0 -91
  120. mujoco-3.17.0/mujoco/experimental/studio/viewer_app.py +0 -747
  121. mujoco-3.17.0/mujoco/experimental/studio/viewer_app_events.py +0 -675
  122. mujoco-3.17.0/mujoco/experimental/studio/viewer_handle.py +0 -461
  123. mujoco-3.17.0/mujoco/experimental/studio/viewer_protocol.py +0 -325
  124. mujoco-3.17.0/mujoco/experimental/studio/viewer_utils.py +0 -80
  125. mujoco-3.17.0/mujoco/experimental/studio/web/CMakeLists.txt +0 -179
  126. mujoco-3.17.0/mujoco/experimental/studio/web/dist/assets/AtkinsonHyperlegibleMono-Regular.ttf +0 -0
  127. mujoco-3.17.0/mujoco/experimental/studio/web/dist/assets/AtkinsonHyperlegibleNext[wght].ttf +0 -0
  128. mujoco-3.17.0/mujoco/experimental/studio/web/dist/assets/decor.filamat +0 -0
  129. mujoco-3.17.0/mujoco/experimental/studio/web/dist/assets/decor_fade.filamat +0 -0
  130. mujoco-3.17.0/mujoco/experimental/studio/web/dist/assets/fontawesome-webfont.ttf +0 -0
  131. mujoco-3.17.0/mujoco/experimental/studio/web/dist/assets/ibl.ktx +0 -0
  132. mujoco-3.17.0/mujoco/experimental/studio/web/dist/assets/outline_composite.filamat +0 -0
  133. mujoco-3.17.0/mujoco/experimental/studio/web/dist/assets/outline_flatten.filamat +0 -0
  134. mujoco-3.17.0/mujoco/experimental/studio/web/dist/assets/outline_jumpflood.filamat +0 -0
  135. mujoco-3.17.0/mujoco/experimental/studio/web/dist/assets/pbr.filamat +0 -0
  136. mujoco-3.17.0/mujoco/experimental/studio/web/dist/assets/pbr_packed.filamat +0 -0
  137. mujoco-3.17.0/mujoco/experimental/studio/web/dist/assets/pbr_packed_reflect.filamat +0 -0
  138. mujoco-3.17.0/mujoco/experimental/studio/web/dist/assets/pbr_packed_transparent.filamat +0 -0
  139. mujoco-3.17.0/mujoco/experimental/studio/web/dist/assets/pbr_reflect.filamat +0 -0
  140. mujoco-3.17.0/mujoco/experimental/studio/web/dist/assets/pbr_transparent.filamat +0 -0
  141. mujoco-3.17.0/mujoco/experimental/studio/web/dist/assets/phong_2d.filamat +0 -0
  142. mujoco-3.17.0/mujoco/experimental/studio/web/dist/assets/phong_2d_fade.filamat +0 -0
  143. mujoco-3.17.0/mujoco/experimental/studio/web/dist/assets/phong_2d_uv.filamat +0 -0
  144. mujoco-3.17.0/mujoco/experimental/studio/web/dist/assets/phong_2d_uv_fade.filamat +0 -0
  145. mujoco-3.17.0/mujoco/experimental/studio/web/dist/assets/phong_2d_uv_reflect.filamat +0 -0
  146. mujoco-3.17.0/mujoco/experimental/studio/web/dist/assets/phong_color.filamat +0 -0
  147. mujoco-3.17.0/mujoco/experimental/studio/web/dist/assets/phong_color_fade.filamat +0 -0
  148. mujoco-3.17.0/mujoco/experimental/studio/web/dist/assets/phong_color_reflect.filamat +0 -0
  149. mujoco-3.17.0/mujoco/experimental/studio/web/dist/assets/phong_cube.filamat +0 -0
  150. mujoco-3.17.0/mujoco/experimental/studio/web/dist/assets/phong_cube_fade.filamat +0 -0
  151. mujoco-3.17.0/mujoco/experimental/studio/web/dist/assets/phong_cube_reflect.filamat +0 -0
  152. mujoco-3.17.0/mujoco/experimental/studio/web/dist/assets/unlit_depth.filamat +0 -0
  153. mujoco-3.17.0/mujoco/experimental/studio/web/dist/assets/unlit_segmentation.filamat +0 -0
  154. mujoco-3.17.0/mujoco/experimental/studio/web/dist/assets/unlit_ui.filamat +0 -0
  155. mujoco-3.17.0/mujoco/experimental/studio/web/dist/favicon.ico +0 -0
  156. mujoco-3.17.0/mujoco/experimental/studio/web/dist/index.html +0 -398
  157. mujoco-3.17.0/mujoco/experimental/studio/web/dist/web_client.js +0 -1
  158. mujoco-3.17.0/mujoco/experimental/studio/web/dist/web_client.wasm +0 -0
  159. mujoco-3.17.0/mujoco/experimental/studio/web/headless_ui.cc +0 -396
  160. mujoco-3.17.0/mujoco/experimental/studio/web/index.html +0 -398
  161. mujoco-3.17.0/mujoco/experimental/studio/web/state_payload.cc +0 -201
  162. mujoco-3.17.0/mujoco/experimental/studio/web/state_payload.h +0 -143
  163. mujoco-3.17.0/mujoco/experimental/studio/web/state_payload_py.cc +0 -77
  164. mujoco-3.17.0/mujoco/experimental/studio/web/web_client.cc +0 -962
  165. mujoco-3.17.0/mujoco/experimental/studio/web/web_client_local_ui.cc +0 -422
  166. mujoco-3.17.0/mujoco/experimental/studio/web/web_client_local_ui.h +0 -115
  167. mujoco-3.17.0/mujoco/experimental/studio/web/web_client_remote_ui.cc +0 -791
  168. mujoco-3.17.0/mujoco/experimental/studio/web/web_client_remote_ui.h +0 -181
  169. mujoco-3.17.0/mujoco/experimental/studio/web/web_client_remote_ui_test.cc +0 -556
  170. mujoco-3.17.0/mujoco/experimental/studio/web/web_client_session.cc +0 -320
  171. mujoco-3.17.0/mujoco/experimental/studio/web/web_client_session.h +0 -259
  172. mujoco-3.17.0/mujoco/experimental/studio/web/web_server.py +0 -1221
  173. mujoco-3.17.0/mujoco/experimental/studio/web_viewer.py +0 -416
  174. mujoco-3.17.0/mujoco/experimental/studio/window.cc +0 -131
  175. mujoco-3.17.0/mujoco/function_traits.h +0 -6012
  176. mujoco-3.17.0/mujoco/functions.cc +0 -1928
  177. mujoco-3.17.0/mujoco/functions.h +0 -214
  178. mujoco-3.17.0/mujoco/gil.h +0 -62
  179. mujoco-3.17.0/mujoco/gil_test.py +0 -35
  180. mujoco-3.17.0/mujoco/gl_context.py +0 -21
  181. mujoco-3.17.0/mujoco/glfw/__init__.py +0 -41
  182. mujoco-3.17.0/mujoco/indexer_xmacro.h +0 -448
  183. mujoco-3.17.0/mujoco/indexers.cc +0 -465
  184. mujoco-3.17.0/mujoco/indexers.h +0 -238
  185. mujoco-3.17.0/mujoco/introspect/__init__.py +0 -14
  186. mujoco-3.17.0/mujoco/introspect/ast_nodes.py +0 -307
  187. mujoco-3.17.0/mujoco/introspect/ast_nodes_test.py +0 -202
  188. mujoco-3.17.0/mujoco/introspect/codegen/ast_processor.py +0 -369
  189. mujoco-3.17.0/mujoco/introspect/codegen/formatter.py +0 -149
  190. mujoco-3.17.0/mujoco/introspect/codegen/generate.py +0 -151
  191. mujoco-3.17.0/mujoco/introspect/enums.py +0 -1194
  192. mujoco-3.17.0/mujoco/introspect/enums_test.py +0 -70
  193. mujoco-3.17.0/mujoco/introspect/functions.py +0 -13395
  194. mujoco-3.17.0/mujoco/introspect/functions_test.py +0 -68
  195. mujoco-3.17.0/mujoco/introspect/mjxmacro.py +0 -43
  196. mujoco-3.17.0/mujoco/introspect/structs.py +0 -12745
  197. mujoco-3.17.0/mujoco/introspect/structs_test.py +0 -129
  198. mujoco-3.17.0/mujoco/introspect/type_parsing.py +0 -154
  199. mujoco-3.17.0/mujoco/introspect/type_parsing_test.py +0 -58
  200. mujoco-3.17.0/mujoco/memory_leak_test.py +0 -70
  201. mujoco-3.17.0/mujoco/minimize.py +0 -619
  202. mujoco-3.17.0/mujoco/minimize_test.py +0 -570
  203. mujoco-3.17.0/mujoco/mjpython/Info.plist +0 -34
  204. mujoco-3.17.0/mujoco/mjpython/mjpython.icns +0 -0
  205. mujoco-3.17.0/mujoco/mjpython/mjpython.mm +0 -388
  206. mujoco-3.17.0/mujoco/mjpython/mjpython.py +0 -100
  207. mujoco-3.17.0/mujoco/mjrf.py +0 -17
  208. mujoco-3.17.0/mujoco/msh2obj.py +0 -118
  209. mujoco-3.17.0/mujoco/msh2obj_test.py +0 -140
  210. mujoco-3.17.0/mujoco/osmesa/__init__.py +0 -81
  211. mujoco-3.17.0/mujoco/private.h +0 -33
  212. mujoco-3.17.0/mujoco/raw.h +0 -98
  213. mujoco-3.17.0/mujoco/render.cc +0 -323
  214. mujoco-3.17.0/mujoco/render_filament.cc +0 -513
  215. mujoco-3.17.0/mujoco/render_filament.h +0 -93
  216. mujoco-3.17.0/mujoco/render_filament_generated.cc.inc +0 -881
  217. mujoco-3.17.0/mujoco/render_test.py +0 -316
  218. mujoco-3.17.0/mujoco/renderer.py +0 -21
  219. mujoco-3.17.0/mujoco/renderer_test.py +0 -269
  220. mujoco-3.17.0/mujoco/rendering/__init__.py +0 -17
  221. mujoco-3.17.0/mujoco/rendering/classic/__init__.py +0 -16
  222. mujoco-3.17.0/mujoco/rendering/classic/gl_context.py +0 -56
  223. mujoco-3.17.0/mujoco/rendering/classic/renderer.py +0 -349
  224. mujoco-3.17.0/mujoco/rendering/filament/__init__.py +0 -25
  225. mujoco-3.17.0/mujoco/rendering/filament/model_scene.py +0 -58
  226. mujoco-3.17.0/mujoco/rendering/filament/renderer.py +0 -254
  227. mujoco-3.17.0/mujoco/rollout.cc +0 -369
  228. mujoco-3.17.0/mujoco/rollout.py +0 -433
  229. mujoco-3.17.0/mujoco/rollout_test.py +0 -1016
  230. mujoco-3.17.0/mujoco/serialization.h +0 -78
  231. mujoco-3.17.0/mujoco/simulate/CMakeLists.txt +0 -269
  232. mujoco-3.17.0/mujoco/simulate/array_safety.h +0 -105
  233. mujoco-3.17.0/mujoco/simulate/cmake/CheckAvxSupport.cmake +0 -56
  234. mujoco-3.17.0/mujoco/simulate/cmake/FindOrFetch.cmake +0 -233
  235. mujoco-3.17.0/mujoco/simulate/cmake/MujocoHarden.cmake +0 -35
  236. mujoco-3.17.0/mujoco/simulate/cmake/MujocoLinkOptions.cmake +0 -64
  237. mujoco-3.17.0/mujoco/simulate/cmake/MujocoMacOS.cmake +0 -41
  238. mujoco-3.17.0/mujoco/simulate/cmake/SimulateDependencies.cmake +0 -109
  239. mujoco-3.17.0/mujoco/simulate/cmake/SimulateOptions.cmake +0 -132
  240. mujoco-3.17.0/mujoco/simulate/glfw_adapter.cc +0 -273
  241. mujoco-3.17.0/mujoco/simulate/glfw_adapter.h +0 -78
  242. mujoco-3.17.0/mujoco/simulate/glfw_corevideo.h +0 -57
  243. mujoco-3.17.0/mujoco/simulate/glfw_corevideo.mm +0 -71
  244. mujoco-3.17.0/mujoco/simulate/glfw_dispatch.cc +0 -131
  245. mujoco-3.17.0/mujoco/simulate/glfw_dispatch.h +0 -81
  246. mujoco-3.17.0/mujoco/simulate/macos_gui.mm +0 -44
  247. mujoco-3.17.0/mujoco/simulate/main.cc +0 -548
  248. mujoco-3.17.0/mujoco/simulate/platform_ui_adapter.cc +0 -229
  249. mujoco-3.17.0/mujoco/simulate/platform_ui_adapter.h +0 -101
  250. mujoco-3.17.0/mujoco/simulate/simulate.cc +0 -3226
  251. mujoco-3.17.0/mujoco/simulate/simulate.h +0 -396
  252. mujoco-3.17.0/mujoco/simulate.cc +0 -468
  253. mujoco-3.17.0/mujoco/specs.cc +0 -2071
  254. mujoco-3.17.0/mujoco/specs.cc.inc +0 -9022
  255. mujoco-3.17.0/mujoco/specs_test.py +0 -2921
  256. mujoco-3.17.0/mujoco/specs_wrapper.cc +0 -204
  257. mujoco-3.17.0/mujoco/specs_wrapper.h +0 -131
  258. mujoco-3.17.0/mujoco/structs.cc +0 -1570
  259. mujoco-3.17.0/mujoco/structs.h +0 -1328
  260. mujoco-3.17.0/mujoco/structs_wrappers.cc +0 -1461
  261. mujoco-3.17.0/mujoco/sysid/__init__.py +0 -62
  262. mujoco-3.17.0/mujoco/sysid/_src/__init__.py +0 -15
  263. mujoco-3.17.0/mujoco/sysid/_src/io.py +0 -81
  264. mujoco-3.17.0/mujoco/sysid/_src/model_modifier.py +0 -598
  265. mujoco-3.17.0/mujoco/sysid/_src/optimize.py +0 -363
  266. mujoco-3.17.0/mujoco/sysid/_src/parameter.py +0 -700
  267. mujoco-3.17.0/mujoco/sysid/_src/plotting.py +0 -114
  268. mujoco-3.17.0/mujoco/sysid/_src/residual.py +0 -449
  269. mujoco-3.17.0/mujoco/sysid/_src/signal_modifier.py +0 -325
  270. mujoco-3.17.0/mujoco/sysid/_src/signal_transform.py +0 -301
  271. mujoco-3.17.0/mujoco/sysid/_src/timeseries.py +0 -816
  272. mujoco-3.17.0/mujoco/sysid/_src/trajectory.py +0 -659
  273. mujoco-3.17.0/mujoco/sysid/py.typed +0 -0
  274. mujoco-3.17.0/mujoco/sysid/report/builder.py +0 -122
  275. mujoco-3.17.0/mujoco/sysid/report/defaults.py +0 -291
  276. mujoco-3.17.0/mujoco/sysid/report/sections/__init__.py +0 -15
  277. mujoco-3.17.0/mujoco/sysid/report/sections/base.py +0 -63
  278. mujoco-3.17.0/mujoco/sysid/report/sections/covariance.py +0 -177
  279. mujoco-3.17.0/mujoco/sysid/report/sections/group.py +0 -59
  280. mujoco-3.17.0/mujoco/sysid/report/sections/insights.py +0 -113
  281. mujoco-3.17.0/mujoco/sysid/report/sections/optimization_trace.py +0 -471
  282. mujoco-3.17.0/mujoco/sysid/report/sections/parameter_distribution.py +0 -428
  283. mujoco-3.17.0/mujoco/sysid/report/sections/parameters.py +0 -240
  284. mujoco-3.17.0/mujoco/sysid/report/sections/row.py +0 -63
  285. mujoco-3.17.0/mujoco/sysid/report/sections/signals.py +0 -231
  286. mujoco-3.17.0/mujoco/sysid/report/sections/video.py +0 -216
  287. mujoco-3.17.0/mujoco/sysid/report/templates/covariance.html +0 -204
  288. mujoco-3.17.0/mujoco/sysid/report/templates/group.html +0 -13
  289. mujoco-3.17.0/mujoco/sysid/report/templates/insights.html +0 -90
  290. mujoco-3.17.0/mujoco/sysid/report/templates/layout.html +0 -699
  291. mujoco-3.17.0/mujoco/sysid/report/templates/optimization_trace.html +0 -20
  292. mujoco-3.17.0/mujoco/sysid/report/templates/parameter_confidence.html +0 -3
  293. mujoco-3.17.0/mujoco/sysid/report/templates/parameters_table.html +0 -147
  294. mujoco-3.17.0/mujoco/sysid/report/templates/plot_generic.html +0 -8
  295. mujoco-3.17.0/mujoco/sysid/report/templates/row.html +0 -13
  296. mujoco-3.17.0/mujoco/sysid/report/templates/signals.html +0 -3
  297. mujoco-3.17.0/mujoco/sysid/report/templates/video.html +0 -11
  298. mujoco-3.17.0/mujoco/sysid/report/utils.py +0 -61
  299. mujoco-3.17.0/mujoco/sysid/tests/__init__.py +0 -15
  300. mujoco-3.17.0/mujoco/sysid/tests/conftest.py +0 -230
  301. mujoco-3.17.0/mujoco/sysid/tests/test_integration.py +0 -276
  302. mujoco-3.17.0/mujoco/sysid/tests/test_model_modifier.py +0 -131
  303. mujoco-3.17.0/mujoco/sysid/tests/test_parameter.py +0 -183
  304. mujoco-3.17.0/mujoco/sysid/tests/test_signal.py +0 -391
  305. mujoco-3.17.0/mujoco/sysid/tests/test_timeseries.py +0 -453
  306. mujoco-3.17.0/mujoco/sysid/tests/test_trajectory.py +0 -204
  307. mujoco-3.17.0/mujoco/testdata/MJCF_NoRoot.zip +0 -0
  308. mujoco-3.17.0/mujoco/testdata/MJCF_Root.zip +0 -0
  309. mujoco-3.17.0/mujoco/testdata/abdomen_1_body.msh +0 -0
  310. mujoco-3.17.0/mujoco/testdata/model.urdf +0 -4
  311. mujoco-3.17.0/mujoco/testdata/model.xml +0 -178
  312. mujoco-3.17.0/mujoco/testdata/msh.xml +0 -5
  313. mujoco-3.17.0/mujoco/testdata/simple_usd_preview_surface.usda +0 -81
  314. mujoco-3.17.0/mujoco/testdata/usd_golden.usda +0 -89
  315. mujoco-3.17.0/mujoco/thread_safety_test.py +0 -208
  316. mujoco-3.17.0/mujoco/threadpool.cc +0 -87
  317. mujoco-3.17.0/mujoco/threadpool.h +0 -80
  318. mujoco-3.17.0/mujoco/usd/camera.py +0 -54
  319. mujoco-3.17.0/mujoco/usd/demo.py +0 -96
  320. mujoco-3.17.0/mujoco/usd/exporter.py +0 -528
  321. mujoco-3.17.0/mujoco/usd/exporter_test.py +0 -74
  322. mujoco-3.17.0/mujoco/usd/lights.py +0 -82
  323. mujoco-3.17.0/mujoco/usd/objects.py +0 -551
  324. mujoco-3.17.0/mujoco/usd/shapes.py +0 -440
  325. mujoco-3.17.0/mujoco/usd/utils.py +0 -28
  326. mujoco-3.17.0/mujoco/util/CMakeLists.txt +0 -97
  327. mujoco-3.17.0/mujoco/util/array_traits.h +0 -140
  328. mujoco-3.17.0/mujoco/util/array_traits_test.cc +0 -95
  329. mujoco-3.17.0/mujoco/util/crossplatform.h +0 -71
  330. mujoco-3.17.0/mujoco/util/func_traits.h +0 -114
  331. mujoco-3.17.0/mujoco/util/func_traits_test.cc +0 -156
  332. mujoco-3.17.0/mujoco/util/func_wrap.h +0 -193
  333. mujoco-3.17.0/mujoco/util/func_wrap_test.cc +0 -102
  334. mujoco-3.17.0/mujoco/util/tuple_tools.h +0 -159
  335. mujoco-3.17.0/mujoco/util/tuple_tools_test.cc +0 -54
  336. mujoco-3.17.0/mujoco/vfs.h +0 -46
  337. mujoco-3.17.0/mujoco/vfs_test.py +0 -251
  338. mujoco-3.17.0/mujoco/viewer.py +0 -620
  339. mujoco-3.17.0/mujoco/viewer_test.py +0 -28
  340. mujoco-3.17.0/mujoco.egg-info/SOURCES.txt +0 -340
  341. mujoco-3.17.0/setup.py +0 -447
  342. {mujoco-3.17.0 → mujoco-4.0.1}/LICENSE +0 -0
  343. {mujoco-3.17.0 → mujoco-4.0.1}/LICENSES_THIRD_PARTY.md +0 -0
  344. {mujoco-3.17.0 → mujoco-4.0.1}/mujoco.egg-info/dependency_links.txt +0 -0
  345. {mujoco-3.17.0 → mujoco-4.0.1}/mujoco.egg-info/top_level.txt +0 -0
  346. {mujoco-3.17.0 → mujoco-4.0.1}/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.17.0
3
+ Version: 4.0.1
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.17.0
8
+ Project-URL: Documentation, https://mujoco.readthedocs.io/en/4.0.1
9
9
  Project-URL: Repository, https://github.com/google-deepmind/mujoco
10
- Project-URL: Changelog, https://mujoco.readthedocs.io/en/3.17.0/changelog.html
10
+ Project-URL: Changelog, https://mujoco.readthedocs.io/en/4.0.1/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.1
28
+ Requires-Dist: mujoco-studio==4.0.1
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.1; 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,29 @@ 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
61
- [MuJoCo physics engine](https://github.com/google-deepmind/mujoco).
62
- These bindings are developed and maintained by Google DeepMind, and is kept
63
- up-to-date with the latest developments in MuJoCo itself.
59
+ This package is the canonical Python distribution for the
60
+ [MuJoCo](https://mujoco.org) physics engine
61
+ ([GitHub](https://github.com/google-deepmind/mujoco)). These bindings are
62
+ developed and maintained by Google DeepMind, and are kept up-to-date with the
63
+ latest developments in MuJoCo itself.
64
+
65
+ Installing `mujoco` installs:
64
66
 
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.
67
+ - **`mujoco-core`**: Core C API functions, structs, constants, enumerations,
68
+ `MjSpec`, classic OpenGL rendering (`egl`, `glfw`, `osmesa`), and the classic
69
+ `mujoco.viewer`.
70
+ - **`mujoco-studio`**: MuJoCo Studio desktop and web viewers (`mujoco.studio`)
71
+ and Filament rendering bindings (`mujoco.mjrf`).
72
+ - **`glfw`** and **`pyopengl`**: Default OpenGL context and viewer dependencies.
68
73
 
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.
74
+ For minimal headless simulation environments (e.g., RL training or MJX/Warp
75
+ workers) that do not need Studio, Filament, or OpenGL, you can install
76
+ `mujoco-core` directly (`pip install mujoco-core`), which depends only on
77
+ `numpy`. To switch an existing `mujoco` installation to `mujoco-core` only, run:
78
+
79
+ ```sh
80
+ pip uninstall -y mujoco mujoco-studio mujoco-studio-wasm && pip install --force-reinstall --no-deps mujoco-core
81
+ ```
75
82
 
76
83
  ## Installation
77
84
 
@@ -81,18 +88,8 @@ The recommended way to install this package is via [PyPI](https://pypi.org/proje
81
88
  pip install mujoco
82
89
  ```
83
90
 
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).
91
+ A copy of the MuJoCo library is provided as part of `mujoco-core` and does
92
+ **not** need to be downloaded or installed separately.
96
93
 
97
94
  ## Usage
98
95
 
@@ -107,10 +104,7 @@ MuJoCo using Python:
107
104
  ## Versioning
108
105
 
109
106
  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.
107
+ MuJoCo that the bindings provide.
114
108
 
115
109
  ## License and Disclaimer
116
110
 
mujoco-4.0.1/README.md ADDED
@@ -0,0 +1,68 @@
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](https://mujoco.org) physics engine
12
+ ([GitHub](https://github.com/google-deepmind/mujoco)). These bindings are
13
+ developed and maintained by Google DeepMind, and are kept up-to-date with the
14
+ latest developments in MuJoCo itself.
15
+
16
+ Installing `mujoco` installs:
17
+
18
+ - **`mujoco-core`**: Core C API functions, structs, constants, enumerations,
19
+ `MjSpec`, classic OpenGL rendering (`egl`, `glfw`, `osmesa`), and the classic
20
+ `mujoco.viewer`.
21
+ - **`mujoco-studio`**: MuJoCo Studio desktop and web viewers (`mujoco.studio`)
22
+ and Filament rendering bindings (`mujoco.mjrf`).
23
+ - **`glfw`** and **`pyopengl`**: Default OpenGL context and viewer dependencies.
24
+
25
+ For minimal headless simulation environments (e.g., RL training or MJX/Warp
26
+ workers) that do not need Studio, Filament, or OpenGL, you can install
27
+ `mujoco-core` directly (`pip install mujoco-core`), which depends only on
28
+ `numpy`. To switch an existing `mujoco` installation to `mujoco-core` only, run:
29
+
30
+ ```sh
31
+ pip uninstall -y mujoco mujoco-studio mujoco-studio-wasm && pip install --force-reinstall --no-deps mujoco-core
32
+ ```
33
+
34
+ ## Installation
35
+
36
+ The recommended way to install this package is via [PyPI](https://pypi.org/project/mujoco/):
37
+
38
+ ```sh
39
+ pip install mujoco
40
+ ```
41
+
42
+ A copy of the MuJoCo library is provided as part of `mujoco-core` and does
43
+ **not** need to be downloaded or installed separately.
44
+
45
+ ## Usage
46
+
47
+ Once installed, the package can be imported via `import mujoco`. Please consult
48
+ our [documentation](https://mujoco.readthedocs.io/en/stable/python.html) for
49
+ further detail on the package's API.
50
+
51
+ We recommend going through the tutorial notebook which covers the basics of
52
+ MuJoCo using Python:
53
+ [![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)
54
+
55
+ ## Versioning
56
+
57
+ The `major.minor.micro` portion of the version number matches the version of
58
+ MuJoCo that the bindings provide.
59
+
60
+ ## License and Disclaimer
61
+
62
+ Copyright 2022 DeepMind Technologies Limited
63
+
64
+ MuJoCo and its Python bindings are licensed under the Apache License,
65
+ Version 2.0. You may obtain a copy of the License at
66
+ https://www.apache.org/licenses/LICENSE-2.0.
67
+
68
+ 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,7 +34,9 @@ __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
41
  # sysctl is in /usr/sbin, which is not on minimal PATHs (e.g. the
41
42
  # environment Bazel runs tests in), so don't rely on PATH lookup.
@@ -52,6 +53,31 @@ elif _SYSTEM == 'Darwin':
52
53
  'machine. This is not supported by MuJoCo. Please install and run a '
53
54
  'native, arm64 build of Python.')
54
55
 
56
+ _EXPECTED_VERSION = '4.0.1'
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
+
55
81
  from mujoco import _specs
56
82
  from mujoco import _structs
57
83
  from mujoco._callbacks import *
@@ -165,6 +191,20 @@ def from_zip(file: Union[str, IO[bytes]]) -> _specs.MjSpec:
165
191
  return _specs.MjSpec.from_string(xml_string, assets=assets)
166
192
 
167
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
+
168
208
  class _MjBindModel:
169
209
  """Wrapper for MjModel that allows binding multiple specs."""
170
210
 
@@ -172,13 +212,22 @@ class _MjBindModel:
172
212
  object.__setattr__(self, 'elements', elements)
173
213
 
174
214
  def __getattr__(self, key: str):
175
- items = []
176
- for e in self.elements:
177
- items.extend(getattr(e, key))
178
- return items
215
+ return _bind_getattr(self.elements, key)
179
216
 
180
217
  def __setattr__(self, key: str, value: Any):
181
- 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)
182
231
 
183
232
 
184
233
  class _MjBindData:
@@ -188,15 +237,22 @@ class _MjBindData:
188
237
  object.__setattr__(self, 'elements', elements)
189
238
 
190
239
  def __getattr__(self, key: str):
191
- items = []
192
- for e in self.elements:
193
- items.extend(getattr(e, key))
194
- return items
240
+ return _bind_getattr(self.elements, key)
195
241
 
196
242
  def __setattr__(self, key: str, value: Any):
197
- value_it = iter(value)
198
- for element in self.elements:
199
- 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)
200
256
 
201
257
 
202
258
  def _bind_model(
@@ -239,22 +295,36 @@ _specs.MjSpec.to_zip = to_zip
239
295
  _structs.MjData.bind = _bind_data # pyrefly: ignore[bad-assignment]
240
296
  _structs.MjModel.bind = _bind_model # pyrefly: ignore[bad-assignment]
241
297
 
298
+ __version__ = mj_versionString() # pylint: disable=undefined-variable
299
+
242
300
  HEADERS_DIR = os.path.join(os.path.dirname(__file__), 'include/mujoco')
243
301
  PLUGINS_DIR = os.path.join(os.path.dirname(__file__), 'plugin')
244
302
 
245
303
  PLUGIN_HANDLES = []
246
304
 
247
305
  def _load_all_bundled_plugins():
248
- for directory, _, filenames in os.walk(PLUGINS_DIR):
249
- for filename in filenames:
250
- if os.path.splitext(filename)[-1] in [".dll", ".dylib", ".so"]:
251
- PLUGIN_HANDLES.append(ctypes.CDLL(os.path.join(directory, filename)))
252
- elif filename == "__init__.py":
253
- pass
254
- else:
255
- warnings.warn('Ignoring non-library in plugin directory: '
256
- 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
257
329
 
258
330
  _load_all_bundled_plugins()
259
-
260
- __version__ = mj_versionString() # pylint: disable=undefined-variable
@@ -1,35 +1,33 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mujoco
3
- Version: 3.17.0
3
+ Version: 4.0.1
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.17.0
8
+ Project-URL: Documentation, https://mujoco.readthedocs.io/en/4.0.1
9
9
  Project-URL: Repository, https://github.com/google-deepmind/mujoco
10
- Project-URL: Changelog, https://mujoco.readthedocs.io/en/3.17.0/changelog.html
10
+ Project-URL: Changelog, https://mujoco.readthedocs.io/en/4.0.1/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.1
28
+ Requires-Dist: mujoco-studio==4.0.1
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.1; 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,29 @@ 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
61
- [MuJoCo physics engine](https://github.com/google-deepmind/mujoco).
62
- These bindings are developed and maintained by Google DeepMind, and is kept
63
- up-to-date with the latest developments in MuJoCo itself.
59
+ This package is the canonical Python distribution for the
60
+ [MuJoCo](https://mujoco.org) physics engine
61
+ ([GitHub](https://github.com/google-deepmind/mujoco)). These bindings are
62
+ developed and maintained by Google DeepMind, and are kept up-to-date with the
63
+ latest developments in MuJoCo itself.
64
+
65
+ Installing `mujoco` installs:
64
66
 
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.
67
+ - **`mujoco-core`**: Core C API functions, structs, constants, enumerations,
68
+ `MjSpec`, classic OpenGL rendering (`egl`, `glfw`, `osmesa`), and the classic
69
+ `mujoco.viewer`.
70
+ - **`mujoco-studio`**: MuJoCo Studio desktop and web viewers (`mujoco.studio`)
71
+ and Filament rendering bindings (`mujoco.mjrf`).
72
+ - **`glfw`** and **`pyopengl`**: Default OpenGL context and viewer dependencies.
68
73
 
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.
74
+ For minimal headless simulation environments (e.g., RL training or MJX/Warp
75
+ workers) that do not need Studio, Filament, or OpenGL, you can install
76
+ `mujoco-core` directly (`pip install mujoco-core`), which depends only on
77
+ `numpy`. To switch an existing `mujoco` installation to `mujoco-core` only, run:
78
+
79
+ ```sh
80
+ pip uninstall -y mujoco mujoco-studio mujoco-studio-wasm && pip install --force-reinstall --no-deps mujoco-core
81
+ ```
75
82
 
76
83
  ## Installation
77
84
 
@@ -81,18 +88,8 @@ The recommended way to install this package is via [PyPI](https://pypi.org/proje
81
88
  pip install mujoco
82
89
  ```
83
90
 
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).
91
+ A copy of the MuJoCo library is provided as part of `mujoco-core` and does
92
+ **not** need to be downloaded or installed separately.
96
93
 
97
94
  ## Usage
98
95
 
@@ -107,10 +104,7 @@ MuJoCo using Python:
107
104
  ## Versioning
108
105
 
109
106
  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.
107
+ MuJoCo that the bindings provide.
114
108
 
115
109
  ## License and Disclaimer
116
110
 
@@ -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.1
3
+ mujoco-studio==4.0.1
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.1
@@ -4,12 +4,12 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "mujoco"
7
- version = "3.17.0"
7
+ version = "4.0.1"
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.1",
30
+ "mujoco-studio==4.0.1",
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.17.0"
38
+ Documentation = "https://mujoco.readthedocs.io/en/4.0.1"
41
39
  Repository = "https://github.com/google-deepmind/mujoco"
42
- Changelog = "https://mujoco.readthedocs.io/en/3.17.0/changelog.html"
40
+ Changelog = "https://mujoco.readthedocs.io/en/4.0.1/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.1; 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
- )'''