Skip to content

Commit

Permalink
Bump version number to 2.2.1.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 461471944
Change-Id: Ia752d992fabdc57b822bc30b01030c19162917ac
  • Loading branch information
saran-t authored and copybara-github committed Jul 17, 2022
1 parent 1392843 commit 373cc89
Show file tree
Hide file tree
Showing 12 changed files with 22 additions and 18 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.2.0
VERSION 2.2.1
DESCRIPTION "MuJoCo Physics Simulator"
HOMEPAGE_URL "https://mujoco.org"
)
Expand Down
10 changes: 7 additions & 3 deletions doc/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,18 @@
Changelog
=========

Upcoming version (not yet released)
-----------------------------------
.. Upcoming version (not yet released)
.. -----------------------------------
Version 2.2.1 (July 18, 2022)
-----------------------------

General
^^^^^^^

- Added ``mjd_transitionFD`` to compute efficient finite difference approximations of the state-transition and
control-transition matrices, :ref:`see here<derivatives>` for more details.
- Added derivatives for the ellipsoid fluid model.
- Added ``ctrl`` attribute to :ref:`keyframes<keyframe>`.
- Added ``clock`` sensor which :ref:`measures time<sensor-clock>`.
- Added visualisation groups to skins.
Expand All @@ -23,7 +27,7 @@ General
- Add memory poisoning when building with Address Sanitizer (ASAN) and Memory Sanitizer (MSAN). This allows ASAN to
detect reads and writes to regions in ``mjModel.buffer`` and ``mjData.buffer`` that do not lie within an array, and
for MSAN to detect reads from uninitialised fields in ``mjData`` following ``mj_resetData``.

- Add a `slider-crank example <https://github.com/deepmind/mujoco/tree/2.2.1/model/slider_crank>`_ to ``model/``.

Bug fixes
^^^^^^^^^
Expand Down
4 changes: 2 additions & 2 deletions doc/unity.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,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.2.0.dylib`` (it can be
``/Applications/MuJoCo.app/Contents/Frameworks/mujoco.framework/Versions/Current/libmujoco.2.2.1.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.2.0/lib/libmujoco.so.2.2.0`` and rename it as ``libmujoco.so``.
``~/.mujoco/mujoco-2.2.1/lib/libmujoco.so.2.2.1`` 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 220
#define mjVERSION_HEADER 221

// 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 @@ -75,13 +75,13 @@ if(NOT TARGET mujoco)
find_path(MUJOCO_FRAMEWORK mujoco.Framework HINTS ${MUJOCO_FRAMEWORK_DIR})
if(MUJOCO_FRAMEWORK)
message("MuJoCo framework is at ${MUJOCO_FRAMEWORK}/mujoco.framework")
set(MUJOCO_LIBRARY ${MUJOCO_FRAMEWORK}/mujoco.framework/Versions/A/libmujoco.2.2.0.dylib)
set(MUJOCO_LIBRARY ${MUJOCO_FRAMEWORK}/mujoco.framework/Versions/A/libmujoco.2.2.1.dylib)
target_compile_options(mujoco INTERFACE -F${MUJOCO_FRAMEWORK})
endif()
endif()

if(NOT MUJOCO_FRAMEWORK)
find_library(MUJOCO_LIBRARY mujoco mujoco.2.2.0 HINTS ${MUJOCO_LIBRARY_DIR} REQUIRED)
find_library(MUJOCO_LIBRARY mujoco mujoco.2.2.1 HINTS ${MUJOCO_LIBRARY_DIR} REQUIRED)
find_path(MUJOCO_INCLUDE mujoco/mujoco.h HINTS ${MUJOCO_INCLUDE_DIR} REQUIRED)
message("MuJoCo is at ${MUJOCO_LIBRARY}")
message("MuJoCo headers are at ${MUJOCO_INCLUDE}")
Expand Down
2 changes: 1 addition & 1 deletion python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
from setuptools import setup
from setuptools.command import build_ext

__version__ = '2.2.0'
__version__ = '2.2.1'

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.2.0
VERSION 2.2.1
DESCRIPTION "MuJoCo samples 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 @@ -35,8 +35,8 @@
#endif
#endif

#define mjVERSION 220
#define mjVERSIONSTRING "2.2.0"
#define mjVERSION 221
#define mjVERSIONSTRING "2.2.1"

// names of disable flags
const char* mjDISABLESTRING[mjNDISABLE] = {
Expand Down
2 changes: 1 addition & 1 deletion test/engine/engine_support_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace {

using VersionTest = MujocoTest;

const char *const kExpectedVersionString = "2.2.0";
const char *const kExpectedVersionString = "2.2.1";

TEST_F(VersionTest, MjVersion) {
EXPECT_EQ(mj_version(), mjVERSION_HEADER);
Expand Down
4 changes: 2 additions & 2 deletions unity/Runtime/Bindings/MujocoBinaryRetriever.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ static void RegisteredPackagesEventHandler(
if (AssetDatabase.LoadMainAssetAtPath(mujocoPath + "/mujoco.dylib") == null) {
File.Copy(
"/Applications/MuJoCo.app/Contents/Frameworks" +
"/mujoco.framework/Versions/Current/libmujoco.2.2.0.dylib",
"/mujoco.framework/Versions/Current/libmujoco.2.2.1.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.2.0/lib/libmujoco.so.2.2.0",
"/.mujoco/mujoco-2.2.1/lib/libmujoco.so.2.2.1",
mujocoPath + "/libmujoco.so");
AssetDatabase.Refresh();
}
Expand Down
2 changes: 1 addition & 1 deletion unity/Runtime/Bindings/MujocoBindings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,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 = 220;
public const int mjVERSION_HEADER = 221;


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

0 comments on commit 373cc89

Please sign in to comment.