Skip to content

Commit 44ae934

Browse files
authored
Merge branch 'develop' into sync-master-3e3c5214c
2 parents 3e3c521 + 22f508a commit 44ae934

File tree

217 files changed

+3118
-3482
lines changed

Some content is hidden

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

217 files changed

+3118
-3482
lines changed

.github/workflows/test_suite_linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ jobs:
160160
run: |
161161
export WEBOTS_HOME=$PWD/artifact/webots
162162
export ROS_DISTRO=${{ matrix.ROS_DISTRO }}
163-
python -m pip install rospkg catkin_pkg empy defusedxml netifaces
163+
python -m pip install rospkg catkin_pkg empy==3.3.4 defusedxml netifaces
164164
Xvfb :99 &
165165
export DISPLAY=:99
166166
./tests/ros.sh

.github/workflows/test_suite_linux_develop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ jobs:
153153
run: |
154154
export WEBOTS_HOME=$PWD/artifact/webots
155155
export ROS_DISTRO=${{ matrix.ROS_DISTRO }}
156-
python -m pip install rospkg catkin_pkg empy defusedxml netifaces
156+
python -m pip install rospkg catkin_pkg empy==3.3.4 defusedxml netifaces
157157
Xvfb :99 &
158158
export DISPLAY=:99
159159
./tests/ros.sh

dependencies/Makefile.linux

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@ QT_PACKAGE = webots-qt-$(QT_VERSION)-linux64-release.tar.bz2
1111
OIS_PACKAGE = libOIS.1.4.tar.bz2
1212
ASSIMP_PACKAGE = libassimp-5.2.3.tar.bz2
1313
PICO_PACKAGE = libpico.tar.bz2
14-
LUA_PACKAGE = lua-5.2.3.tar.gz
1514
OPENSSL_VERSION=3.0.14
1615
OPENSSL_SRC_PACKAGE=openssl-$(OPENSSL_VERSION).tar.gz
1716

18-
PACKAGES = qt open-al ois pico lua assimp
17+
PACKAGES = qt open-al ois pico assimp
1918
PACKAGES_CLEAN = $(addsuffix -clean, $(PACKAGES))
2019

2120
ifeq ($(UBUNTU_VERSION), 20.04)
@@ -113,24 +112,6 @@ $(WEBOTS_DEPENDENCY_PATH)/$(PICO_PACKAGE):
113112
@if [ "$$(md5sum $(PICO_PACKAGE) | awk '{print $$1;}')" != "13ce4d080f1db578cb2b73206b52e4cb" ]; then echo "MD5 checksum failed for $(PICO_PACKAGE)"; exit 1; fi
114113
@touch $(WEBOTS_DEPENDENCY_PATH)/$(PICO_PACKAGE)
115114

116-
lua-clean:
117-
@rm -rf $(WEBOTS_DEPENDENCY_PATH)/lua-5.2.3 $(WEBOTS_DEPENDENCY_PATH)/$(LUA_PACKAGE)
118-
119-
lua: $(WEBOTS_DEPENDENCY_PATH)/lua-5.2.3/src/liblua.a
120-
121-
$(WEBOTS_DEPENDENCY_PATH)/lua-5.2.3:
122-
@echo "# downloading $(LUA_PACKAGE)"
123-
@rm -f $(WEBOTS_DEPENDENCY_PATH)/$(LUA_PACKAGE)
124-
@wget -qq https://www.lua.org/ftp/$(LUA_PACKAGE) -P $(WEBOTS_DEPENDENCY_PATH)
125-
@if [ "$$(md5sum $(LUA_PACKAGE) | awk '{print $$1;}')" != "dc7f94ec6ff15c985d2d6ad0f1b35654" ]; then echo "MD5 checksum failed for $(LUA_PACKAGE)"; exit 1; fi
126-
@echo "# uncompressing $(LUA_PACKAGE)"
127-
@tar xfm $(WEBOTS_DEPENDENCY_PATH)/$(LUA_PACKAGE) -C $(WEBOTS_DEPENDENCY_PATH)
128-
@rm -f $(WEBOTS_DEPENDENCY_PATH)/$(LUA_PACKAGE)
129-
130-
$(WEBOTS_DEPENDENCY_PATH)/lua-5.2.3/src/liblua.a: $(WEBOTS_DEPENDENCY_PATH)/lua-5.2.3
131-
@echo "# compiling lua"
132-
+@make --silent -C $(WEBOTS_DEPENDENCY_PATH)/lua-5.2.3 linux 2> /dev/null
133-
134115
open-ssl-clean:
135116
@rm -rf $(WEBOTS_DEPENDENCY_PATH)/$(OPENSSL_SRC_PACKAGE) $(WEBOTS_DEPENDENCY_PATH)/openssl-$(OPENSSL_VERSION) $(WEBOTS_DEPENDENCY_PATH)/openssl-3.0 $(WEBOTS_HOME_LIB)/libcrypto.so* $(WEBOTS_HOME_LIB)/libssl.so*
136117

dependencies/Makefile.mac

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,10 @@ QT_PACKAGE = qt-6.5.3-release.tar.bz2
1010
ASSIMP_PACKAGE = assimp-5.2.3.tar.bz2
1111
FFMPEG_PACKAGE = ffmpeg.tar.bz2
1212
FREETYPE_PACKAGE = freetype2.tar.bz2
13-
LUA_PACKAGE = liblua-5.2.3.tar.bz2
1413
OIS_PACKAGE = libOIS-1.3.tar.bz2
1514
PICO_PACKAGE = libpico-1.0.tar.bz2
1615

17-
PACKAGES = qt assimp ffmpeg freetype lua ois pico
16+
PACKAGES = qt assimp ffmpeg freetype ois pico
1817
PACKAGES_CLEAN = $(addsuffix -clean, $(PACKAGES))
1918

2019
.PHONY: release debug distrib profile clean cleanse $(PACKAGES) $(PACKAGES_CLEAN)
@@ -126,30 +125,6 @@ freetype2:
126125
@tar xfm $(FREETYPE_PACKAGE)
127126
@rm -f $(FREETYPE_PACKAGE)
128127

129-
130-
lua-clean:
131-
@rm -rf $(WEBOTS_HOME_LIB)/liblua.dylib
132-
@rm -rf $(WEBOTS_HOME)/dependencies/lua-*
133-
@rm -rf $(WEBOTS_HOME)/dependencies/liblua-*.tar.bz2
134-
135-
lua: $(WEBOTS_HOME_LIB)/liblua.dylib
136-
137-
$(WEBOTS_HOME_LIB)/liblua.dylib: $(WEBOTS_DEPENDENCY_PATH)/$(LUA_PACKAGE)
138-
@echo "# uncompressing $(LUA_PACKAGE)"
139-
@tar xfm $(LUA_PACKAGE) -C $(WEBOTS_HOME)/Contents
140-
@mv $(WEBOTS_HOME)/Contents/dependencies/lua-5.2.3 $(WEBOTS_HOME)/dependencies/
141-
@rmdir $(WEBOTS_HOME)/Contents/dependencies
142-
@install_name_tool -id @rpath/Contents/lib/webots/liblua.dylib $@
143-
@codesign --force -s - $@
144-
145-
146-
$(WEBOTS_DEPENDENCY_PATH)/$(LUA_PACKAGE):
147-
@echo "# downloading $(LUA_PACKAGE)"
148-
@rm -f $(WEBOTS_DEPENDENCY_PATH)/$(LUA_PACKAGE)
149-
@$(WGET) $(DEPENDENCIES_URL)/$(LUA_PACKAGE) -P $(WEBOTS_DEPENDENCY_PATH)
150-
@if [ "b81047a7d382c1531b5b18530c6578ad" != `md5 -q $(LUA_PACKAGE)` ]; then echo "MD5 checksum failed for $(LUA_PACKAGE)"; exit 1; fi
151-
@touch $@
152-
153128
ois-clean:
154129
@rm -rf $(WEBOTS_DEPENDENCY_PATH)/$(OIS_PACKAGE) $(WEBOTS_HOME_LIB)/*OIS.dylib $(WEBOTS_HOME)/include/libOIS
155130

dependencies/Makefile.windows

Lines changed: 1 addition & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,10 @@ DEPENDENCIES_URL = https://cyberbotics.com/files/repository/dependencies/windows
77

88
ASSIMP_PACKAGE = assimp-5.2.3.zip
99
OPEN_VR_PACKAGE = openvr-1.0.7.zip
10-
LUA_PACKAGE = lua-5.2.3.tar.gz
1110
OIS_PACKAGE = libOIS.zip
1211
PICO_PACKAGE = libpico-1.0.zip
13-
LUA_GD_PACKAGE = lua-gd-windows.zip
1412

15-
PACKAGES = assimp open-vr lua ois pico lua-gd
13+
PACKAGES = assimp open-vr ois pico
1614
PACKAGES_CLEAN = $(addsuffix -clean, $(PACKAGES))
1715
null :=
1816
space := $(null) $(null)
@@ -99,30 +97,6 @@ $(WEBOTS_DEPENDENCY_PATH)/openvr-1.0.7:
9997
@rm -f "$(WEBOTS_DEPENDENCY_PATH)/$(OPEN_VR_PACKAGE)"
10098
@touch "$(WEBOTS_DEPENDENCY_PATH)/openvr-1.0.7"
10199

102-
lua-clean:
103-
@rm -rf $(TARGET_PATH)/lua52.dll "$(WEBOTS_DEPENDENCY_PATH)/lua-5.2.3"
104-
105-
lua: $(TARGET_PATH)/lua52.dll
106-
107-
$(TARGET_PATH)/lua52.dll: $(WEBOTS_DEPENDENCY_PATH)/lua-5.2.3/src/lua52.dll
108-
@echo "# copying lua dll"
109-
@mkdir -p $(TARGET_PATH)
110-
@cp "$(WEBOTS_DEPENDENCY_PATH)/lua-5.2.3/src/lua52.dll" "$(TARGET_PATH)/"
111-
112-
$(WEBOTS_DEPENDENCY_PATH)/lua-5.2.3:
113-
@rm -f "$(WEBOTS_DEPENDENCY_PATH)/$(LUA_PACKAGE)"
114-
@echo "# downloading $(LUA_PACKAGE)"
115-
@wget -qq "https://www.lua.org/ftp/$(LUA_PACKAGE)" -P "$(WEBOTS_DEPENDENCY_PATH)"
116-
@if [ "$$(md5sum $(LUA_PACKAGE) | awk '{print $$1;}')" != "dc7f94ec6ff15c985d2d6ad0f1b35654" ]; then echo "MD5 checksum failed for $(LUA_PACKAGE)"; exit 1; fi
117-
@echo "# uncompressing $(LUA_PACKAGE)"
118-
@cd "$(WEBOTS_DEPENDENCY_PATH)"; tar xfm $(LUA_PACKAGE) -C "$(WEBOTS_DEPENDENCY_PATH)"
119-
@rm -f "$(WEBOTS_DEPENDENCY_PATH)/$(LUA_PACKAGE)"
120-
121-
$(WEBOTS_DEPENDENCY_PATH)/lua-5.2.3/src/lua52.dll: $(WEBOTS_DEPENDENCY_PATH)/lua-5.2.3
122-
@sed -i '/AR= ar rcu/c\AR= ar rc' lua-5.2.3/src/Makefile
123-
@echo "# compiling lua"
124-
+@make --silent -C "$(WEBOTS_DEPENDENCY_PATH)/lua-5.2.3" mingw
125-
126100
ois-clean:
127101
@rm -rf "$(WEBOTS_DEPENDENCY_PATH)/$(OIS_PACKAGE)" $(TARGET_PATH)/OIS.dll $(TARGET_PATH)/XInput9_1_0.dll "$(WEBOTS_HOME_PATH)/include/libOIS"
128102

@@ -161,21 +135,3 @@ $(WEBOTS_DEPENDENCY_PATH)/$(PICO_PACKAGE):
161135
@wget -qq "$(DEPENDENCIES_URL)/$(PICO_PACKAGE)" -P "$(WEBOTS_DEPENDENCY_PATH)"
162136
@if [ "$$(md5sum $(PICO_PACKAGE) | awk '{print $$1;}')" != "78a74b1190eb3a75bc0ae5360c699517" ]; then echo "MD5 checksum failed for $(PICO_PACKAGE)"; exit 1; fi
163137
@touch "$(WEBOTS_DEPENDENCY_PATH)/$(PICO_PACKAGE)"
164-
165-
lua-gd-clean:
166-
@rm -rf "$(WEBOTS_DEPENDENCY_PATH)/$(LUA_GD_PACKAGE)" $(TARGET_PATH)/gd.dll
167-
168-
lua-gd: $(TARGET_PATH)/gd.dll
169-
170-
$(TARGET_PATH)/gd.dll: $(WEBOTS_DEPENDENCY_PATH)/$(LUA_GD_PACKAGE)
171-
@echo "# uncompressing $(LUA_GD_PACKAGE)"
172-
@mkdir -p $(TARGET_PATH)
173-
@unzip -q -o "$(WEBOTS_DEPENDENCY_PATH)/$(LUA_GD_PACKAGE)" -d "$(WEBOTS_HOME_PATH)/msys64/mingw64/bin"
174-
@touch "$(TARGET_PATH)/gd.dll"
175-
176-
$(WEBOTS_DEPENDENCY_PATH)/$(LUA_GD_PACKAGE):
177-
@echo "# downloading $(LUA_GD_PACKAGE)"
178-
@rm -f "$(WEBOTS_DEPENDENCY_PATH)/$(LUA_GD_PACKAGE)"
179-
@wget -qq "$(DEPENDENCIES_URL)/$(LUA_GD_PACKAGE)" -P "$(WEBOTS_DEPENDENCY_PATH)"
180-
@if [ "$$(md5sum $(LUA_GD_PACKAGE) | awk '{print $$1;}')" != "0a54dcc518d331a853f77fb66ebf75e9" ]; then echo "MD5 checksum failed for $(LUA_GD_PACKAGE)"; exit 1; fi
181-
@touch "$(WEBOTS_DEPENDENCY_PATH)/$(LUA_GD_PACKAGE)"

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,6 @@ pip install pycodestyle
8080
2. Run the tests:
8181

8282
```sh
83-
cd $WEBOTS_HOME/docs
83+
cd $WEBOTS_HOME/docs/tests
8484
python -m unittest discover
8585
```

docs/reference/changelog-r2020.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ Released on September 1st, 2020.
2222
- Remove scaling factor in matrix returned by [`wb_supervisor_node_get_orientation`](supervisor.md#wb_supervisor_node_get_orientation) ([#2112](https://github.com/cyberbotics/webots/pull/2112)).
2323
- Fixed conversion of identity matrix to quaternion in ROS API ([#2112](https://github.com/cyberbotics/webots/pull/2112)).
2424
- Fixed header stamps of the topics published by the ROS controller ([#2127](https://github.com/cyberbotics/webots/pull/2127)).
25-
- Fixed the [`camera/recognition_objects`](camera.md#wb_camera_recognition_get_objects) ROS topic not published when the [`camera/image`](camera.md#wb_camera_recognition_get_objects) topic has no subscriber ([#2115](https://github.com/cyberbotics/webots/pull/2115)).
26-
- **macOS: Removed the `ros` controller**, the [custom Python ROS controller](https://www.cyberbotics.com/doc/guide/using-ros#custom-ros-controller) should be used instead ([#2053](https://github.com/cyberbotics/webots/pull/2053)).
25+
- Fixed the [`camera/recognition_objects`](camera.md#wb_camera_recognition_get_objects) ROS topic not published when the [`camera/image`](camera.md#wb_camera_recognition_get_objects) topic has no subscriber ([#2115](https://github.com/cyberbotics/webots/pull/2115)).
26+
- **macOS: Removed the `ros` controller**, the [custom Python ROS controller](https://www.cyberbotics.com/doc/guide/using-ros#custom-ros-controller) should be used instead ([#2053](https://github.com/cyberbotics/webots/pull/2053)).
2727
- Fixed DEF node not found if defined in PROTO default parameter value ([#2107](https://github.com/cyberbotics/webots/pull/2107)).
2828
- Fixed crash occurring with some PROTO nodes when modifying fields from the scene tree that trigger the PROTO model regeneration ([#2100](https://github.com/cyberbotics/webots/pull/2100)).
2929
- Fixed field changes not applied in case of nested [PROTO](proto.md) nodes ([#2063](https://github.com/cyberbotics/webots/pull/2063)).
3030
- Windows: Fixed generation of procedural PROTO nodes using the `gd` module ([#2070](https://github.com/cyberbotics/webots/pull/2070)).
3131
- Fixed the [vision](../guide/samples-howto.md#vision-wbt) sample simulation ([#2143](https://github.com/cyberbotics/webots/pull/2143)).
3232
- Fixed bugs in streaming server protocol and added support for X3D/MJPEG mode selection in simulation server ([#2077](https://github.com/cyberbotics/webots/pull/2077)).
33-
- Linux: Fixed the execution of robot controllers with firejail ([#2071](https://github.com/cyberbotics/webots/pull/2071)).
33+
- Linux: Fixed the execution of robot controllers with firejail ([#2071](https://github.com/cyberbotics/webots/pull/2071)).
3434
- Fixed the `roadBorderWidth` field of the `HelicoidalRoadSegment` PROTO node ([#2099](https://github.com/cyberbotics/webots/pull/2099)).
3535
- Fixed the `near` field of the `Robotino3Webcam` [Camera](camera.md) ([#2051](https://github.com/cyberbotics/webots/pull/2051)).
3636
- Fixed orientation of the [Lights](light.md) in the `robotino3` world ([#2051](https://github.com/cyberbotics/webots/pull/2051)).
@@ -51,7 +51,7 @@ Released on July 29th, 2020.
5151
- New Features
5252
- Added a [Mesh](mesh.md) node allowing to use external 3D file in Webots ([#1419](https://github.com/cyberbotics/webots/pull/1419)).
5353
- Added the possibility to import [3D Studio mesh](https://wiki.fileformat.com/3d/3ds), [Blender](https://www.blender.org/), [Biovision Hierarchy](https://en.wikipedia.org/wiki/Biovision_Hierarchy), [Collada](https://en.wikipedia.org/wiki/COLLADA), [Filmbox](https://wiki.fileformat.com/3d/fbx/), [STL](https://en.wikipedia.org/wiki/STL_(file_format)), [Wavefront](https://wiki.fileformat.com/3d/obj), [X3D](https://www.web3d.org/getting-started-x3d) files in Webots ([#1463](https://github.com/cyberbotics/webots/pull/1463)).
54-
- Added two new functions to get internal PROTO node fields: [`wb_supervisor_node_get_from_proto_def`](supervisor.md#wb_supervisor_node_get_from_proto_def) and [`wb_supervisor_node_get_proto_field`](supervisor.md#wb_supervisor_node_get_proto_field) ([#1331](https://github.com/cyberbotics/webots/pull/1331)).
54+
- Added two new functions to get internal PROTO node fields: [`wb_supervisor_node_get_from_proto_def`](supervisor.md#wb_supervisor_node_get_from_proto_def) and [`wb_supervisor_node_get_proto_field`](supervisor.md#wb_supervisor_node_get_base_node_field) ([#1331](https://github.com/cyberbotics/webots/pull/1331)).
5555
- Added the `mjpeg` web streaming mode ([#1352](https://github.com/cyberbotics/webots/pull/1352)).
5656
- Exposed global texture maximum filtering as a parameter in the Webots preferences ([#1851](https://github.com/cyberbotics/webots/pull/1851)).
5757
- Added a [`wb_robot_get_urdf`](robot.md#wb_robot_get_urdf) function to the [Robot](robot.md) node which allows URDF export ([#1706](https://github.com/cyberbotics/webots/pull/1706)).
@@ -105,7 +105,7 @@ Released on July 29th, 2020.
105105
- Fixed crash when setting an invalid value to a field that triggers the parent PROTO regeneration ([#1868](https://github.com/cyberbotics/webots/pull/1868)).
106106
- Fixed crash when converting a PROTO node to Base node(s) if contained in a field that triggers the parent PROTO regeneration ([#1868](https://github.com/cyberbotics/webots/pull/1868)).
107107
- Fixed crash when deleting a node contained in a field that triggers the parent PROTO regeneration ([#1868](https://github.com/cyberbotics/webots/pull/1868)).
108-
- Fixed crash occurring when reloading or resetting a simulation containing a [Display](display.md) device ([#1865](https://github.com/cyberbotics/webots/pull/1865)).
108+
- Fixed crash occurring when reloading or resetting a simulation containing a [Display](display.md) device ([#1865](https://github.com/cyberbotics/webots/pull/1865)).
109109
- Fixed crash with Python [`RangeFinder.rangeImageGetDepth`](rangefinder.md#wb_range_finder_image_get_depth) function ([#1858](https://github.com/cyberbotics/webots/pull/1858)).
110110
- Fixed mismatch between the bounding object and visual shape of the [UnevenTerrain](https://www.cyberbotics.com/doc/guide/object-floors#uneventerrain), **and removed the `textureScale` field** ([#1792](https://github.com/cyberbotics/webots/pull/1792)).
111111
- Fixed crash when using a [Normal](normal.md) node in a PROTO node ([#1813](https://github.com/cyberbotics/webots/pull/1813)).

docs/reference/changelog-r2024.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,19 @@ Released on December **th, 2023.
66
- **Change the name of the web scene format from `X3D` to `W3D` ([#6280](https://github.com/cyberbotics/webots/pull/6280)).**
77
- Removed support for macOS 11 "Big Sur" and added support for macOS 14 "Sonoma" ([#6580](https://github.com/cyberbotics/webots/pull/6580)).
88
- 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)).
9+
- Added a method to include all subtypes of a node type in a PROTO field restriction ([#6574](https://github.com/cyberbotics/webots/pull/6574)).
10+
- Improved the node field query api ([#6613](https://github.com/cyberbotics/webots/issues/6613)).
11+
- **Renamed the `wb_supervisor_node_get_proto_*` methods to `wb_supervisor_node_get_base_node_*`**
12+
- **Renamed the `proto` field in the `supervisor_node_get_field_*` ROS services to `queryBaseNode`**
13+
- Added the `WbProtoRef` type to the supervisor API.
14+
- Added the ability to query the internal structure and fields of a proto node.
15+
- Added the ability to query the field in the scene tree that corresponds to a proto internal field.
16+
- Fixed the method signature of `wb_supervisor_node_get_number_of_fields` in MATLAB.
17+
- Removed support for Lua as a PROTO scripting language ([#6642](https://github.com/cyberbotics/webots/pull/6642)).
918
- Enhancements
1019
- Improved the image range of the rotating [Lidar](lidar.md) ([#6324](https://github.com/cyberbotics/webots/pull/6324)).
20+
- Show box-plane contact point normals when showing contact points ([#6678](https://github.com/cyberbotics/webots/pull/6678)).
21+
- Improved the speed and accuracy of box-plane collisions ([#6688](https://github.com/cyberbotics/webots/pull/6688)).
1122
- Cleanup
1223
- Removed deprecated `windowPosition`, `pixelSize` fields of [Display](display.md) node ([#6327](https://github.com/cyberbotics/webots/pull/6327)).
1324
- Bug Fixes
@@ -31,3 +42,4 @@ Released on December **th, 2023.
3142
- Fixed crash when `wb_supervisor_field_get_name` was called with NULL ([#6647](https://github.com/cyberbotics/webots/pull/6647)).
3243
- Fixed bug where the wrong y coordinate was used for one corner of the box drawn to represent a box-plane collision ([#6677](https://github.com/cyberbotics/webots/pull/6677)).
3344
- Fixed a bug where Webots would crash if a geometry was inserted into a `Shape` node used a bounding box ([#6691](https://github.com/cyberbotics/webots/pull/6691)).
45+
- Fixed handling of remote assets from unofficial sources ([#6585](https://github.com/cyberbotics/webots/pull/6585)).

docs/reference/javascript-procedural-proto.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ Webots cannot load procedural PROTO nodes directly, therefore the procedural PRO
1111

1212
### Programming Facts
1313

14-
- For backwards compatibility reasons, procedural PROTO files are assumed to be Lua by default.
15-
In order to use JavaScript scripting it is required to add the comment `# template language: javascript` in the header of the file.
14+
In order to use JavaScript scripting you should add the comment `# template language: javascript` in the header of the file.
1615
- A template statement is encapsulated inside the `%<` and the `>%` tokens and can be written on several lines.
1716
- Adding an "=" just after the opening token (`%<=`) allows to evaluate a statement.
1817
- The use of template statements is exclusively allowed inside the content scope of the PROTO (cf. example).
@@ -72,7 +71,6 @@ Sphere {
7271
%end
7372

7473
- Although not mandatory, the usage of semi-colons for JavaScript statements is highly encouraged.
75-
- Lua and JavaScript Procedural PROTO nodes use two distinct tokens (`%{` and `}%` for Lua and `%<` and `>%` for JavaScript) and cannot be interchanged.
7674
Which tokens will be considered depends on whether the comment line `# template language: javascript` is present.
7775
- The `wbfile` module for file manipulation does not need to, and should not, be imported as it is added automatically to each instance of the engine.
7876
- Performance degradation has been observed when the number of evaluations requested (i.e expressions of the form `%<= ... >%`) is large, generally in the tens of thousands.

0 commit comments

Comments
 (0)