mujoco 3.17.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.
- mujoco-4.0.0/MANIFEST.in +1 -0
- {mujoco-3.17.0/mujoco.egg-info → mujoco-4.0.0}/PKG-INFO +29 -36
- mujoco-4.0.0/README.md +67 -0
- {mujoco-3.17.0 → mujoco-4.0.0}/mujoco/__init__.py +96 -26
- {mujoco-3.17.0 → mujoco-4.0.0/mujoco.egg-info}/PKG-INFO +29 -36
- mujoco-4.0.0/mujoco.egg-info/SOURCES.txt +12 -0
- {mujoco-3.17.0 → mujoco-4.0.0}/mujoco.egg-info/requires.txt +6 -4
- {mujoco-3.17.0 → mujoco-4.0.0}/pyproject.toml +10 -53
- mujoco-4.0.0/setup.py +39 -0
- mujoco-3.17.0/MANIFEST.in +0 -5
- mujoco-3.17.0/README.md +0 -73
- mujoco-3.17.0/mujoco/CMakeLists.txt +0 -710
- mujoco-3.17.0/mujoco/batch.cc +0 -613
- mujoco-3.17.0/mujoco/batch.py +0 -930
- mujoco-3.17.0/mujoco/batch_test.py +0 -1146
- mujoco-3.17.0/mujoco/bindings_test.py +0 -2688
- mujoco-3.17.0/mujoco/callbacks.cc +0 -556
- mujoco-3.17.0/mujoco/cgl/__init__.py +0 -74
- mujoco-3.17.0/mujoco/cgl/cgl.py +0 -142
- mujoco-3.17.0/mujoco/cmake/CheckAvxSupport.cmake +0 -56
- mujoco-3.17.0/mujoco/cmake/FindOrFetch.cmake +0 -233
- mujoco-3.17.0/mujoco/cmake/MujocoDependencies.cmake +0 -375
- mujoco-3.17.0/mujoco/cmake/MujocoHarden.cmake +0 -35
- mujoco-3.17.0/mujoco/cmake/MujocoLinkOptions.cmake +0 -64
- mujoco-3.17.0/mujoco/cmake/MujocoMacOS.cmake +0 -41
- mujoco-3.17.0/mujoco/cmake/MujocoOptions.cmake +0 -132
- mujoco-3.17.0/mujoco/cmake/ShellTests.cmake +0 -52
- mujoco-3.17.0/mujoco/cmake/TargetAddRpath.cmake +0 -194
- mujoco-3.17.0/mujoco/cmake/third_party_deps/atkinson_hyperlegible_mono/CMakeLists.txt +0 -15
- mujoco-3.17.0/mujoco/cmake/third_party_deps/atkinson_hyperlegible_mono.cmake +0 -28
- mujoco-3.17.0/mujoco/cmake/third_party_deps/atkinson_hyperlegible_next/CMakeLists.txt +0 -15
- mujoco-3.17.0/mujoco/cmake/third_party_deps/atkinson_hyperlegible_next.cmake +0 -28
- mujoco-3.17.0/mujoco/cmake/third_party_deps/dear_imgui/CMakeLists.txt +0 -77
- mujoco-3.17.0/mujoco/cmake/third_party_deps/dear_imgui.cmake +0 -28
- mujoco-3.17.0/mujoco/cmake/third_party_deps/filament.cmake +0 -83
- mujoco-3.17.0/mujoco/cmake/third_party_deps/font_awesome/CMakeLists.txt +0 -15
- mujoco-3.17.0/mujoco/cmake/third_party_deps/font_awesome.cmake +0 -28
- mujoco-3.17.0/mujoco/cmake/third_party_deps/implot/CMakeLists.txt +0 -33
- mujoco-3.17.0/mujoco/cmake/third_party_deps/implot.cmake +0 -28
- mujoco-3.17.0/mujoco/cmake/third_party_deps/libwebp.cmake +0 -38
- mujoco-3.17.0/mujoco/cmake/third_party_deps/lodepng/CMakeLists.txt +0 -33
- mujoco-3.17.0/mujoco/cmake/third_party_deps/lodepng.cmake +0 -28
- mujoco-3.17.0/mujoco/cmake/third_party_deps/openusd/CMakeLists.txt +0 -51
- mujoco-3.17.0/mujoco/cmake/third_party_deps/openusd.cmake +0 -38
- mujoco-3.17.0/mujoco/cmake/third_party_deps/sdl2.cmake +0 -28
- mujoco-3.17.0/mujoco/constants.cc +0 -107
- mujoco-3.17.0/mujoco/egl/__init__.py +0 -139
- mujoco-3.17.0/mujoco/egl/egl_ext.py +0 -71
- mujoco-3.17.0/mujoco/enum_traits.h +0 -1200
- mujoco-3.17.0/mujoco/enums.cc +0 -151
- mujoco-3.17.0/mujoco/errors.cc +0 -25
- mujoco-3.17.0/mujoco/errors.h +0 -229
- mujoco-3.17.0/mujoco/experimental/dear_imgui/dear_imgui.cc +0 -1293
- mujoco-3.17.0/mujoco/experimental/dear_imgui/dear_imgui_macros.h +0 -326
- mujoco-3.17.0/mujoco/experimental/implot/implot.cc +0 -487
- mujoco-3.17.0/mujoco/experimental/netimgui/CMakeLists.txt +0 -75
- mujoco-3.17.0/mujoco/experimental/netimgui/Code/Client/NetImgui_Api.h +0 -353
- mujoco-3.17.0/mujoco/experimental/netimgui/Code/Client/NetImgui_Config.h +0 -71
- mujoco-3.17.0/mujoco/experimental/netimgui/Code/Client/Private/NetImgui_Api.cpp +0 -952
- mujoco-3.17.0/mujoco/experimental/netimgui/Code/Client/Private/NetImgui_Client.cpp +0 -1081
- mujoco-3.17.0/mujoco/experimental/netimgui/Code/Client/Private/NetImgui_Client.h +0 -240
- mujoco-3.17.0/mujoco/experimental/netimgui/Code/Client/Private/NetImgui_Client.inl +0 -26
- mujoco-3.17.0/mujoco/experimental/netimgui/Code/Client/Private/NetImgui_CmdPackets.h +0 -472
- mujoco-3.17.0/mujoco/experimental/netimgui/Code/Client/Private/NetImgui_CmdPackets.inl +0 -138
- mujoco-3.17.0/mujoco/experimental/netimgui/Code/Client/Private/NetImgui_CmdPackets_DrawFrame.cpp +0 -554
- mujoco-3.17.0/mujoco/experimental/netimgui/Code/Client/Private/NetImgui_CmdPackets_DrawFrame.h +0 -68
- mujoco-3.17.0/mujoco/experimental/netimgui/Code/Client/Private/NetImgui_Network.h +0 -44
- mujoco-3.17.0/mujoco/experimental/netimgui/Code/Client/Private/NetImgui_NetworkPosix.cpp +0 -391
- mujoco-3.17.0/mujoco/experimental/netimgui/Code/Client/Private/NetImgui_NetworkWin32.cpp +0 -263
- mujoco-3.17.0/mujoco/experimental/netimgui/Code/Client/Private/NetImgui_Shared.h +0 -209
- mujoco-3.17.0/mujoco/experimental/netimgui/Code/Client/Private/NetImgui_Shared.inl +0 -375
- mujoco-3.17.0/mujoco/experimental/netimgui/Code/Client/Private/NetImgui_WarningDisable.h +0 -52
- mujoco-3.17.0/mujoco/experimental/netimgui/Code/Client/Private/NetImgui_WarningDisableImgui.h +0 -48
- mujoco-3.17.0/mujoco/experimental/netimgui/Code/Client/Private/NetImgui_WarningDisableStd.h +0 -32
- mujoco-3.17.0/mujoco/experimental/netimgui/Code/Client/Private/NetImgui_WarningReenable.h +0 -15
- mujoco-3.17.0/mujoco/experimental/netimgui/Code/Sample/Common/Sample.cpp +0 -195
- mujoco-3.17.0/mujoco/experimental/netimgui/Code/Sample/Common/Sample.h +0 -55
- mujoco-3.17.0/mujoco/experimental/netimgui/Code/Sample/Common/main.cpp +0 -423
- mujoco-3.17.0/mujoco/experimental/netimgui/Code/Sample/SampleNoBackend/SampleNoBackend.cpp +0 -198
- mujoco-3.17.0/mujoco/experimental/netimgui/Code/ServerApp/Source/Fonts/Roboto_Medium.cpp +0 -4828
- mujoco-3.17.0/mujoco/experimental/netimgui/Code/ServerApp/Source/NetImguiServer_App.cpp +0 -420
- mujoco-3.17.0/mujoco/experimental/netimgui/Code/ServerApp/Source/NetImguiServer_App.h +0 -144
- mujoco-3.17.0/mujoco/experimental/netimgui/Code/ServerApp/Source/NetImguiServer_Config.cpp +0 -441
- mujoco-3.17.0/mujoco/experimental/netimgui/Code/ServerApp/Source/NetImguiServer_Config.h +0 -160
- mujoco-3.17.0/mujoco/experimental/netimgui/Code/ServerApp/Source/NetImguiServer_Network.cpp +0 -596
- mujoco-3.17.0/mujoco/experimental/netimgui/Code/ServerApp/Source/NetImguiServer_Network.h +0 -28
- mujoco-3.17.0/mujoco/experimental/netimgui/Code/ServerApp/Source/NetImguiServer_RemoteClient.cpp +0 -670
- mujoco-3.17.0/mujoco/experimental/netimgui/Code/ServerApp/Source/NetImguiServer_RemoteClient.h +0 -199
- mujoco-3.17.0/mujoco/experimental/netimgui/Code/ServerApp/Source/NetImguiServer_UI.cpp +0 -1178
- mujoco-3.17.0/mujoco/experimental/netimgui/Code/ServerApp/Source/NetImguiServer_UI.h +0 -26
- mujoco-3.17.0/mujoco/experimental/netimgui/google/NetImgui_NetworkWASM.cpp +0 -332
- mujoco-3.17.0/mujoco/experimental/netimgui/google/logging.h +0 -100
- mujoco-3.17.0/mujoco/experimental/netimgui/google/network_status.h +0 -75
- mujoco-3.17.0/mujoco/experimental/studio/CMakeLists.txt +0 -115
- mujoco-3.17.0/mujoco/experimental/studio/endpoints.py +0 -154
- mujoco-3.17.0/mujoco/experimental/studio/hot_reload.py +0 -548
- mujoco-3.17.0/mujoco/experimental/studio/hot_reload_utils.py +0 -220
- mujoco-3.17.0/mujoco/experimental/studio/launch_native.py +0 -97
- mujoco-3.17.0/mujoco/experimental/studio/launch_passive.py +0 -85
- mujoco-3.17.0/mujoco/experimental/studio/launch_thread.py +0 -125
- mujoco-3.17.0/mujoco/experimental/studio/launch_web.py +0 -111
- mujoco-3.17.0/mujoco/experimental/studio/messages.py +0 -595
- mujoco-3.17.0/mujoco/experimental/studio/native_viewer.cc +0 -105
- mujoco-3.17.0/mujoco/experimental/studio/native_viewer.py +0 -256
- mujoco-3.17.0/mujoco/experimental/studio/parser.py +0 -51
- mujoco-3.17.0/mujoco/experimental/studio/plugin.py +0 -222
- mujoco-3.17.0/mujoco/experimental/studio/plugin_registry.py +0 -103
- mujoco-3.17.0/mujoco/experimental/studio/sample/custom_sim_loop.py +0 -122
- mujoco-3.17.0/mujoco/experimental/studio/sample/filament_camera.py +0 -126
- mujoco-3.17.0/mujoco/experimental/studio/sample/filament_multimodel.py +0 -121
- mujoco-3.17.0/mujoco/experimental/studio/sample/filament_multiview.py +0 -119
- mujoco-3.17.0/mujoco/experimental/studio/sample/filament_render.py +0 -82
- mujoco-3.17.0/mujoco/experimental/studio/sample/ghost.py +0 -129
- mujoco-3.17.0/mujoco/experimental/studio/sample/implot.py +0 -201
- mujoco-3.17.0/mujoco/experimental/studio/sim.cc +0 -112
- mujoco-3.17.0/mujoco/experimental/studio/sim_history.py +0 -166
- mujoco-3.17.0/mujoco/experimental/studio/step_control.py +0 -91
- mujoco-3.17.0/mujoco/experimental/studio/ux.cc +0 -707
- mujoco-3.17.0/mujoco/experimental/studio/viewer.py +0 -91
- mujoco-3.17.0/mujoco/experimental/studio/viewer_app.py +0 -747
- mujoco-3.17.0/mujoco/experimental/studio/viewer_app_events.py +0 -675
- mujoco-3.17.0/mujoco/experimental/studio/viewer_handle.py +0 -461
- mujoco-3.17.0/mujoco/experimental/studio/viewer_protocol.py +0 -325
- mujoco-3.17.0/mujoco/experimental/studio/viewer_utils.py +0 -80
- mujoco-3.17.0/mujoco/experimental/studio/web/CMakeLists.txt +0 -179
- mujoco-3.17.0/mujoco/experimental/studio/web/dist/assets/AtkinsonHyperlegibleMono-Regular.ttf +0 -0
- mujoco-3.17.0/mujoco/experimental/studio/web/dist/assets/AtkinsonHyperlegibleNext[wght].ttf +0 -0
- mujoco-3.17.0/mujoco/experimental/studio/web/dist/assets/decor.filamat +0 -0
- mujoco-3.17.0/mujoco/experimental/studio/web/dist/assets/decor_fade.filamat +0 -0
- mujoco-3.17.0/mujoco/experimental/studio/web/dist/assets/fontawesome-webfont.ttf +0 -0
- mujoco-3.17.0/mujoco/experimental/studio/web/dist/assets/ibl.ktx +0 -0
- mujoco-3.17.0/mujoco/experimental/studio/web/dist/assets/outline_composite.filamat +0 -0
- mujoco-3.17.0/mujoco/experimental/studio/web/dist/assets/outline_flatten.filamat +0 -0
- mujoco-3.17.0/mujoco/experimental/studio/web/dist/assets/outline_jumpflood.filamat +0 -0
- mujoco-3.17.0/mujoco/experimental/studio/web/dist/assets/pbr.filamat +0 -0
- mujoco-3.17.0/mujoco/experimental/studio/web/dist/assets/pbr_packed.filamat +0 -0
- mujoco-3.17.0/mujoco/experimental/studio/web/dist/assets/pbr_packed_reflect.filamat +0 -0
- mujoco-3.17.0/mujoco/experimental/studio/web/dist/assets/pbr_packed_transparent.filamat +0 -0
- mujoco-3.17.0/mujoco/experimental/studio/web/dist/assets/pbr_reflect.filamat +0 -0
- mujoco-3.17.0/mujoco/experimental/studio/web/dist/assets/pbr_transparent.filamat +0 -0
- mujoco-3.17.0/mujoco/experimental/studio/web/dist/assets/phong_2d.filamat +0 -0
- mujoco-3.17.0/mujoco/experimental/studio/web/dist/assets/phong_2d_fade.filamat +0 -0
- mujoco-3.17.0/mujoco/experimental/studio/web/dist/assets/phong_2d_uv.filamat +0 -0
- mujoco-3.17.0/mujoco/experimental/studio/web/dist/assets/phong_2d_uv_fade.filamat +0 -0
- mujoco-3.17.0/mujoco/experimental/studio/web/dist/assets/phong_2d_uv_reflect.filamat +0 -0
- mujoco-3.17.0/mujoco/experimental/studio/web/dist/assets/phong_color.filamat +0 -0
- mujoco-3.17.0/mujoco/experimental/studio/web/dist/assets/phong_color_fade.filamat +0 -0
- mujoco-3.17.0/mujoco/experimental/studio/web/dist/assets/phong_color_reflect.filamat +0 -0
- mujoco-3.17.0/mujoco/experimental/studio/web/dist/assets/phong_cube.filamat +0 -0
- mujoco-3.17.0/mujoco/experimental/studio/web/dist/assets/phong_cube_fade.filamat +0 -0
- mujoco-3.17.0/mujoco/experimental/studio/web/dist/assets/phong_cube_reflect.filamat +0 -0
- mujoco-3.17.0/mujoco/experimental/studio/web/dist/assets/unlit_depth.filamat +0 -0
- mujoco-3.17.0/mujoco/experimental/studio/web/dist/assets/unlit_segmentation.filamat +0 -0
- mujoco-3.17.0/mujoco/experimental/studio/web/dist/assets/unlit_ui.filamat +0 -0
- mujoco-3.17.0/mujoco/experimental/studio/web/dist/favicon.ico +0 -0
- mujoco-3.17.0/mujoco/experimental/studio/web/dist/index.html +0 -398
- mujoco-3.17.0/mujoco/experimental/studio/web/dist/web_client.js +0 -1
- mujoco-3.17.0/mujoco/experimental/studio/web/dist/web_client.wasm +0 -0
- mujoco-3.17.0/mujoco/experimental/studio/web/headless_ui.cc +0 -396
- mujoco-3.17.0/mujoco/experimental/studio/web/index.html +0 -398
- mujoco-3.17.0/mujoco/experimental/studio/web/state_payload.cc +0 -201
- mujoco-3.17.0/mujoco/experimental/studio/web/state_payload.h +0 -143
- mujoco-3.17.0/mujoco/experimental/studio/web/state_payload_py.cc +0 -77
- mujoco-3.17.0/mujoco/experimental/studio/web/web_client.cc +0 -962
- mujoco-3.17.0/mujoco/experimental/studio/web/web_client_local_ui.cc +0 -422
- mujoco-3.17.0/mujoco/experimental/studio/web/web_client_local_ui.h +0 -115
- mujoco-3.17.0/mujoco/experimental/studio/web/web_client_remote_ui.cc +0 -791
- mujoco-3.17.0/mujoco/experimental/studio/web/web_client_remote_ui.h +0 -181
- mujoco-3.17.0/mujoco/experimental/studio/web/web_client_remote_ui_test.cc +0 -556
- mujoco-3.17.0/mujoco/experimental/studio/web/web_client_session.cc +0 -320
- mujoco-3.17.0/mujoco/experimental/studio/web/web_client_session.h +0 -259
- mujoco-3.17.0/mujoco/experimental/studio/web/web_server.py +0 -1221
- mujoco-3.17.0/mujoco/experimental/studio/web_viewer.py +0 -416
- mujoco-3.17.0/mujoco/experimental/studio/window.cc +0 -131
- mujoco-3.17.0/mujoco/function_traits.h +0 -6012
- mujoco-3.17.0/mujoco/functions.cc +0 -1928
- mujoco-3.17.0/mujoco/functions.h +0 -214
- mujoco-3.17.0/mujoco/gil.h +0 -62
- mujoco-3.17.0/mujoco/gil_test.py +0 -35
- mujoco-3.17.0/mujoco/gl_context.py +0 -21
- mujoco-3.17.0/mujoco/glfw/__init__.py +0 -41
- mujoco-3.17.0/mujoco/indexer_xmacro.h +0 -448
- mujoco-3.17.0/mujoco/indexers.cc +0 -465
- mujoco-3.17.0/mujoco/indexers.h +0 -238
- mujoco-3.17.0/mujoco/introspect/__init__.py +0 -14
- mujoco-3.17.0/mujoco/introspect/ast_nodes.py +0 -307
- mujoco-3.17.0/mujoco/introspect/ast_nodes_test.py +0 -202
- mujoco-3.17.0/mujoco/introspect/codegen/ast_processor.py +0 -369
- mujoco-3.17.0/mujoco/introspect/codegen/formatter.py +0 -149
- mujoco-3.17.0/mujoco/introspect/codegen/generate.py +0 -151
- mujoco-3.17.0/mujoco/introspect/enums.py +0 -1194
- mujoco-3.17.0/mujoco/introspect/enums_test.py +0 -70
- mujoco-3.17.0/mujoco/introspect/functions.py +0 -13395
- mujoco-3.17.0/mujoco/introspect/functions_test.py +0 -68
- mujoco-3.17.0/mujoco/introspect/mjxmacro.py +0 -43
- mujoco-3.17.0/mujoco/introspect/structs.py +0 -12745
- mujoco-3.17.0/mujoco/introspect/structs_test.py +0 -129
- mujoco-3.17.0/mujoco/introspect/type_parsing.py +0 -154
- mujoco-3.17.0/mujoco/introspect/type_parsing_test.py +0 -58
- mujoco-3.17.0/mujoco/memory_leak_test.py +0 -70
- mujoco-3.17.0/mujoco/minimize.py +0 -619
- mujoco-3.17.0/mujoco/minimize_test.py +0 -570
- mujoco-3.17.0/mujoco/mjpython/Info.plist +0 -34
- mujoco-3.17.0/mujoco/mjpython/mjpython.icns +0 -0
- mujoco-3.17.0/mujoco/mjpython/mjpython.mm +0 -388
- mujoco-3.17.0/mujoco/mjpython/mjpython.py +0 -100
- mujoco-3.17.0/mujoco/mjrf.py +0 -17
- mujoco-3.17.0/mujoco/msh2obj.py +0 -118
- mujoco-3.17.0/mujoco/msh2obj_test.py +0 -140
- mujoco-3.17.0/mujoco/osmesa/__init__.py +0 -81
- mujoco-3.17.0/mujoco/private.h +0 -33
- mujoco-3.17.0/mujoco/raw.h +0 -98
- mujoco-3.17.0/mujoco/render.cc +0 -323
- mujoco-3.17.0/mujoco/render_filament.cc +0 -513
- mujoco-3.17.0/mujoco/render_filament.h +0 -93
- mujoco-3.17.0/mujoco/render_filament_generated.cc.inc +0 -881
- mujoco-3.17.0/mujoco/render_test.py +0 -316
- mujoco-3.17.0/mujoco/renderer.py +0 -21
- mujoco-3.17.0/mujoco/renderer_test.py +0 -269
- mujoco-3.17.0/mujoco/rendering/__init__.py +0 -17
- mujoco-3.17.0/mujoco/rendering/classic/__init__.py +0 -16
- mujoco-3.17.0/mujoco/rendering/classic/gl_context.py +0 -56
- mujoco-3.17.0/mujoco/rendering/classic/renderer.py +0 -349
- mujoco-3.17.0/mujoco/rendering/filament/__init__.py +0 -25
- mujoco-3.17.0/mujoco/rendering/filament/model_scene.py +0 -58
- mujoco-3.17.0/mujoco/rendering/filament/renderer.py +0 -254
- mujoco-3.17.0/mujoco/rollout.cc +0 -369
- mujoco-3.17.0/mujoco/rollout.py +0 -433
- mujoco-3.17.0/mujoco/rollout_test.py +0 -1016
- mujoco-3.17.0/mujoco/serialization.h +0 -78
- mujoco-3.17.0/mujoco/simulate/CMakeLists.txt +0 -269
- mujoco-3.17.0/mujoco/simulate/array_safety.h +0 -105
- mujoco-3.17.0/mujoco/simulate/cmake/CheckAvxSupport.cmake +0 -56
- mujoco-3.17.0/mujoco/simulate/cmake/FindOrFetch.cmake +0 -233
- mujoco-3.17.0/mujoco/simulate/cmake/MujocoHarden.cmake +0 -35
- mujoco-3.17.0/mujoco/simulate/cmake/MujocoLinkOptions.cmake +0 -64
- mujoco-3.17.0/mujoco/simulate/cmake/MujocoMacOS.cmake +0 -41
- mujoco-3.17.0/mujoco/simulate/cmake/SimulateDependencies.cmake +0 -109
- mujoco-3.17.0/mujoco/simulate/cmake/SimulateOptions.cmake +0 -132
- mujoco-3.17.0/mujoco/simulate/glfw_adapter.cc +0 -273
- mujoco-3.17.0/mujoco/simulate/glfw_adapter.h +0 -78
- mujoco-3.17.0/mujoco/simulate/glfw_corevideo.h +0 -57
- mujoco-3.17.0/mujoco/simulate/glfw_corevideo.mm +0 -71
- mujoco-3.17.0/mujoco/simulate/glfw_dispatch.cc +0 -131
- mujoco-3.17.0/mujoco/simulate/glfw_dispatch.h +0 -81
- mujoco-3.17.0/mujoco/simulate/macos_gui.mm +0 -44
- mujoco-3.17.0/mujoco/simulate/main.cc +0 -548
- mujoco-3.17.0/mujoco/simulate/platform_ui_adapter.cc +0 -229
- mujoco-3.17.0/mujoco/simulate/platform_ui_adapter.h +0 -101
- mujoco-3.17.0/mujoco/simulate/simulate.cc +0 -3226
- mujoco-3.17.0/mujoco/simulate/simulate.h +0 -396
- mujoco-3.17.0/mujoco/simulate.cc +0 -468
- mujoco-3.17.0/mujoco/specs.cc +0 -2071
- mujoco-3.17.0/mujoco/specs.cc.inc +0 -9022
- mujoco-3.17.0/mujoco/specs_test.py +0 -2921
- mujoco-3.17.0/mujoco/specs_wrapper.cc +0 -204
- mujoco-3.17.0/mujoco/specs_wrapper.h +0 -131
- mujoco-3.17.0/mujoco/structs.cc +0 -1570
- mujoco-3.17.0/mujoco/structs.h +0 -1328
- mujoco-3.17.0/mujoco/structs_wrappers.cc +0 -1461
- mujoco-3.17.0/mujoco/sysid/__init__.py +0 -62
- mujoco-3.17.0/mujoco/sysid/_src/__init__.py +0 -15
- mujoco-3.17.0/mujoco/sysid/_src/io.py +0 -81
- mujoco-3.17.0/mujoco/sysid/_src/model_modifier.py +0 -598
- mujoco-3.17.0/mujoco/sysid/_src/optimize.py +0 -363
- mujoco-3.17.0/mujoco/sysid/_src/parameter.py +0 -700
- mujoco-3.17.0/mujoco/sysid/_src/plotting.py +0 -114
- mujoco-3.17.0/mujoco/sysid/_src/residual.py +0 -449
- mujoco-3.17.0/mujoco/sysid/_src/signal_modifier.py +0 -325
- mujoco-3.17.0/mujoco/sysid/_src/signal_transform.py +0 -301
- mujoco-3.17.0/mujoco/sysid/_src/timeseries.py +0 -816
- mujoco-3.17.0/mujoco/sysid/_src/trajectory.py +0 -659
- mujoco-3.17.0/mujoco/sysid/py.typed +0 -0
- mujoco-3.17.0/mujoco/sysid/report/builder.py +0 -122
- mujoco-3.17.0/mujoco/sysid/report/defaults.py +0 -291
- mujoco-3.17.0/mujoco/sysid/report/sections/__init__.py +0 -15
- mujoco-3.17.0/mujoco/sysid/report/sections/base.py +0 -63
- mujoco-3.17.0/mujoco/sysid/report/sections/covariance.py +0 -177
- mujoco-3.17.0/mujoco/sysid/report/sections/group.py +0 -59
- mujoco-3.17.0/mujoco/sysid/report/sections/insights.py +0 -113
- mujoco-3.17.0/mujoco/sysid/report/sections/optimization_trace.py +0 -471
- mujoco-3.17.0/mujoco/sysid/report/sections/parameter_distribution.py +0 -428
- mujoco-3.17.0/mujoco/sysid/report/sections/parameters.py +0 -240
- mujoco-3.17.0/mujoco/sysid/report/sections/row.py +0 -63
- mujoco-3.17.0/mujoco/sysid/report/sections/signals.py +0 -231
- mujoco-3.17.0/mujoco/sysid/report/sections/video.py +0 -216
- mujoco-3.17.0/mujoco/sysid/report/templates/covariance.html +0 -204
- mujoco-3.17.0/mujoco/sysid/report/templates/group.html +0 -13
- mujoco-3.17.0/mujoco/sysid/report/templates/insights.html +0 -90
- mujoco-3.17.0/mujoco/sysid/report/templates/layout.html +0 -699
- mujoco-3.17.0/mujoco/sysid/report/templates/optimization_trace.html +0 -20
- mujoco-3.17.0/mujoco/sysid/report/templates/parameter_confidence.html +0 -3
- mujoco-3.17.0/mujoco/sysid/report/templates/parameters_table.html +0 -147
- mujoco-3.17.0/mujoco/sysid/report/templates/plot_generic.html +0 -8
- mujoco-3.17.0/mujoco/sysid/report/templates/row.html +0 -13
- mujoco-3.17.0/mujoco/sysid/report/templates/signals.html +0 -3
- mujoco-3.17.0/mujoco/sysid/report/templates/video.html +0 -11
- mujoco-3.17.0/mujoco/sysid/report/utils.py +0 -61
- mujoco-3.17.0/mujoco/sysid/tests/__init__.py +0 -15
- mujoco-3.17.0/mujoco/sysid/tests/conftest.py +0 -230
- mujoco-3.17.0/mujoco/sysid/tests/test_integration.py +0 -276
- mujoco-3.17.0/mujoco/sysid/tests/test_model_modifier.py +0 -131
- mujoco-3.17.0/mujoco/sysid/tests/test_parameter.py +0 -183
- mujoco-3.17.0/mujoco/sysid/tests/test_signal.py +0 -391
- mujoco-3.17.0/mujoco/sysid/tests/test_timeseries.py +0 -453
- mujoco-3.17.0/mujoco/sysid/tests/test_trajectory.py +0 -204
- mujoco-3.17.0/mujoco/testdata/MJCF_NoRoot.zip +0 -0
- mujoco-3.17.0/mujoco/testdata/MJCF_Root.zip +0 -0
- mujoco-3.17.0/mujoco/testdata/abdomen_1_body.msh +0 -0
- mujoco-3.17.0/mujoco/testdata/model.urdf +0 -4
- mujoco-3.17.0/mujoco/testdata/model.xml +0 -178
- mujoco-3.17.0/mujoco/testdata/msh.xml +0 -5
- mujoco-3.17.0/mujoco/testdata/simple_usd_preview_surface.usda +0 -81
- mujoco-3.17.0/mujoco/testdata/usd_golden.usda +0 -89
- mujoco-3.17.0/mujoco/thread_safety_test.py +0 -208
- mujoco-3.17.0/mujoco/threadpool.cc +0 -87
- mujoco-3.17.0/mujoco/threadpool.h +0 -80
- mujoco-3.17.0/mujoco/usd/camera.py +0 -54
- mujoco-3.17.0/mujoco/usd/demo.py +0 -96
- mujoco-3.17.0/mujoco/usd/exporter.py +0 -528
- mujoco-3.17.0/mujoco/usd/exporter_test.py +0 -74
- mujoco-3.17.0/mujoco/usd/lights.py +0 -82
- mujoco-3.17.0/mujoco/usd/objects.py +0 -551
- mujoco-3.17.0/mujoco/usd/shapes.py +0 -440
- mujoco-3.17.0/mujoco/usd/utils.py +0 -28
- mujoco-3.17.0/mujoco/util/CMakeLists.txt +0 -97
- mujoco-3.17.0/mujoco/util/array_traits.h +0 -140
- mujoco-3.17.0/mujoco/util/array_traits_test.cc +0 -95
- mujoco-3.17.0/mujoco/util/crossplatform.h +0 -71
- mujoco-3.17.0/mujoco/util/func_traits.h +0 -114
- mujoco-3.17.0/mujoco/util/func_traits_test.cc +0 -156
- mujoco-3.17.0/mujoco/util/func_wrap.h +0 -193
- mujoco-3.17.0/mujoco/util/func_wrap_test.cc +0 -102
- mujoco-3.17.0/mujoco/util/tuple_tools.h +0 -159
- mujoco-3.17.0/mujoco/util/tuple_tools_test.cc +0 -54
- mujoco-3.17.0/mujoco/vfs.h +0 -46
- mujoco-3.17.0/mujoco/vfs_test.py +0 -251
- mujoco-3.17.0/mujoco/viewer.py +0 -620
- mujoco-3.17.0/mujoco/viewer_test.py +0 -28
- mujoco-3.17.0/mujoco.egg-info/SOURCES.txt +0 -340
- mujoco-3.17.0/setup.py +0 -447
- {mujoco-3.17.0 → mujoco-4.0.0}/LICENSE +0 -0
- {mujoco-3.17.0 → mujoco-4.0.0}/LICENSES_THIRD_PARTY.md +0 -0
- {mujoco-3.17.0 → mujoco-4.0.0}/mujoco.egg-info/dependency_links.txt +0 -0
- {mujoco-3.17.0 → mujoco-4.0.0}/mujoco.egg-info/top_level.txt +0 -0
- {mujoco-3.17.0 → mujoco-4.0.0}/setup.cfg +0 -0
mujoco-4.0.0/MANIFEST.in
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
include LICENSE *.md
|
|
@@ -1,35 +1,33 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mujoco
|
|
3
|
-
Version:
|
|
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/
|
|
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/
|
|
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.
|
|
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
|
|
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
|
|
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
|
|
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
|
-
|
|
66
|
-
|
|
67
|
-
|
|
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
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
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
|
|
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.
|
|
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
|
+
[](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,
|
|
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
|
-
|
|
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.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
|
+
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
198
|
-
|
|
199
|
-
|
|
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
|
-
|
|
249
|
-
for
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
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
|
+
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/
|
|
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/
|
|
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.
|
|
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
|
|
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
|
|
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
|
|
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
|
-
|
|
66
|
-
|
|
67
|
-
|
|
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
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
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
|
|
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.
|
|
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 = "
|
|
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.
|
|
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"
|
|
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/
|
|
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/
|
|
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
|
-
)'''
|