Skip to content

Commit b6c7bfd

Browse files
author
Danilo
committed
Merge remote-tracking branch 'origin/fw_asan_fix' into device_sanitizers
2 parents 4888317 + 9b32e73 commit b6c7bfd

File tree

13 files changed

+71
-34
lines changed

13 files changed

+71
-34
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -894,6 +894,10 @@ if(DEPTHAI_USB2_PATCH_ONLY_MODE)
894894
target_compile_definitions(${TARGET_CORE_NAME} PRIVATE DEPTHAI_PATCH_ONLY_MODE)
895895
endif()
896896

897+
if(DEPTHAI_INTERNAL_DEVICE_BUILD_RVC4)
898+
target_compile_definitions(${TARGET_CORE_NAME} PRIVATE DEPTHAI_INTERNAL_DEVICE_BUILD_RVC4)
899+
endif()
900+
897901
# Helper function
898902
macro(add_runtime_dependencies depending_target dependency)
899903
if(TARGET ${dependency})

bindings/python/ci/upload-pypi.sh

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,15 @@ for file in wheelhouse/audited/*.whl; do
1111
python3 -m twine upload --repository-url "$PYPI_SERVER" --username "$PYPI_USER" --password "$PYPI_PASSWORD" "$file"
1212
done
1313

14-
# Uploads zip source distribution
15-
for file in wheelhouse/audited/*.zip; do
16-
echo "Uploading $file"
17-
python3 -m twine upload --repository-url "$PYPI_SERVER" --username "$PYPI_USER" --password "$PYPI_PASSWORD" "$file"
18-
done
14+
# TODO (Morato) - add the source distribution upload back
15+
# # Uploads zip source distribution
16+
# for file in wheelhouse/audited/*.zip; do
17+
# echo "Uploading $file"
18+
# python3 -m twine upload --repository-url "$PYPI_SERVER" --username "$PYPI_USER" --password "$PYPI_PASSWORD" "$file"
19+
# done
1920

20-
# Uploads tar.gz source distribution
21-
for file in wheelhouse/audited/*.tar.gz; do
22-
echo "Uploading $file"
23-
python3 -m twine upload --repository-url "$PYPI_SERVER" --username "$PYPI_USER" --password "$PYPI_PASSWORD" "$file"
24-
done
21+
# # Uploads tar.gz source distribution
22+
# for file in wheelhouse/audited/*.tar.gz; do
23+
# echo "Uploading $file"
24+
# python3 -m twine upload --repository-url "$PYPI_SERVER" --username "$PYPI_USER" --password "$PYPI_PASSWORD" "$file"
25+
# done

cmake/Depthai/DepthaiDeviceRVC4Config.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
set(DEPTHAI_DEVICE_RVC4_MATURITY "snapshot")
44

55
# "version if applicable"
6-
set(DEPTHAI_DEVICE_RVC4_VERSION "0.0.1+b54c18baec10d5160714fc721c6b661707b0f23a")
6+
set(DEPTHAI_DEVICE_RVC4_VERSION "0.0.1+c845b18b4ec48ce5ace00da6078553b1bd8a1d20")

cmake/Depthai/DepthaiDeviceSideConfig.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
33

44
# "full commit hash of device side binary"
5-
set(DEPTHAI_DEVICE_SIDE_COMMIT "dc466b4462739d1edbaa00fdccbe63805bff8078")
5+
set(DEPTHAI_DEVICE_SIDE_COMMIT "e94cab6df69c3e9e9b81c73503134e7ee336fce3")
66

77
# "version if applicable"
88
set(DEPTHAI_DEVICE_SIDE_VERSION "")

cmake/depthaiDependencies.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ else()
177177
FetchContent_Declare(
178178
XLink
179179
GIT_REPOSITORY https://github.com/luxonis/XLink.git
180-
GIT_TAG 13790284ce12969c169940f88aad755bd91146db
180+
GIT_TAG 7958fece3f7b303b1a2038ea7e78f53405f89843
181181
)
182182

183183
FetchContent_MakeAvailable(

cmake/depthaiOptions.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,3 +121,6 @@ option(DEPTHAI_SANITIZE "Enable Address and Undefined sanitizers for library, ex
121121
# Local override paths
122122
set(DEPTHAI_XLINK_LOCAL "" CACHE STRING "Path to local XLink source to use instead of Hunter")
123123
set(DEPTHAI_BOOTLOADER_SHARED_LOCAL "" CACHE STRING "Path to local depthai-bootloader-shared source to use instead of submodule")
124+
125+
# Options for internal use
126+
option(DEPTHAI_INTERNAL_DEVICE_BUILD_RVC4 "This build is part of the rvc4 firmware build" OFF)

cmake/ports/libnop/portfile.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
vcpkg_from_github(
22
OUT_SOURCE_PATH SOURCE_PATH
33
REPO luxonis/libnop
4-
REF ab842f51dc2eb13916dc98417c2186b78320ed10
5-
SHA512 6353765ac8c489e66e0c91dc1da899e5a89200eb3834c95a1697b5e22e4d7186d920c24a67272ff92fdf22a0fac5b6b838345ad077e67693f35815c1cc9dbf17
4+
REF 00938ba06ad513e4e0a12f9f2ec41cecad7e40d1
5+
SHA512 1377cc955148b9106e173d5877623df4f18400234ad2a3c0e6ab12970c53886478520f7bc591f4e8d89ae1a325c4cd030063043795e34f99ec6efe77457c6664
66
HEAD_REF develop
77
)
88
vcpkg_cmake_configure(

examples/cpp/RGBD/rgbd_pcl_processing.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ class CustomPCLProcessingNode : public dai::NodeCRTP<dai::node::ThreadedHostNode
1212
constexpr static const float thresholdDistance = 3000.0f;
1313

1414
public:
15-
Input inputPCL{*this, {.name = "inPCL", .types = {{dai::DatatypeEnum::PointCloudData, true}}}};
16-
Output outputPCL{*this, {.name = "outPCL", .types = {{dai::DatatypeEnum::PointCloudData, true}}}};
15+
Input inputPCL{*this, {"inPCL", DEFAULT_GROUP, DEFAULT_BLOCKING, DEFAULT_QUEUE_SIZE, {{{dai::DatatypeEnum::PointCloudData, true}}}}};
16+
Output outputPCL{*this, {"outPCL", DEFAULT_GROUP, {{{dai::DatatypeEnum::PointCloudData, true}}}}};
1717

1818
void run() override {
1919
while(isRunning()) {
@@ -27,7 +27,7 @@ class CustomPCLProcessingNode : public dai::NodeCRTP<dai::node::ThreadedHostNode
2727
for (const auto& point : pclData) {
2828
const float distance = point.x*point.x + point.y*point.y + point.z*point.z;
2929
if (distance <= thresholdSquared) {
30-
updatedPoints.emplace_back(point.x, point.y, point.z,
30+
updatedPoints.emplace_back(point.x, point.y, point.z,
3131
point.r, point.g, point.b, point.a);
3232
}
3333
}

examples/python/Benchmark/benchmark_nn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
if type:
1313
try:
14-
frameType = dai.ImgFrame.Type.__getattribute__(type)
14+
frameType = getattr(dai.ImgFrame.Type, type)
1515
except AttributeError:
1616
type = None
1717

examples/python/Misc/DigitalZoom/person_crop_out.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def transformDetectionToSource(imgDetections: dai.ImgDetections, detection: dai.
7575

7676
if type:
7777
try:
78-
frameType = dai.ImgFrame.Type.__getattribute__(type)
78+
frameType = getattr(dai.ImgFrame.Type, type)
7979
except AttributeError:
8080
type = None
8181

0 commit comments

Comments
 (0)