Skip to content

Commit 3d856e5

Browse files
authored
Merge pull request #40 from stereolabs/v4.2.1
V4.2.1
2 parents a69fe86 + f29622a commit 3d856e5

File tree

6 files changed

+19
-3
lines changed

6 files changed

+19
-3
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,5 @@ _compiler
3838
source/
3939

4040
exts/sl.sensor.camera/bin/libsl.sensor.camera.plugin.so
41-
exts/sl.sensor.camera/bin/sl.sensor.camera.plugin.dll
41+
exts/sl.sensor.camera/bin/sl.sensor.camera.plugin.dll
42+
exts/sl.sensor.camera/sl/sensor/camera/ogn/__ogn_files_prebuilt

build.bat

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,10 @@ echo [INFO] Syncing build artifacts...
6565
xcopy /e /i /y "%BUILD_PATH%\*" "%BIN_TARGET%"
6666
copy /y "%BIN_TARGET%\sl_zed64.dll" "%BUILD_PATH%\sl_zed64.dll" >nul
6767

68+
REM 6. Remove generated __ogn_files_prebuilt file
69+
if exist "exts\sl.sensor.camera\sl\sensor\camera\ogn\__ogn_files_prebuilt" (
70+
REM echo [INFO] Removing __ogn_files_prebuilt file...
71+
del /f /q "exts\sl.sensor.camera\sl\sensor\camera\ogn\__ogn_files_prebuilt"
72+
)
73+
6874
echo [SUCCESS] Process complete.

build.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,10 @@ cp -r $BUILD_PATH/* "exts/sl.sensor.camera/bin/"
3535

3636
cp "exts/sl.sensor.camera/bin/libsl_zed.so" "$BUILD_PATH/libsl_zed.so"
3737

38+
# Remove generated __ogn_files_prebuilt file
39+
if [ -f "exts/sl.sensor.camera/sl/sensor/camera/ogn/__ogn_files_prebuilt" ]; then
40+
#echo "Removing __ogn_files_prebuilt file..."
41+
rm -f "exts/sl.sensor.camera/sl/sensor/camera/ogn/__ogn_files_prebuilt"
42+
fi
43+
3844
#rm -rf _compiler _deps _repo

exts/sl.sensor.camera/config/extension.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
version = "4.2.0" # Semantic Versioning is used: https://semver.org/
2+
version = "4.2.1" # Semantic Versioning is used: https://semver.org/
33

44
# These fields are used primarily for display in the extension browser UI.
55
title = "Stereolabs ZED Camera"

exts/sl.sensor.camera/docs/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
44

5+
## [4.2.1]
6+
- Fix streaming of 4mm camera models (ZED X and ZED XM).
7+
58
## [4.2.0]
69
- Add the option to change streaming bitrate and chunksize when streaming over network.
710
- Add the option to stream over both IPC and network simultaneously.

exts/sl.sensor.camera/sl/sensor/camera/annotators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ def build_graph(self, cams) -> None:
272272
self.sync_node.get_attribute("outputs:rationalTimeDenominator").connect(self.sim_time.get_attribute("inputs:referenceTimeDenominator"), True)
273273
self.sync_node.get_attribute("outputs:rationalTimeNumerator").connect(self.sim_time.get_attribute("inputs:referenceTimeNumerator"), True)
274274

275-
imu_path = "/base_link/" + self.camera_model + "/Imu_Sensor"
275+
imu_path = "/base_link/" + get_camera_model(self.camera_model) + "/Imu_Sensor"
276276
imu_full_path = self.camera_prim_path[0].pathString + imu_path
277277
self.imu.get_attribute("inputs:imuPrim").set(imu_full_path)
278278
self.zed_.get_attribute("inputs:bitrate").set(self.bitrate)

0 commit comments

Comments
 (0)