Skip to content

Commit f531fb5

Browse files
authored
Add Missing MATLAB Function Implementations (#6756)
* add missing MATLAB functions * update changelog * remove test exclusions for the new functions
1 parent 653dd4a commit f531fb5

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

docs/reference/changelog-r2025.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## Webots R2025b
44
- Enhancements
5+
- Added implementations of `wbu_system_tmpdir` and `wbu_system_webots_instance_path` to the MATLAB API ([#6756](https://github.com/cyberbotics/webots/pull/6756)).
56
- Added missing import libraries on Windows ([#6753](https://github.com/cyberbotics/webots/pull/6753)).
67
- Added some missing function definitions to the existing Windows libraries ([#6753](https://github.com/cyberbotics/webots/pull/6753)).
78
- Cleanup

lib/controller/matlab/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,8 @@ wbu_motion_set_time.m
371371
wbu_motion_stop.m
372372
wbu_system_getenv.m
373373
wbu_system_short_path.m
374+
wbu_system_tmpdir.m
375+
wbu_system_webots_instance_path.m
374376
WB_STDOUT.m
375377
WB_STDERR.m
376378
WB_CHANNEL_BROADCAST.m

src/controller/matlab/mgenerate.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,8 @@ def main(args=None):
618618
# utils/system.h
619619
generator.gen(FUNC, "wbu_system_getenv(variable)")
620620
generator.gen(FUNC, "wbu_system_short_path(path)")
621+
generator.gen(FUNC, "wbu_system_tmpdir()")
622+
generator.gen(FUNC, "wbu_system_webots_instance_path(refresh)")
621623

622624
# constants
623625
generator.gen_const("WB_STDOUT", "1")

tests/sources/test_matlab_functions.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,6 @@ def setUp(self):
6464

6565
'wb_device_get_type', # Deprecated since 8.0.0
6666
'wb_node_get_name', # C API Only
67-
68-
# Not Yet Implemented
69-
'wbu_system_tmpdir',
70-
'wbu_system_webots_instance_path',
7167
]
7268
self.functions = []
7369

0 commit comments

Comments
 (0)