Skip to content

Commit

Permalink
Update the MuJoCo version number ahead of the 3.2.0 release.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 652578624
Change-Id: I8ed6f66ff1247ff7421e3ed0521cf15e1c0b6c79
  • Loading branch information
Gabe Oppenheimer authored and copybara-github committed Jul 15, 2024
1 parent cb4cb7d commit 22ce22a
Show file tree
Hide file tree
Showing 16 changed files with 34 additions and 34 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ set(MSVC_INCREMENTAL_DEFAULT ON)

project(
mujoco
VERSION 3.1.7
VERSION 3.2.0
DESCRIPTION "MuJoCo Physics Simulator"
HOMEPAGE_URL "https://mujoco.org"
)
Expand Down
8 changes: 4 additions & 4 deletions dist/mujoco.rc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
1 VERSIONINFO
FILEVERSION 3,1,7,0
PRODUCTVERSION 3,1,7,0
FILEVERSION 3,2,0,0
PRODUCTVERSION 3,2,0,0
FILEOS 0x4
FILETYPE 0x1
{
Expand All @@ -9,9 +9,9 @@ FILETYPE 0x1
BLOCK "040904b0"
{
VALUE "ProductName", "MuJoCo"
VALUE "ProductVersion", "3.1.7"
VALUE "ProductVersion", "3.2.0"
VALUE "FileDescription", "MuJoCo"
VALUE "FileVersion", "3.1.7"
VALUE "FileVersion", "3.2.0"
VALUE "InternalName", "mujoco.dll"
VALUE "OriginalFilename", "mujoco.dll"
VALUE "CompanyName", "Google DeepMind"
Expand Down
8 changes: 4 additions & 4 deletions dist/simulate.rc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
MUJOCO ICON "mujoco.ico"

1 VERSIONINFO
FILEVERSION 3,1,7,0
PRODUCTVERSION 3,1,7,0
FILEVERSION 3,2,0,0
PRODUCTVERSION 3,2,0,0
FILEOS 0x4
FILETYPE 0x1
{
Expand All @@ -11,9 +11,9 @@ FILETYPE 0x1
BLOCK "040904b0"
{
VALUE "ProductName", "MuJoCo"
VALUE "ProductVersion", "3.1.7"
VALUE "ProductVersion", "3.2.0"
VALUE "FileDescription", "MuJoCo"
VALUE "FileVersion", "3.1.7"
VALUE "FileVersion", "3.2.0"
VALUE "InternalName", "simulate.exe"
VALUE "OriginalFilename", "simulate.exe"
VALUE "CompanyName", "Google DeepMind"
Expand Down
2 changes: 1 addition & 1 deletion doc/APIreference/APIglobals.rst
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ shown in the table below. Their names are in the format ``mjKEY_XXX``. They corr
- Maximum number of UI rectangles.
Defined in `mjui.h <https://github.com/google-deepmind/mujoco/blob/main/include/mujoco/mjui.h>`_.
* - ``mjVERSION_HEADER``
- 317
- 320
- The version of the MuJoCo headers; changes with every release. This is an integer equal to 100x the software
version, so 210 corresponds to version 2.1. Defined in mujoco.h. The API function :ref:`mj_version` returns a
number with the same meaning but for the compiled library.
Expand Down
4 changes: 2 additions & 2 deletions doc/unity.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ _____

The MuJoCo app needs to be run at least once before the native library can be used, in order to register the library as
a trusted binary. Then, copy the dynamic library file from
``/Applications/MuJoCo.app/Contents/Frameworks/mujoco.framework/Versions/Current/libmujoco.3.1.7.dylib`` (it can be
``/Applications/MuJoCo.app/Contents/Frameworks/mujoco.framework/Versions/Current/libmujoco.3.2.0.dylib`` (it can be
found by browsing the contents of ``MuJoCo.app``) and rename it as ``mujoco.dylib``.

Linux
_____

Expand the ``tar.gz`` archive to ``~/.mujoco``. Then copy the dynamic library from
``~/.mujoco/mujoco-3.1.7/lib/libmujoco.so.3.1.7`` and rename it as ``libmujoco.so``.
``~/.mujoco/mujoco-3.2.0/lib/libmujoco.so.3.2.0`` and rename it as ``libmujoco.so``.

Windows
_______
Expand Down
2 changes: 1 addition & 1 deletion include/mujoco/mujoco.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#define MUJOCO_MUJOCO_H_

// header version; should match the library version as returned by mj_version()
#define mjVERSION_HEADER 317
#define mjVERSION_HEADER 320

// needed to define size_t, fabs and log10
#include <stdlib.h>
Expand Down
8 changes: 4 additions & 4 deletions mjx/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name="mujoco-mjx"
version = "3.1.7"
version = "3.2.0"
authors = [
{name = "Google DeepMind", email = "[email protected]"},
]
Expand All @@ -31,7 +31,7 @@ dependencies = [
"etils[epath]",
"jax",
"jaxlib",
"mujoco>=3.1.7.dev0",
"mujoco>=3.2.0.dev0",
"scipy",
"trimesh",
]
Expand All @@ -42,6 +42,6 @@ mjx-viewer = "mujoco.mjx.viewer:main"

[project.urls]
Homepage = "https://github.com/google-deepmind/mujoco/tree/main/mjx"
Documentation = "https://mujoco.readthedocs.io/en/3.1.7"
Documentation = "https://mujoco.readthedocs.io/en/3.2.0"
Repository = "https://github.com/google-deepmind/mujoco/tree/main/mjx"
Changelog = "https://mujoco.readthedocs.io/en/3.1.7/changelog.html"
Changelog = "https://mujoco.readthedocs.io/en/3.2.0/changelog.html"
4 changes: 2 additions & 2 deletions python/mujoco/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,15 @@ if(NOT TARGET mujoco)
if(MUJOCO_FRAMEWORK)
message("MuJoCo framework is at ${MUJOCO_FRAMEWORK}/mujoco.framework")
set(MUJOCO_LIBRARY
${MUJOCO_FRAMEWORK}/mujoco.framework/Versions/A/libmujoco.3.1.7.dylib
${MUJOCO_FRAMEWORK}/mujoco.framework/Versions/A/libmujoco.3.2.0.dylib
)
target_compile_options(mujoco INTERFACE -F${MUJOCO_FRAMEWORK})
endif()
endif()

if(NOT MUJOCO_FRAMEWORK)
find_library(
MUJOCO_LIBRARY mujoco mujoco.3.1.7 HINTS ${MUJOCO_LIBRARY_DIR} REQUIRED
MUJOCO_LIBRARY mujoco mujoco.3.2.0 HINTS ${MUJOCO_LIBRARY_DIR} REQUIRED
)
find_path(MUJOCO_INCLUDE mujoco/mujoco.h HINTS ${MUJOCO_INCLUDE_DIR} REQUIRED)
message("MuJoCo is at ${MUJOCO_LIBRARY}")
Expand Down
8 changes: 4 additions & 4 deletions python/mujoco/mjpython/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
<key>CFBundleIdentifier</key>
<string>org.mujoco.mjpython</string>
<key>CFBundleVersion</key>
<string>3.1.7</string>
<string>3.2.0</string>
<key>CFBundleGetInfoString</key>
<string>3.1.7</string>
<string>3.2.0</string>
<key>CFBundleLongVersionString</key>
<string>3.1.7</string>
<string>3.2.0</string>
<key>CFBundleShortVersionString</key>
<string>3.1.7</string>
<string>3.2.0</string>
<key>CFBundleExecutable</key>
<string>mjpython</string>
<key>CFBundleIconFile</key>
Expand Down
6 changes: 3 additions & 3 deletions python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "mujoco"
version = "3.1.7"
version = "3.2.0"
authors = [
{name = "Google DeepMind", email = "[email protected]"},
]
Expand Down Expand Up @@ -36,9 +36,9 @@ dynamic = ["readme", "scripts"]

[project.urls]
Homepage = "https://github.com/google-deepmind/mujoco"
Documentation = "https://mujoco.readthedocs.io/en/3.1.7"
Documentation = "https://mujoco.readthedocs.io/en/3.2.0"
Repository = "https://github.com/google-deepmind/mujoco"
Changelog = "https://mujoco.readthedocs.io/en/3.1.7/changelog.html"
Changelog = "https://mujoco.readthedocs.io/en/3.2.0/changelog.html"

[tool.setuptools]
include-package-data = false
Expand Down
2 changes: 1 addition & 1 deletion sample/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ set(MSVC_INCREMENTAL_DEFAULT ON)

project(
mujoco_samples
VERSION 3.1.7
VERSION 3.2.0
DESCRIPTION "MuJoCo samples binaries"
HOMEPAGE_URL "https://mujoco.org"
)
Expand Down
2 changes: 1 addition & 1 deletion simulate/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ set(MUJOCO_DEP_VERSION_lodepng

project(
mujoco_simulate
VERSION 3.1.7
VERSION 3.2.0
DESCRIPTION "MuJoCo simulate binaries"
HOMEPAGE_URL "https://mujoco.org"
)
Expand Down
4 changes: 2 additions & 2 deletions src/engine/engine_support.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@

//-------------------------- Constants -------------------------------------------------------------

#define mjVERSION 317
#define mjVERSIONSTRING "3.1.7"
#define mjVERSION 320
#define mjVERSIONSTRING "3.2.0"

// names of disable flags
const char* mjDISABLESTRING[mjNDISABLE] = {
Expand Down
4 changes: 2 additions & 2 deletions unity/Editor/Bindings/MujocoBinaryRetriever.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ static void RegisteredPackagesEventHandler(
if (AssetDatabase.LoadMainAssetAtPath(mujocoPath + "/mujoco.dylib") == null) {
File.Copy(
"/Applications/MuJoCo.app/Contents/Frameworks" +
"/mujoco.framework/Versions/Current/libmujoco.3.1.7.dylib",
"/mujoco.framework/Versions/Current/libmujoco.3.2.0.dylib",
mujocoPath + "/mujoco.dylib");
AssetDatabase.Refresh();
}
} else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) {
if (AssetDatabase.LoadMainAssetAtPath(mujocoPath + "/libmujoco.so") == null) {
File.Copy(
Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) +
"/.mujoco/mujoco-3.1.7/lib/libmujoco.so.3.1.7",
"/.mujoco/mujoco-3.2.0/lib/libmujoco.so.3.2.0",
mujocoPath + "/libmujoco.so");
AssetDatabase.Refresh();
}
Expand Down
2 changes: 1 addition & 1 deletion unity/Runtime/Bindings/MjBindings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public static class MujocoLib {
public const int mjMAXPLANEGRID = 200;
public const bool THIRD_PARTY_MUJOCO_MJXMACRO_H_ = true;
public const bool THIRD_PARTY_MUJOCO_MUJOCO_H_ = true;
public const int mjVERSION_HEADER = 317;
public const int mjVERSION_HEADER = 320;


// ------------------------------------Enums------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion unity/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "org.mujoco",
"displayName": "MuJoCo",
"version": "3.1.7",
"version": "3.2.0",
"description": "MuJoCo importer and runtime plug-in",
"dependencies": {},
"author": {
Expand Down

0 comments on commit 22ce22a

Please sign in to comment.