Skip to content

Commit

Permalink
Update MuJoCo version to 2.3.3.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 517931617
Change-Id: I7c9960290f1b6e5d5f68a54df617a580f23c57e9
  • Loading branch information
nimrod-gileadi authored and copybara-github committed Mar 20, 2023
1 parent 8696247 commit 33a2ce7
Show file tree
Hide file tree
Showing 14 changed files with 27 additions and 27 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 2.3.2
VERSION 2.3.3
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 2,3,2,0
PRODUCTVERSION 2,3,2,0
FILEVERSION 2,3,3,0
PRODUCTVERSION 2,3,3,0
FILEOS 0x4
FILETYPE 0x1
{
Expand All @@ -9,9 +9,9 @@ FILETYPE 0x1
BLOCK "040904b0"
{
VALUE "ProductName", "MuJoCo"
VALUE "ProductVersion", "2.3.2"
VALUE "ProductVersion", "2.3.3"
VALUE "FileDescription", "MuJoCo"
VALUE "FileVersion", "2.3.2"
VALUE "FileVersion", "2.3.3"
VALUE "InternalName", "mujoco.dll"
VALUE "OriginalFilename", "mujoco.dll"
VALUE "CompanyName", "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 2,3,2,0
PRODUCTVERSION 2,3,2,0
FILEVERSION 2,3,3,0
PRODUCTVERSION 2,3,3,0
FILEOS 0x4
FILETYPE 0x1
{
Expand All @@ -11,9 +11,9 @@ FILETYPE 0x1
BLOCK "040904b0"
{
VALUE "ProductName", "MuJoCo"
VALUE "ProductVersion", "2.3.2"
VALUE "ProductVersion", "2.3.3"
VALUE "FileDescription", "MuJoCo"
VALUE "FileVersion", "2.3.2"
VALUE "FileVersion", "2.3.3"
VALUE "InternalName", "simulate.exe"
VALUE "OriginalFilename", "simulate.exe"
VALUE "CompanyName", "DeepMind"
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.2.3.2.dylib`` (it can be
``/Applications/MuJoCo.app/Contents/Frameworks/mujoco.framework/Versions/Current/libmujoco.2.3.3.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-2.3.2/lib/libmujoco.so.2.3.2`` and rename it as ``libmujoco.so``.
``~/.mujoco/mujoco-2.3.3/lib/libmujoco.so.2.3.3`` 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 @@ -24,7 +24,7 @@ extern "C" {
#endif

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

// needed to define size_t, fabs and log10
#include <stdlib.h>
Expand Down
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.2.3.2.dylib
${MUJOCO_FRAMEWORK}/mujoco.framework/Versions/A/libmujoco.2.3.3.dylib
)
target_compile_options(mujoco INTERFACE -F${MUJOCO_FRAMEWORK})
endif()
endif()

if(NOT MUJOCO_FRAMEWORK)
find_library(
MUJOCO_LIBRARY mujoco mujoco.2.3.2 HINTS ${MUJOCO_LIBRARY_DIR} REQUIRED
MUJOCO_LIBRARY mujoco mujoco.2.3.3 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>2.3.2</string>
<string>2.3.3</string>
<key>CFBundleGetInfoString</key>
<string>2.3.2</string>
<string>2.3.3</string>
<key>CFBundleLongVersionString</key>
<string>2.3.2</string>
<string>2.3.3</string>
<key>CFBundleShortVersionString</key>
<string>2.3.2</string>
<string>2.3.3</string>
<key>CFBundleExecutable</key>
<string>mjpython</string>
<key>CFBundleIconFile</key>
Expand Down
2 changes: 1 addition & 1 deletion python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
from setuptools.command import build_ext
from setuptools.command import install_scripts

__version__ = '2.3.2'
__version__ = '2.3.3'

MUJOCO_CMAKE = 'MUJOCO_CMAKE'
MUJOCO_CMAKE_ARGS = 'MUJOCO_CMAKE_ARGS'
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 2.3.2
VERSION 2.3.3
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 2.3.2
VERSION 2.3.3
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 @@ -36,8 +36,8 @@
#endif
#endif

#define mjVERSION 232
#define mjVERSIONSTRING "2.3.2"
#define mjVERSION 233
#define mjVERSIONSTRING "2.3.3"

// 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.2.3.2.dylib",
"/mujoco.framework/Versions/Current/libmujoco.2.3.3.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-2.3.2/lib/libmujoco.so.2.3.2",
"/.mujoco/mujoco-2.3.3/lib/libmujoco.so.2.3.3",
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 @@ -101,7 +101,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 = 232;
public const int mjVERSION_HEADER = 233;


// ------------------------------------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": "2.3.2",
"version": "2.3.3",
"description": "MuJoCo importer and runtime plug-in",
"dependencies": {},
"author": {
Expand Down

0 comments on commit 33a2ce7

Please sign in to comment.