Skip to content

Commit 8480abe

Browse files
authored
Merge branch 'master' into sync-released-a2675711c
2 parents a267571 + f355c4d commit 8480abe

File tree

79 files changed

+851
-1828
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+851
-1828
lines changed

.github/workflows/test_suite_windows.yml

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
if: ${{ contains(github.event.pull_request.labels.*.name, 'test webots build') }}
2424
strategy:
2525
matrix:
26-
os: [windows-2019]
26+
os: [windows-2022]
2727
runs-on: ${{ matrix.os }}
2828
steps:
2929
- uses: msys2/setup-msys2@v2
@@ -46,7 +46,7 @@ jobs:
4646
if: ${{ github.event_name == 'push' || github.event_name == 'schedule' || contains(github.event.pull_request.labels.*.name, 'test distribution') || contains(github.event.pull_request.labels.*.name, 'test suite') }}
4747
strategy:
4848
matrix:
49-
os: [windows-2019]
49+
os: [windows-2022]
5050
runs-on: ${{ matrix.os }}
5151
steps:
5252
- uses: msys2/setup-msys2@v2
@@ -59,18 +59,15 @@ jobs:
5959
- uses: actions/setup-python@v4
6060
with:
6161
python-version: '3.11'
62-
- name: Install Visual Studio 10 and OpenJDK 18
62+
- name: Install OpenJDK 18
6363
shell: powershell
64-
run: |
65-
choco install -y openjdk --version=18.0.2
66-
choco install -y visualcpp-build-tools
64+
run: choco install -y openjdk --version=18.0.2
6765
- name: Install Webots Compilation Dependencies
6866
run: |
6967
export PYTHON_INSTALLATION_FOLDER=/C/hostedtoolcache/windows/Python
7068
export PYTHON_HOME=$PYTHON_INSTALLATION_FOLDER/3.11.`ls $PYTHON_INSTALLATION_FOLDER | grep '^3\.11\.[0-9]\+$' | cut -c6- | sort -n | tail -n1`/x64
7169
echo 'export JAVA_HOME=/C/Program\ Files/OpenJDK/`ls /C/Program\ Files/OpenJDK`' >> ~/.bash_profile
7270
echo 'export PYTHON_HOME='$PYTHON_HOME >> ~/.bash_profile
73-
echo 'export VISUAL_STUDIO_PATH="/C/Program Files (x86)/Microsoft Visual Studio/2017"' >> ~/.bash_profile
7471
echo 'export INNO_SETUP_HOME="/C/Program Files (x86)/Inno Setup 6"' >> ~/.bash_profile
7572
echo 'export PATH=$PYTHON_HOME:$PYTHON_HOME/Scripts:$GITHUB_WORKSPACE/msys64/mingw64/bin:$GITHUB_WORKSPACE/bin/node:/mingw64/bin:/usr/bin:$JAVA_HOME/bin:$PATH' >> ~/.bash_profile
7673
export WEBOTS_HOME=$GITHUB_WORKSPACE
@@ -98,7 +95,7 @@ jobs:
9895
if: ${{ contains(github.event.pull_request.labels.*.name, 'test suite') }}
9996
strategy:
10097
matrix:
101-
os: [windows-2019]
98+
os: [windows-2022]
10299
runs-on: ${{ matrix.os }}
103100
steps:
104101
- uses: actions/checkout@v3
@@ -110,18 +107,15 @@ jobs:
110107
- uses: msys2/setup-msys2@v2
111108
with:
112109
update: false
113-
- name: Install Visual Studio 10 and OpenJDK 18
110+
- name: Install OpenJDK 18
114111
shell: powershell
115-
run: |
116-
choco install -y openjdk --version=18.0.2
117-
choco install -y visualcpp-build-tools
112+
run: choco install -y openjdk --version=18.0.2
118113
- name: Install Webots Compilation Dependencies
119114
run: |
120115
export PYTHON_INSTALLATION_FOLDER=/C/hostedtoolcache/windows/Python
121116
export PYTHON_HOME=$PYTHON_INSTALLATION_FOLDER/3.11.`ls $PYTHON_INSTALLATION_FOLDER | grep '^3\.11\.[0-9]\+$' | cut -c6- | sort -n | tail -n1`/x64
122117
echo 'export JAVA_HOME=/C/Program\ Files/OpenJDK/`ls /C/Program\ Files/OpenJDK`' >> ~/.bash_profile
123118
echo 'export PYTHON_HOME='$PYTHON_HOME >> ~/.bash_profile
124-
echo 'export VISUAL_STUDIO_PATH="/C/Program Files (x86)/Microsoft Visual Studio/2017"' >> ~/.bash_profile
125119
echo 'export INNO_SETUP_HOME="/C/Program Files (x86)/Inno Setup 6"' >> ~/.bash_profile
126120
echo 'export PATH=$PYTHON_HOME:$PYTHON_HOME/Scripts:$GITHUB_WORKSPACE/msys64/mingw64/bin:$GITHUB_WORKSPACE/bin/node:/mingw64/bin:/usr/bin:$JAVA_HOME/bin:$PATH' >> ~/.bash_profile
127121
export WEBOTS_HOME=$GITHUB_WORKSPACE
@@ -160,7 +154,7 @@ jobs:
160154
if: ${{ always() && !contains(github.event.pull_request.labels.*.name, 'test distribution') && !contains(github.event.pull_request.labels.*.name, 'test webots build') }}
161155
strategy:
162156
matrix:
163-
os: [windows-2019]
157+
os: [windows-2022]
164158
runs-on: ubuntu-latest
165159
steps:
166160
- name: Delete artifacts

.github/workflows/test_suite_windows_develop.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
if: ${{ contains(github.event.pull_request.labels.*.name, 'test webots build') }}
1818
strategy:
1919
matrix:
20-
os: [windows-2019]
20+
os: [windows-2022]
2121
runs-on: ${{ matrix.os }}
2222
steps:
2323
- uses: msys2/setup-msys2@v2
@@ -41,7 +41,7 @@ jobs:
4141
if: ${{ github.event_name == 'push' || github.event_name == 'schedule' || contains(github.event.pull_request.labels.*.name, 'test distribution') || contains(github.event.pull_request.labels.*.name, 'test suite') }}
4242
strategy:
4343
matrix:
44-
os: [windows-2019]
44+
os: [windows-2022]
4545
runs-on: ${{ matrix.os }}
4646
steps:
4747
- uses: msys2/setup-msys2@v2
@@ -55,18 +55,15 @@ jobs:
5555
- uses: actions/setup-python@v4
5656
with:
5757
python-version: '3.11'
58-
- name: Install Visual Studio 10 and OpenJDK 18
58+
- name: Install OpenJDK 18
5959
shell: powershell
60-
run: |
61-
choco install -y openjdk --version=18.0.2
62-
choco install -y visualcpp-build-tools
60+
run: choco install -y openjdk --version=18.0.2
6361
- name: Install Webots Compilation Dependencies
6462
run: |
6563
export PYTHON_INSTALLATION_FOLDER=/C/hostedtoolcache/windows/Python
6664
export PYTHON_HOME=$PYTHON_INSTALLATION_FOLDER/3.11.`ls $PYTHON_INSTALLATION_FOLDER | grep '^3\.11\.[0-9]\+$' | cut -c6- | sort -n | tail -n1`/x64
6765
echo 'export JAVA_HOME=/C/Program\ Files/OpenJDK/`ls /C/Program\ Files/OpenJDK`' >> ~/.bash_profile
6866
echo 'export PYTHON_HOME='$PYTHON_HOME >> ~/.bash_profile
69-
echo 'export VISUAL_STUDIO_PATH="/C/Program Files (x86)/Microsoft Visual Studio/2017"' >> ~/.bash_profile
7067
echo 'export INNO_SETUP_HOME="/C/Program Files (x86)/Inno Setup 6"' >> ~/.bash_profile
7168
echo 'export PATH=$PYTHON_HOME:$PYTHON_HOME/Scripts:$GITHUB_WORKSPACE/msys64/mingw64/bin:$GITHUB_WORKSPACE/bin/node:/mingw64/bin:/usr/bin:$JAVA_HOME/bin:$PATH' >> ~/.bash_profile
7269
export WEBOTS_HOME=$GITHUB_WORKSPACE
@@ -94,7 +91,7 @@ jobs:
9491
if: ${{ always() && !contains(github.event.pull_request.labels.*.name, 'test distribution') && !contains(github.event.pull_request.labels.*.name, 'test webots build') }}
9592
strategy:
9693
matrix:
97-
os: [windows-2019]
94+
os: [windows-2022]
9895
runs-on: ubuntu-latest
9996
steps:
10097
- name: Delete artifacts

.github/workflows/tests_sources.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ jobs:
3434
strategy:
3535
fail-fast: false
3636
matrix:
37-
os: [ubuntu-22.04, macos-14, windows-2019]
37+
os: [ubuntu-22.04, macos-14, windows-2022]
3838
python: [3.9]
3939
include:
4040
- os: ubuntu-22.04
4141
DEPENDENCIES_INSTALLATION: "wget https://github.com/danmar/cppcheck/archive/refs/tags/2.14.2.tar.gz; tar -xf 2.14.2.tar.gz -C ~/; mkdir -p ~/cppcheck-2.14.2/build; cd ~/cppcheck-2.14.2/build; cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ..; cmake --build . --config RelWithDebInfo; export PATH=~/cppcheck-2.14.2/build/bin:$PATH"
4242
- os: macos-14
4343
DEPENDENCIES_INSTALLATION: "brew tap-new --no-git $USER/local-cppcheck; brew extract --version=2.14.2 cppcheck $USER/local-cppcheck; brew install [email protected]; brew tap-new --no-git $USER/local-clang-format; brew extract --version=14.0.0 clang-format $USER/local-clang-format; brew install [email protected]"
44-
- os: windows-2019
44+
- os: windows-2022
4545
DEPENDENCIES_INSTALLATION: "curl -LJO https://github.com/danmar/cppcheck/releases/download/2.14.1/cppcheck-2.14.1-x64-Setup.msi; powershell 'Start-Process msiexec -ArgumentList \"/quiet\",\"/passive\",\"/qn\",\"/i\",\"cppcheck-2.14.1-x64-Setup.msi\" -Wait'; choco uninstall -y llvm; choco install -y llvm --version=14.0.0; export PATH=$PATH:\"/c/Program Files/Cppcheck:/c/Program Files/LLVM/bin\""
4646
runs-on: ${{ matrix.os }}
4747
if: needs.job-skipper.outputs.should_skip != 'true'
@@ -52,7 +52,7 @@ jobs:
5252
echo "job_needed=true" >> "$GITHUB_OUTPUT"
5353
id: os_check
5454
- name: Set git to use LF
55-
if: matrix.os == 'windows-2019'
55+
if: matrix.os == 'windows-2022'
5656
run: |
5757
git config --global core.autocrlf false
5858
git config --global core.eol lf

.github/workflows/tests_sources_with_latest_cppcheck.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ jobs:
3030
strategy:
3131
fail-fast: false
3232
matrix:
33-
os: [ubuntu-22.04, macos-14, windows-2019]
33+
os: [ubuntu-22.04, macos-14, windows-2022]
3434
python: [3.9]
3535
include:
3636
- os: ubuntu-22.04
3737
DEPENDENCIES_INSTALLATION: "sudo apt -y install cppcheck"
3838
- os: macos-14
3939
DEPENDENCIES_INSTALLATION: "brew install cppcheck; brew tap-new --no-git $USER/local-clang-format; brew extract --version=14.0.0 clang-format $USER/local-clang-format; brew install [email protected]"
40-
- os: windows-2019
40+
- os: windows-2022
4141
DEPENDENCIES_INSTALLATION: "choco install -y cppcheck || true; choco uninstall -y llvm; choco install -y llvm --version=14.0.0; export PATH=$PATH:\"/c/Program Files/Cppcheck:/c/Program Files/LLVM/bin\""
4242
runs-on: ${{ matrix.os }}
4343
if: needs.job-skipper.outputs.should_skip != 'true'
@@ -48,7 +48,7 @@ jobs:
4848
echo "job_needed=true" >> "$GITHUB_OUTPUT"
4949
id: os_check
5050
- name: Set git to use LF
51-
if: matrix.os == 'windows-2019'
51+
if: matrix.os == 'windows-2022'
5252
run: |
5353
git config --global core.autocrlf false
5454
git config --global core.eol lf

docs/reference/changelog-r2025.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,25 @@
11
# Webots R2025 Change Log
22

3+
## Webots R2025b
4+
- Enhancements
5+
- `WbCamera`, `WbContactProperties`, `WbMotor`, and `WbSkin` will now locally-download their resources if-necessary (like other nodes) when steaming or exporting to `w3d` ([#6856](https://github.com/cyberbotics/webots/pull/6856)).
6+
- Added implementations of `wbu_system_tmpdir` and `wbu_system_webots_instance_path` to the MATLAB API ([#6756](https://github.com/cyberbotics/webots/pull/6756)).
7+
- Added missing import libraries on Windows ([#6753](https://github.com/cyberbotics/webots/pull/6753)).
8+
- Added some missing function definitions to the existing Windows libraries ([#6753](https://github.com/cyberbotics/webots/pull/6753)).
9+
- Cleanup
10+
- **Removed `libController.a` and `libCppController.a` libraries on Windows. Please use `Controller.lib` and `CppController.lib` instead ([#6753](https://github.com/cyberbotics/webots/pull/6753)).**
11+
- Bug Fixes
12+
- Fixed a bug preventing the `webots-controller` executable from running on arm-based mac devices ([#6806](https://github.com/cyberbotics/webots/pull/6806)).
13+
- Fixed a typo in the `controller.PositionSensor` Python class: the `motor` property code was calling the wrong method ([#6825](https://github.com/cyberbotics/webots/pull/6825)).
14+
- Fixed a bug causing Webots to crash when multiple sounds were used with a [Speaker](speaker.md) node ([#6843](https://github.com/cyberbotics/webots/pull/6843)).
15+
- Fixed a bug causing the "Reload/Reset" buttons in the controller recompilation popup to not work on Windows ([#6844](https://github.com/cyberbotics/webots/pull/6844)).
16+
- Fixed resolution of relative paths when converting protos to their base nodes ([#6856](https://github.com/cyberbotics/webots/pull/6856)).
17+
- **As a result of this change, relative paths that are not within a Webots-recognized resource field (ex. `url`) will no longer be updated when a proto is converted to its base nodes.** This should not affect most users.
18+
- Fixed a bug causing `TrackWheel` nodes to lose their field values when used in a proto converted to a base node ([#6856](https://github.com/cyberbotics/webots/pull/6856)).
19+
- Fixed a bug causing supervisors to occasionally read stale field values after the simulation was reset ([#6758](https://github.com/cyberbotics/webots/pull/6758)).
20+
- Fixed a bug causing Webots to occasionally crash when unloading a world ([#6857](https://github.com/cyberbotics/webots/pull/6857)).
21+
- Fixed a crash occurring when Python was not found on Windows ([#6870](https://github.com/cyberbotics/webots/pull/6870)).
22+
323
## Webots R2025a
424
Released on January 31st, 2025.
525
- New Features
@@ -24,7 +44,7 @@ Released on January 31st, 2025.
2444
- Improved the image range of the rotating [Lidar](lidar.md) ([#6324](https://github.com/cyberbotics/webots/pull/6324)).
2545
- Show box-plane contact point normals when showing contact points ([#6678](https://github.com/cyberbotics/webots/pull/6678)).
2646
- Improved the speed and accuracy of box-plane collisions ([#6688](https://github.com/cyberbotics/webots/pull/6688)).
27-
- Enabled the launching of MATLAB desktop from the extern launcher ([#6366](https://github.com/cyberbotics/webots/pull/6366)).
47+
- Enabled the launching of MATLAB desktop from the extern launcher ([#6366](https://github.com/cyberbotics/webots/pull/6366)).
2848
- Improved overlays visible in Overlays menu by adding all the robots in the menu list ([#6297](https://github.com/cyberbotics/webots/pull/6297)).
2949
- Cleanup
3050
- Removed deprecated `windowPosition`, `pixelSize` fields of [Display](display.md) node ([#6327](https://github.com/cyberbotics/webots/pull/6327)).

docs/reference/generalities.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ Webots world files must use the ".wbt" file name extension.
44
The first line of a ".wbt" file uses this header:
55

66
```
7-
#VRML_SIM V8.5 utf8
7+
#VRML_SIM R2025a utf8
88
```
99

10-
The version *8.5* specifies that the file can be open with *Webots 8*.
10+
The version *R2025a* specifies that the file can be open with *Webots 2025a*.
1111
Although the header specifies *utf8*, at the moment only ascii is supported.
1212

1313
The comments placed just below the header store the window configuration associated with this world.
@@ -16,7 +16,7 @@ One (and only one) instance of each of the `WorldInfo, ViewPoint` and `Backgroun
1616
For example:
1717

1818
```
19-
#VRML_SIM V8.5 utf8
19+
#VRML_SIM R2025a utf8
2020
2121
WorldInfo {
2222
info [

include/controller/c/webots/supervisor.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,10 @@ void wb_supervisor_simulation_revert() WB_DEPRECATED; // please us
224224
void wb_supervisor_load_world(const char *filename) WB_DEPRECATED; // please use wb_supervisor_world_load() instead
225225
bool wb_supervisor_save_world(const char *filename) WB_DEPRECATED; // please use wb_supervisor_world_save() instead
226226

227-
// deprecated since Webots 8.6.0, plesae use wb_supervisor_field_remove_mf_item() instead
227+
// deprecated since Webots 8.6.0, please use wb_supervisor_field_remove_mf() instead
228228
void wb_supervisor_field_remove_mf_node(WbFieldRef field, int position) WB_DEPRECATED;
229229

230-
// deprecated since Webots 8.0.0, plesae use wb_supervisor_simulation_reset_physics() instead
230+
// deprecated since Webots 8.0.0, please use wb_supervisor_simulation_reset_physics() instead
231231
void wb_supervisor_simulation_physics_reset() WB_DEPRECATED;
232232

233233
// deprecated since Webots 8.4.0 please use wb_supervisor_movie_is_ready and wb_supervisor_movie_failed

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

lib/controller/python/controller/position_sensor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def brake(self):
5151
@property
5252
def motor(self):
5353
from .motor import Motor
54-
tag = wb.wb_brake_get_motor(self._tag)
54+
tag = wb.wb_position_sensor_get_motor(self._tag)
5555
return None if tag == 0 else Motor(tag)
5656

5757
@property

projects/default/libraries/vehicle/c/car/car.def

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)