From 27007e8b73a54123086167dad61c6aedfa2d3594 Mon Sep 17 00:00:00 2001 From: CoolSpy3 Date: Sat, 11 Jan 2025 23:23:36 -0800 Subject: [PATCH 1/2] add missing MATLAB functions --- lib/controller/matlab/.gitignore | 2 ++ src/controller/matlab/mgenerate.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/lib/controller/matlab/.gitignore b/lib/controller/matlab/.gitignore index 00613a243dd..6aa7d6faab7 100644 --- a/lib/controller/matlab/.gitignore +++ b/lib/controller/matlab/.gitignore @@ -363,6 +363,8 @@ wbu_motion_set_time.m wbu_motion_stop.m wbu_system_getenv.m wbu_system_short_path.m +wbu_system_tmpdir.m +wbu_system_webots_instance_path.m WB_STDOUT.m WB_STDERR.m WB_CHANNEL_BROADCAST.m diff --git a/src/controller/matlab/mgenerate.py b/src/controller/matlab/mgenerate.py index 4d2a94f9a54..50336c90f85 100755 --- a/src/controller/matlab/mgenerate.py +++ b/src/controller/matlab/mgenerate.py @@ -610,6 +610,8 @@ def main(args=None): # utils/system.h generator.gen(FUNC, "wbu_system_getenv(variable)") generator.gen(FUNC, "wbu_system_short_path(path)") + generator.gen(FUNC, "wbu_system_tmpdir()") + generator.gen(FUNC, "wbu_system_webots_instance_path(refresh)") # constants generator.gen_const("WB_STDOUT", "1") From fd13adb928369519edfc1165df9799e4cace63a3 Mon Sep 17 00:00:00 2001 From: CoolSpy3 Date: Sat, 11 Jan 2025 23:29:47 -0800 Subject: [PATCH 2/2] update changelog --- docs/reference/changelog-r2024.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/reference/changelog-r2024.md b/docs/reference/changelog-r2024.md index 39f328c1769..20420161395 100644 --- a/docs/reference/changelog-r2024.md +++ b/docs/reference/changelog-r2024.md @@ -8,6 +8,7 @@ Released on December **th, 2023. - Added the `indirectFieldAccess` tag to allow the `fields` variable to be used in proto templates without referencing a specific field ([#6614](https://github.com/cyberbotics/webots/pull/6614)). - Enhancements - Improved the image range of the rotating [Lidar](lidar.md) ([#6324](https://github.com/cyberbotics/webots/pull/6324)). + - Added implementations of `wbu_system_tmpdir` and `wbu_system_webots_instance_path` to the MATLAB API ([#6756](https://github.com/cyberbotics/webots/pull/6756)). - Cleanup - Removed deprecated `windowPosition`, `pixelSize` fields of [Display](display.md) node ([#6327](https://github.com/cyberbotics/webots/pull/6327)). - Bug Fixes