diff --git a/CHANGELOG.md b/CHANGELOG.md
index a5d4aba4..050eea4a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,11 +5,15 @@ The format of this document is based on [Keep a Changelog](https://keepachangelo
## [Unreleased]
-## [5.4.1] - 2021-05-xx
+## [5.4.1] - 2021-05-28
+
+### Changed
+- The `WBToolboxLibrary.slx` file is now encoded in R2016b slx format, so at least MATLAB R2016b is required to use it.
### Fixed
- Fixed bug that caused Simulink models that used OSQP block to hang indefinitely in "Initializing" or "Compiling" phase (https://github.com/robotology/wb-toolbox/pull/220).
- Disable verbose output option in OSQP block (https://github.com/robotology/wb-toolbox/pull/220).
+- Fixed problem introduced in 5.4.0 that prevented the `WholeBodyToolbox` library to appear correctly in the Simulink library browser on some MATLAB versions and on some Operating Systems (spotted on MATLAB R2020b with Ubuntu 20.04) (https://github.com/robotology/wb-toolbox/issues/219, https://github.com/robotology/wb-toolbox/pull/220).
## [5.4.0] - 2021-05-24
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 02e7f66f..462298f9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -3,7 +3,7 @@
# GNU Lesser General Public License v2.1 or any later version.
cmake_minimum_required(VERSION 3.5)
-project(WB-Toolbox LANGUAGES CXX VERSION 5.4.0)
+project(WB-Toolbox LANGUAGES CXX VERSION 5.4.1)
if(WBT_BUILD_DOCS)
add_subdirectory(doc)
diff --git a/matlab/export_library.m b/matlab/export_library.m
index 2e36e218..756d27d3 100644
--- a/matlab/export_library.m
+++ b/matlab/export_library.m
@@ -2,12 +2,7 @@
% This software may be modified and distributed under the terms of the
% GNU Lesser General Public License v2.1 or any later version.
-fprintf('\nWhole Body toolbox exporting library to multiple versions\n');
-
-if (verLessThan('matlab', '8.4'))
- error('This script should be launched with a MATLAB version >= than 2014b');
- quit;
-end
+fprintf('\nWhole Body toolbox exporting library to old Simulink version\n');
addpath(genpath('library'));
libraryName = 'WBToolboxLibrary_repository';
@@ -26,8 +21,8 @@
% Export the library. It must be in slx otherwise it will not show up in
% the Simulink Library browser.
- fprintf('\nExporting for 2014b\n');
- save_system(libraryName, 'WBToolboxLibrary', 'ExportToVersion', 'R2014B_SLX');
+ fprintf('\nExporting for 2016b\n');
+ save_system(libraryName, 'WBToolboxLibrary', 'ExportToVersion', 'R2016B_SLX');
movefile('WBToolboxLibrary.slx', 'library/exported/WBToolboxLibrary.slx');
% Unload the library
diff --git a/matlab/library/WBToolboxLibrary_repository.mdl b/matlab/library/WBToolboxLibrary_repository.mdl
index 92a436b3..b529e284 100644
--- a/matlab/library/WBToolboxLibrary_repository.mdl
+++ b/matlab/library/WBToolboxLibrary_repository.mdl
@@ -1,13 +1,13 @@
Library {
Name "WBToolboxLibrary_repository"
- Version 10.3
+ Version 10.2
SavedCharacterEncoding "UTF-8"
- ModelUUID "ab3bc634-112e-4ce3-b3d3-90e66ca92abb"
+ ModelUUID "2df547a6-2710-4713-8771-1d8373118e68"
+ SLCCPlugin "on"
LogicAnalyzerPlugin "on"
+ DiagnosticSuppressor "on"
WebScopes_FoundationPlugin "on"
- SLCCPlugin "on"
slcheck_filter_plugin "on"
- DiagnosticSuppressor "on"
AnimationPlugin "on"
NotesPlugin "on"
LibraryType "BlockLibrary"
@@ -17,7 +17,7 @@ Library {
DisableAllScopes off
FPTRunName "Run 1"
MaxMDLFileLineLength 120
- LastSavedArchitecture "win64"
+ LastSavedArchitecture "glnxa64"
Object {
$PropName "BdWindowsInfo"
$ObjectID 1
@@ -27,7 +27,7 @@ Library {
$ObjectID 2
$ClassName "Simulink.WindowInfo"
IsActive [1]
- Location [-6.0, 0.0, 781.0, 830.0]
+ Location [0.0, 25.0, 1920.0, 1055.0]
Object {
$PropName "ModelBrowserInfo"
$ObjectID 3
@@ -54,10 +54,10 @@ Library {
IsTabbed [1]
ViewObjType "SimulinkTopLevel"
LoadSaveID "0"
- Extents [913.0, 744.0]
+ Extents [1882.0, 920.0]
ZoomFactor [2.0]
Offset [-51.647344237659695, -39.161038908920773]
- SceneRectInView [-51.647344237659695, -39.161038908920773, 365.2, 297.6]
+ SceneRectInView [-51.647344237659695, -39.161038908920773, 941.0, 460.0]
}
Object {
$ObjectID 6
@@ -68,7 +68,7 @@ Library {
Extents [913.0, 744.0]
ZoomFactor [2.0]
Offset [-184.68563869352414, -164.64890379313098]
- SceneRectInView [-184.68563869352414, -164.64890379313098, 365.2, 297.6]
+ SceneRectInView [-184.68563869352414, -164.64890379313098, 456.5, 372.0]
}
Object {
$ObjectID 7
@@ -78,8 +78,8 @@ Library {
LoadSaveID "192"
Extents [913.0, 744.0]
ZoomFactor [1.5]
- Offset [371.69049024359208, -20.02193304701251]
- SceneRectInView [371.69049024359208, -20.02193304701251, 486.93333333333334, 396.8]
+ Offset [371.69049024359214, -20.02193304701251]
+ SceneRectInView [371.69049024359214, -20.02193304701251, 608.66666666666663, 496.0]
}
Object {
$ObjectID 8
@@ -89,8 +89,8 @@ Library {
LoadSaveID "202"
Extents [1920.0, 1080.0]
ZoomFactor [2.4606371641733422]
- Offset [213.61276834817869, 99.508993480891093]
- SceneRectInView [213.61276834817869, 99.508993480891093, 624.2285625707126, 351.12856644602584]
+ Offset [213.61276834817869, 99.508993480891121]
+ SceneRectInView [213.61276834817869, 99.508993480891121, 780.28570321339078, 438.9107080575323]
}
Object {
$ObjectID 9
@@ -101,7 +101,7 @@ Library {
Extents [1920.0, 1080.0]
ZoomFactor [4.0]
Offset [235.1044081864668, 52.222402871604459]
- SceneRectInView [235.1044081864668, 52.222402871604459, 384.0, 216.0]
+ SceneRectInView [235.1044081864668, 52.222402871604459, 480.0, 270.0]
}
Object {
$ObjectID 10
@@ -112,7 +112,7 @@ Library {
Extents [1875.0, 754.0]
ZoomFactor [6.2999999999999989]
Offset [-19.500372023809547, -9.9920634920635081]
- SceneRectInView [-19.500372023809547, -9.9920634920635081, 238.09523809523816, 95.746031746031761]
+ SceneRectInView [-19.500372023809547, -9.9920634920635081, 297.61904761904765, 119.6825396825397]
}
Object {
$ObjectID 11
@@ -123,7 +123,7 @@ Library {
Extents [1875.0, 754.0]
ZoomFactor [5.95]
Offset [-20.290375525210067, -14.021008403361336]
- SceneRectInView [-20.290375525210067, -14.021008403361336, 252.10084033613447, 101.3781512605042]
+ SceneRectInView [-20.290375525210067, -14.021008403361336, 315.12605042016804, 126.72268907563024]
}
Object {
$ObjectID 12
@@ -134,7 +134,7 @@ Library {
Extents [1875.0, 754.0]
ZoomFactor [3.0]
Offset [201.78631633871396, 105.24564709323813]
- SceneRectInView [201.78631633871396, 105.24564709323813, 500.0, 201.06666666666666]
+ SceneRectInView [201.78631633871396, 105.24564709323813, 625.0, 251.33333333333334]
}
Object {
$ObjectID 13
@@ -145,7 +145,7 @@ Library {
Extents [1875.0, 754.0]
ZoomFactor [6.0]
Offset [252.44396551724139, 145.16666666666663]
- SceneRectInView [252.44396551724139, 145.16666666666663, 250.0, 100.53333333333333]
+ SceneRectInView [252.44396551724139, 145.16666666666663, 312.5, 125.66666666666667]
}
Object {
$ObjectID 14
@@ -156,7 +156,7 @@ Library {
Extents [1875.0, 754.0]
ZoomFactor [1.0]
Offset [-850.3318557824291, -279.74367685613072]
- SceneRectInView [-850.3318557824291, -279.74367685613072, 1500.0, 603.2]
+ SceneRectInView [-850.3318557824291, -279.74367685613072, 1875.0, 754.0]
}
PropName "EditorsInfo"
}
@@ -165,59 +165,60 @@ Library {
Dimension 2
Object {
$ObjectID 15
- Type "GLUE2:PropertyInspector"
- ID "Property Inspector"
+ Type "Simulink:Editor:ReferencedFiles"
+ ID "Referenced Files"
Visible [0]
CreateCallback ""
- UserData ""
+ UserData "{\"filterShowRefModels\":\"true\",\"filterShowRefSubs\":\"true\",\"filterShowOnlyDirtyFiles\":\"false\"}\n"
Floating [0]
- DockPosition "Right"
- Width [512]
- Height [384]
+ DockPosition "Left"
+ Width [640]
+ Height [480]
Minimized "Unset"
}
Object {
$ObjectID 16
- Type "Simulink:Editor:ReferencedFiles"
- ID "Referenced Files"
+ Type "GLUE2:PropertyInspector"
+ ID "Property Inspector"
Visible [0]
CreateCallback ""
- UserData "{\"filterShowRefModels\":\"true\",\"filterShowRefSubs\":\"true\",\"filterShowOnlyDirtyFiles\":\"false\"}\n"
+ UserData ""
Floating [0]
- DockPosition "Left"
- Width [512]
- Height [384]
+ DockPosition "Right"
+ Width [640]
+ Height [480]
Minimized "Unset"
}
PropName "DockComponentsInfo"
}
WindowState "AAAA/wAAAAD9AAAAAgAAAAAAAAC9AAAB+PwCAAAABPsAAAAWAEQAbwBjAGsAVwBpAGQAZwBlAHQAMwEAAAAxAAAB+AAAA"
"AAAAAAA+wAAABYARABvAGMAawBXAGkAZABnAGUAdAA0AAAAAAD/////AAAAAAAAAAD7AAAAUgBHAEwAVQBFADIAIAB0AHIAZQBlACAAYwBvAG0Ac"
- "ABvAG4AZQBuAHQALwBHAEwAVQBFADIAIAB0AHIAZQBlACAAYwBvAG0AcABvAG4AZQBuAHQAAAAAAP////8AAAB5AP////sAAABgAFMAaQBtAHUAb"
+ "ABvAG4AZQBuAHQALwBHAEwAVQBFADIAIAB0AHIAZQBlACAAYwBvAG0AcABvAG4AZQBuAHQAAAAAAP////8AAABiAP////sAAABgAFMAaQBtAHUAb"
"ABpAG4AawA6AEUAZABpAHQAbwByADoAUgBlAGYAZQByAGUAbgBjAGUAZABGAGkAbABlAHMALwBSAGUAZgBlAHIAZQBuAGMAZQBkACAARgBpAGwAZ"
- "QBzAAAAAAD/////AAAApwD///8AAAABAAAAAAAAAAD8AgAAAAH7AAAAVABHAEwAVQBFADIAOgBQAHIAbwBwAGUAcgB0AHkASQBuAHMAcABlAGMAd"
- "ABvAHIALwBQAHIAbwBwAGUAcgB0AHkAIABJAG4AcwBwAGUAYwB0AG8AcgAAAAAA/////wAAAhYA////AAADvgAAAy8AAAABAAAAAgAAAAEAAAAC/"
+ "QBzAAAAAAD/////AAAAiQD///8AAAABAAAAAAAAAAD8AgAAAAH7AAAAVABHAEwAVQBFADIAOgBQAHIAbwBwAGUAcgB0AHkASQBuAHMAcABlAGMAd"
+ "ABvAHIALwBQAHIAbwBwAGUAcgB0AHkAIABJAG4AcwBwAGUAYwB0AG8AcgAAAAAA/////wAAAawA////AAAHgAAAA9UAAAABAAAAAgAAAAEAAAAC/"
"AAAAAA="
Array {
Type "Cell"
Dimension 0
PropName "PersistedApps"
}
- WindowUuid "2367939c-8f2c-4934-945a-7bf0db2130e7"
+ WindowUuid "ad8aa86f-d4e0-4548-95bb-bd58dbd5e328"
}
- BDUuid "b1b9725e-2637-4af0-b0bd-a6b38f60ac9a"
+ BDUuid "feede281-d839-43c8-9bdf-7deb69870a90"
}
HideAutomaticNames on
SequenceViewerTimePrecision 3
SequenceViewerHistory 1000
Created "Thu Feb 06 02:21:39 2014"
Creator "jorhabib"
+ UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%
H2020 EU Project AnDy (No. 731540 H" "2020-ICT-2016-1) http://andy-project.eu