From 3c8b3b07f21cbe080a88142bcdac6bf975d98ac3 Mon Sep 17 00:00:00 2001 From: saching13 Date: Thu, 8 Oct 2020 11:37:56 -0700 Subject: [PATCH 01/33] updated for usb fetch wip --- depthai-core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/depthai-core b/depthai-core index 38942ae60..066114732 160000 --- a/depthai-core +++ b/depthai-core @@ -1 +1 @@ -Subproject commit 38942ae60e36dbf7da795eb1e57558f01e7ba19a +Subproject commit 0661147329761bc824515b3c091b5009f507c242 From 238352c8ff2021dae0790376bd14b0136d749545 Mon Sep 17 00:00:00 2001 From: saching13 Date: Thu, 8 Oct 2020 11:55:48 -0700 Subject: [PATCH 02/33] updated wrapper to write usb speed --- depthai-core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/depthai-core b/depthai-core index 066114732..923c6c93c 160000 --- a/depthai-core +++ b/depthai-core @@ -1 +1 @@ -Subproject commit 0661147329761bc824515b3c091b5009f507c242 +Subproject commit 923c6c93c3b7d145a635bb3baaba3ecc2bb10993 From fe75d89f9a39e3463809e1440a160c0b5bb963b4 Mon Sep 17 00:00:00 2001 From: saching13 Date: Thu, 8 Oct 2020 12:17:09 -0700 Subject: [PATCH 03/33] modified hunter config in depthai-core for build fix --- depthai-core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/depthai-core b/depthai-core index 923c6c93c..f0ecb1ba6 160000 --- a/depthai-core +++ b/depthai-core @@ -1 +1 @@ -Subproject commit 923c6c93c3b7d145a635bb3baaba3ecc2bb10993 +Subproject commit f0ecb1ba652b07cacd177494f676d353066ebcf8 From 5658ec3f9866e2101104355d635eb5b9b6512878 Mon Sep 17 00:00:00 2001 From: saching13 Date: Thu, 8 Oct 2020 13:21:23 -0700 Subject: [PATCH 04/33] updating submodule linking --- depthai-core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/depthai-core b/depthai-core index f0ecb1ba6..1a10ae357 160000 --- a/depthai-core +++ b/depthai-core @@ -1 +1 @@ -Subproject commit f0ecb1ba652b07cacd177494f676d353066ebcf8 +Subproject commit 1a10ae357367ddb1dab88207dfa6f9783cf52a76 From fb17ba25612228617b898e18624a02d940c59bfb Mon Sep 17 00:00:00 2001 From: saching13 Date: Thu, 8 Oct 2020 17:52:12 -0700 Subject: [PATCH 05/33] added is_usb3() check function --- depthai-core | 2 +- src/device_bindings.cpp | 6 ++++++ text.txt | 41 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 text.txt diff --git a/depthai-core b/depthai-core index 1a10ae357..0c6174c08 160000 --- a/depthai-core +++ b/depthai-core @@ -1 +1 @@ -Subproject commit 1a10ae357367ddb1dab88207dfa6f9783cf52a76 +Subproject commit 0c6174c08b00fa0782dfe1dfed7f0e4803d63180 diff --git a/src/device_bindings.cpp b/src/device_bindings.cpp index f6cedbc77..ba8951ab0 100644 --- a/src/device_bindings.cpp +++ b/src/device_bindings.cpp @@ -114,6 +114,12 @@ void init_binding_device(pybind11::module& m){ "Returns a vector defining how much the right camera is translated w.r.t left camera." ) + .def( + "is_usb3", + &Device::is_usb3, + "Return true if connected over usb3 or else false." + ) + ; diff --git a/text.txt b/text.txt new file mode 100644 index 000000000..c98d9acb8 --- /dev/null +++ b/text.txt @@ -0,0 +1,41 @@ +running develop +running egg_info +writing depthai.egg-info/PKG-INFO +writing dependency_links to depthai.egg-info/dependency_links.txt +writing top-level names to depthai.egg-info/top_level.txt +reading manifest file 'depthai.egg-info/SOURCES.txt' +reading manifest template 'MANIFEST.in' +writing manifest file 'depthai.egg-info/SOURCES.txt' +running build_ext +-- [hunter] Calculating Toolchain-SHA1 +-- [hunter] Calculating Config-SHA1 +-- [hunter] HUNTER_ROOT: /home/sachin/.hunter +-- [hunter] [ Hunter-ID: 062a19a | Toolchain-ID: 8671a89 | Config-ID: 64cdc9e ] +-- [hunter] NLOHMANN_JSON_ROOT: /home/sachin/.hunter/_Base/062a19a/8671a89/64cdc9e/Install (ver.: 3.8.0) +-- [hunter] NLOHMANN_JSON_SCHEMA_VALIDATOR_ROOT: /home/sachin/.hunter/_Base/062a19a/8671a89/64cdc9e/Install (ver.: 2.1.1) +-- [hunter] XLINK_ROOT: /home/sachin/.hunter/_Base/062a19a/8671a89/64cdc9e/Install (ver.: luxonis-2020.2) +-- [hunter] BZIP2_ROOT: /home/sachin/.hunter/_Base/062a19a/8671a89/64cdc9e/Install (ver.: 1.0.8-p0) +-- [hunter] BOOST_ROOT: /home/sachin/.hunter/_Base/062a19a/8671a89/64cdc9e/Install (ver.: 1.72.0-p0) +-- Boost version: 1.72.0 +-- Compiling depthai-core resources in PATCH_ONLY mode +-- Downloading Depthai device side binaries from server... +-- Downloading depthai and patch +-- commit: 3d2ce04ef3a3b38d63917b1df240841d0e9b2477 +-- depthai-shared between device and host MATCH!. (device: 3d2ce04ef3a3b38d63917b1df240841d0e9b2477, host: 3d2ce04ef3a3b38d63917b1df240841d0e9b2477 +-- Downloading and checking depthai.cmd +-- Downloading and checking depthai-usb2-patch.patch +-- LIST OF RESOURCES: /home/sachin/Desktop/luxonis/depthai-python/build/temp.linux-x86_64-3.6/depthai-core/resources/depthai.cmd;/home/sachin/Desktop/luxonis/depthai-python/build/temp.linux-x86_64-3.6/depthai-core/resources/depthai-usb2-patch.patch +-- [hunter] HUNTER_ROOT: /home/sachin/.hunter +-- [hunter] [ Hunter-ID: 062a19a | Toolchain-ID: 8671a89 | Config-ID: 64cdc9e ] +-- [hunter] PYBIND11_ROOT: /home/sachin/.hunter/_Base/062a19a/8671a89/64cdc9e/Install (ver.: 2.5.0) +-- Configuring done +-- Generating done +-- Build files have been written to: /home/sachin/Desktop/luxonis/depthai-python/build/temp.linux-x86_64-3.6 +[ 22%] Built target depthai-resources +[ 83%] Built target depthai-core +[ 87%] Building CXX object CMakeFiles/depthai.dir/src/nnet_packet_bindings.cpp.o +[ 90%] Building CXX object CMakeFiles/depthai.dir/src/host_data_packet_bindings.cpp.o +CMakeFiles/depthai.dir/build.make:86: recipe for target 'CMakeFiles/depthai.dir/src/host_data_packet_bindings.cpp.o' failed +CMakeFiles/depthai.dir/build.make:110: recipe for target 'CMakeFiles/depthai.dir/src/nnet_packet_bindings.cpp.o' failed +CMakeFiles/Makefile2:68: recipe for target 'CMakeFiles/depthai.dir/all' failed +Makefile:129: recipe for target 'all' failed From 25210b57715bba2132e4b3aa2d3c510e6099d5e2 Mon Sep 17 00:00:00 2001 From: saching13 Date: Thu, 8 Oct 2020 11:37:56 -0700 Subject: [PATCH 06/33] updated for usb fetch wip --- depthai-core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/depthai-core b/depthai-core index 907405000..30d0ff6f5 160000 --- a/depthai-core +++ b/depthai-core @@ -1 +1 @@ -Subproject commit 9074050003930bceff4f07f3e8d55e9e501ad010 +Subproject commit 30d0ff6f596bb37d223386e5d701e85138341077 From 64cca71f9ad0d9e88781e7d41c8c441d6debc409 Mon Sep 17 00:00:00 2001 From: saching13 Date: Thu, 8 Oct 2020 17:52:12 -0700 Subject: [PATCH 07/33] added is_usb3() check function --- src/device_bindings.cpp | 6 ++++++ text.txt | 41 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 text.txt diff --git a/src/device_bindings.cpp b/src/device_bindings.cpp index a76530545..bb66052a0 100644 --- a/src/device_bindings.cpp +++ b/src/device_bindings.cpp @@ -124,6 +124,12 @@ void init_binding_device(pybind11::module& m){ "Returns a vector defining how much the right camera is translated w.r.t left camera." ) + .def( + "is_usb3", + &Device::is_usb3, + "Return true if connected over usb3 or else false." + ) + ; diff --git a/text.txt b/text.txt new file mode 100644 index 000000000..c98d9acb8 --- /dev/null +++ b/text.txt @@ -0,0 +1,41 @@ +running develop +running egg_info +writing depthai.egg-info/PKG-INFO +writing dependency_links to depthai.egg-info/dependency_links.txt +writing top-level names to depthai.egg-info/top_level.txt +reading manifest file 'depthai.egg-info/SOURCES.txt' +reading manifest template 'MANIFEST.in' +writing manifest file 'depthai.egg-info/SOURCES.txt' +running build_ext +-- [hunter] Calculating Toolchain-SHA1 +-- [hunter] Calculating Config-SHA1 +-- [hunter] HUNTER_ROOT: /home/sachin/.hunter +-- [hunter] [ Hunter-ID: 062a19a | Toolchain-ID: 8671a89 | Config-ID: 64cdc9e ] +-- [hunter] NLOHMANN_JSON_ROOT: /home/sachin/.hunter/_Base/062a19a/8671a89/64cdc9e/Install (ver.: 3.8.0) +-- [hunter] NLOHMANN_JSON_SCHEMA_VALIDATOR_ROOT: /home/sachin/.hunter/_Base/062a19a/8671a89/64cdc9e/Install (ver.: 2.1.1) +-- [hunter] XLINK_ROOT: /home/sachin/.hunter/_Base/062a19a/8671a89/64cdc9e/Install (ver.: luxonis-2020.2) +-- [hunter] BZIP2_ROOT: /home/sachin/.hunter/_Base/062a19a/8671a89/64cdc9e/Install (ver.: 1.0.8-p0) +-- [hunter] BOOST_ROOT: /home/sachin/.hunter/_Base/062a19a/8671a89/64cdc9e/Install (ver.: 1.72.0-p0) +-- Boost version: 1.72.0 +-- Compiling depthai-core resources in PATCH_ONLY mode +-- Downloading Depthai device side binaries from server... +-- Downloading depthai and patch +-- commit: 3d2ce04ef3a3b38d63917b1df240841d0e9b2477 +-- depthai-shared between device and host MATCH!. (device: 3d2ce04ef3a3b38d63917b1df240841d0e9b2477, host: 3d2ce04ef3a3b38d63917b1df240841d0e9b2477 +-- Downloading and checking depthai.cmd +-- Downloading and checking depthai-usb2-patch.patch +-- LIST OF RESOURCES: /home/sachin/Desktop/luxonis/depthai-python/build/temp.linux-x86_64-3.6/depthai-core/resources/depthai.cmd;/home/sachin/Desktop/luxonis/depthai-python/build/temp.linux-x86_64-3.6/depthai-core/resources/depthai-usb2-patch.patch +-- [hunter] HUNTER_ROOT: /home/sachin/.hunter +-- [hunter] [ Hunter-ID: 062a19a | Toolchain-ID: 8671a89 | Config-ID: 64cdc9e ] +-- [hunter] PYBIND11_ROOT: /home/sachin/.hunter/_Base/062a19a/8671a89/64cdc9e/Install (ver.: 2.5.0) +-- Configuring done +-- Generating done +-- Build files have been written to: /home/sachin/Desktop/luxonis/depthai-python/build/temp.linux-x86_64-3.6 +[ 22%] Built target depthai-resources +[ 83%] Built target depthai-core +[ 87%] Building CXX object CMakeFiles/depthai.dir/src/nnet_packet_bindings.cpp.o +[ 90%] Building CXX object CMakeFiles/depthai.dir/src/host_data_packet_bindings.cpp.o +CMakeFiles/depthai.dir/build.make:86: recipe for target 'CMakeFiles/depthai.dir/src/host_data_packet_bindings.cpp.o' failed +CMakeFiles/depthai.dir/build.make:110: recipe for target 'CMakeFiles/depthai.dir/src/nnet_packet_bindings.cpp.o' failed +CMakeFiles/Makefile2:68: recipe for target 'CMakeFiles/depthai.dir/all' failed +Makefile:129: recipe for target 'all' failed From ecee64d96d731f24cacf2cbc5bc2a14fbdfc26f3 Mon Sep 17 00:00:00 2001 From: saching13 Date: Thu, 8 Oct 2020 18:26:36 -0700 Subject: [PATCH 08/33] updated device commit id --- depthai-core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/depthai-core b/depthai-core index 30d0ff6f5..b7e692eba 160000 --- a/depthai-core +++ b/depthai-core @@ -1 +1 @@ -Subproject commit 30d0ff6f596bb37d223386e5d701e85138341077 +Subproject commit b7e692ebae69e085f553ea80e758c9eb586af824 From cd1852f563a4405c6b41a281ad549ab4830ff641 Mon Sep 17 00:00:00 2001 From: saching13 Date: Mon, 12 Oct 2020 10:07:27 -0700 Subject: [PATCH 09/33] linked to the upadted depthai core and added api to get myriad x serial id --- depthai-core | 2 +- src/device_bindings.cpp | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/depthai-core b/depthai-core index b7e692eba..7e0c3a880 160000 --- a/depthai-core +++ b/depthai-core @@ -1 +1 @@ -Subproject commit b7e692ebae69e085f553ea80e758c9eb586af824 +Subproject commit 7e0c3a88006d9248cde2954a6d6fcb5f53c2a615 diff --git a/src/device_bindings.cpp b/src/device_bindings.cpp index bb66052a0..c4b80e433 100644 --- a/src/device_bindings.cpp +++ b/src/device_bindings.cpp @@ -130,9 +130,11 @@ void init_binding_device(pybind11::module& m){ "Return true if connected over usb3 or else false." ) - - - ; + .def( + "get_mx_id", + &Device::get_mx_id, + "Return the Myraid X serial number of the device." + ); py::enum_(m, "AutofocusMode") From f056a29ac8a2ab42deebfe044dd3eb658914b41f Mon Sep 17 00:00:00 2001 From: saching13 Date: Mon, 12 Oct 2020 12:13:12 -0700 Subject: [PATCH 10/33] update depthai-core --- depthai-core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/depthai-core b/depthai-core index 7e0c3a880..b9bc7e19f 160000 --- a/depthai-core +++ b/depthai-core @@ -1 +1 @@ -Subproject commit 7e0c3a88006d9248cde2954a6d6fcb5f53c2a615 +Subproject commit b9bc7e19f4c824ca1b0547f8c5e6830c25dd2beb From 203fcd3bee7a73ae3d404993e16a7332c6e1561a Mon Sep 17 00:00:00 2001 From: saching13 Date: Mon, 12 Oct 2020 13:35:01 -0700 Subject: [PATCH 11/33] linking updated depthai-core in usb-testing --- depthai-core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/depthai-core b/depthai-core index b9bc7e19f..1e38d484d 160000 --- a/depthai-core +++ b/depthai-core @@ -1 +1 @@ -Subproject commit b9bc7e19f4c824ca1b0547f8c5e6830c25dd2beb +Subproject commit 1e38d484d5160946066f3f2d6d01dce8d5d81277 From 7bc4288fb04a7d6463fdaa61847606515b1abf1a Mon Sep 17 00:00:00 2001 From: saching13 Date: Mon, 12 Oct 2020 15:48:38 -0700 Subject: [PATCH 12/33] added eeprom loaded check --- depthai-core | 2 +- src/device_bindings.cpp | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/depthai-core b/depthai-core index 1e38d484d..a693088ad 160000 --- a/depthai-core +++ b/depthai-core @@ -1 +1 @@ -Subproject commit 1e38d484d5160946066f3f2d6d01dce8d5d81277 +Subproject commit a693088ade9e74ea6f152fa161c5de49fc7d5a21 diff --git a/src/device_bindings.cpp b/src/device_bindings.cpp index c4b80e433..70d348555 100644 --- a/src/device_bindings.cpp +++ b/src/device_bindings.cpp @@ -134,6 +134,12 @@ void init_binding_device(pybind11::module& m){ "get_mx_id", &Device::get_mx_id, "Return the Myraid X serial number of the device." + ) + + .def( + "is_eeprom_loaded", + &Device::is_eeprom_loaded, + "Return true if EEPROM has both intrinsic matrixes." ); From 8ccc4c0e7beae0c8aef0f1e24987545d67671c0e Mon Sep 17 00:00:00 2001 From: saching13 Date: Thu, 15 Oct 2020 17:47:43 -0700 Subject: [PATCH 13/33] added destructor to python not tested --- src/device_bindings.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/device_bindings.cpp b/src/device_bindings.cpp index c4b80e433..34ab8c818 100644 --- a/src/device_bindings.cpp +++ b/src/device_bindings.cpp @@ -134,7 +134,11 @@ void init_binding_device(pybind11::module& m){ "get_mx_id", &Device::get_mx_id, "Return the Myraid X serial number of the device." - ); + ) + + .def("deinit", + &Device::~Device, + "Destory the device."); py::enum_(m, "AutofocusMode") From b664137013f59d870eac9b161bce26f06a1e5191 Mon Sep 17 00:00:00 2001 From: saching13 Date: Mon, 19 Oct 2020 15:18:00 -0700 Subject: [PATCH 14/33] changing link to depthai-core --- depthai-core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/depthai-core b/depthai-core index c1c777035..13f53341b 160000 --- a/depthai-core +++ b/depthai-core @@ -1 +1 @@ -Subproject commit c1c7770356c655cc3c9c89c206c30eb01fcac100 +Subproject commit 13f53341b6423232096ef91089bb7c2e9fe686db From a441f1b5b3ab0d160ece4c91973e485e6a7325ef Mon Sep 17 00:00:00 2001 From: saching13 Date: Mon, 19 Oct 2020 16:50:16 -0700 Subject: [PATCH 15/33] updated link to depthai-core --- depthai-core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/depthai-core b/depthai-core index 13f53341b..89fbe679e 160000 --- a/depthai-core +++ b/depthai-core @@ -1 +1 @@ -Subproject commit 13f53341b6423232096ef91089bb7c2e9fe686db +Subproject commit 89fbe679e5b3318e528b4c5f997208dd2da9bda7 From 8edc69686686a96994a75a5e873f5f0a2e256ec4 Mon Sep 17 00:00:00 2001 From: saching13 Date: Mon, 19 Oct 2020 23:31:04 -0700 Subject: [PATCH 16/33] linking to the updated depthai-core with multi device xlink support --- depthai-core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/depthai-core b/depthai-core index 89fbe679e..6c5961ae5 160000 --- a/depthai-core +++ b/depthai-core @@ -1 +1 @@ -Subproject commit 89fbe679e5b3318e528b4c5f997208dd2da9bda7 +Subproject commit 6c5961ae5058cd96b76e13704828b02660bd209b From 4d9a38507da48117c6d36e58a67e8756c5d628b7 Mon Sep 17 00:00:00 2001 From: saching13 Date: Mon, 19 Oct 2020 23:47:07 -0700 Subject: [PATCH 17/33] updated device side config on depthai-core --- depthai-core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/depthai-core b/depthai-core index 6c5961ae5..84e5a9196 160000 --- a/depthai-core +++ b/depthai-core @@ -1 +1 @@ -Subproject commit 6c5961ae5058cd96b76e13704828b02660bd209b +Subproject commit 84e5a9196e95644dab9727ce3fffaf936fa6cc8c From 11ffa2bf90717df7f6b87421ab5a2b575171ec1e Mon Sep 17 00:00:00 2001 From: saching13 Date: Tue, 20 Oct 2020 00:00:48 -0700 Subject: [PATCH 18/33] updated linking to depthai-core --- depthai-core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/depthai-core b/depthai-core index 84e5a9196..bca9d3732 160000 --- a/depthai-core +++ b/depthai-core @@ -1 +1 @@ -Subproject commit 84e5a9196e95644dab9727ce3fffaf936fa6cc8c +Subproject commit bca9d37328662f2db9ee1148c8fbce2bb01582ad From d0b33b796b71d117930b972b2e556d4adde538e1 Mon Sep 17 00:00:00 2001 From: saching13 Date: Tue, 20 Oct 2020 13:09:41 -0700 Subject: [PATCH 19/33] updated link to xlink --- depthai-core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/depthai-core b/depthai-core index bca9d3732..f80abced5 160000 --- a/depthai-core +++ b/depthai-core @@ -1 +1 @@ -Subproject commit bca9d37328662f2db9ee1148c8fbce2bb01582ad +Subproject commit f80abced56432bf9fa6c39b67be0a98de315945b From 917fe1aad69799a490f5864d676d4f283e23cb6b Mon Sep 17 00:00:00 2001 From: saching13 Date: Tue, 20 Oct 2020 13:21:53 -0700 Subject: [PATCH 20/33] updated link to xlink --- depthai-core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/depthai-core b/depthai-core index f80abced5..7d7a02ffd 160000 --- a/depthai-core +++ b/depthai-core @@ -1 +1 @@ -Subproject commit f80abced56432bf9fa6c39b67be0a98de315945b +Subproject commit 7d7a02ffd32544b39c14afb8b0f3091c1558ec89 From 2452206e93aa8eac9ea9b5bd9d904b8e501f8098 Mon Sep 17 00:00:00 2001 From: saching13 Date: Tue, 20 Oct 2020 13:58:15 -0700 Subject: [PATCH 21/33] updated link to xlink --- depthai-core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/depthai-core b/depthai-core index 7d7a02ffd..14100691b 160000 --- a/depthai-core +++ b/depthai-core @@ -1 +1 @@ -Subproject commit 7d7a02ffd32544b39c14afb8b0f3091c1558ec89 +Subproject commit 14100691b43dbae2500f8fdc3b4f08ed1152ec1b From 8b0514dc6cbd77b8f8358bdd91ee90ae4d816659 Mon Sep 17 00:00:00 2001 From: saching13 Date: Tue, 20 Oct 2020 14:03:57 -0700 Subject: [PATCH 22/33] updated link to xlink --- depthai-core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/depthai-core b/depthai-core index 14100691b..678ba9558 160000 --- a/depthai-core +++ b/depthai-core @@ -1 +1 @@ -Subproject commit 14100691b43dbae2500f8fdc3b4f08ed1152ec1b +Subproject commit 678ba9558e7ca5e2748c2a954676fdf9f86123db From a239ba16123e2b47c8f2a4e1f186934c5fcbc426 Mon Sep 17 00:00:00 2001 From: saching13 Date: Tue, 20 Oct 2020 18:15:06 -0700 Subject: [PATCH 23/33] added print statement on calibration file path to verify with mx id --- depthai-core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/depthai-core b/depthai-core index 678ba9558..294dbe3fa 160000 --- a/depthai-core +++ b/depthai-core @@ -1 +1 @@ -Subproject commit 678ba9558e7ca5e2748c2a954676fdf9f86123db +Subproject commit 294dbe3faaf65a97694baaeb52b4c0b9b82c2179 From 89ac4613088d82352cb4a02f81287e9579a8389c Mon Sep 17 00:00:00 2001 From: saching13 Date: Wed, 21 Oct 2020 14:43:23 -0700 Subject: [PATCH 24/33] updated depthai-core link --- depthai-core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/depthai-core b/depthai-core index 506ce480d..abc0f75a2 160000 --- a/depthai-core +++ b/depthai-core @@ -1 +1 @@ -Subproject commit 506ce480d3303f45599b4244e3f9e233ae6ba740 +Subproject commit abc0f75a201001253fbcf6e1db246134fe9f3e6f From 527dd9932bc5908f1d33e8a1b3876a3faec1f690 Mon Sep 17 00:00:00 2001 From: saching13 Date: Thu, 22 Oct 2020 11:55:49 -0700 Subject: [PATCH 25/33] added device change check on swapping devices for testing --- depthai-core | 2 +- src/device_bindings.cpp | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/depthai-core b/depthai-core index abc0f75a2..c3281bdd2 160000 --- a/depthai-core +++ b/depthai-core @@ -1 +1 @@ -Subproject commit abc0f75a201001253fbcf6e1db246134fe9f3e6f +Subproject commit c3281bdd214e10a66ef74d3a47ebf9c48d145713 diff --git a/src/device_bindings.cpp b/src/device_bindings.cpp index 70d348555..a8f103956 100644 --- a/src/device_bindings.cpp +++ b/src/device_bindings.cpp @@ -140,6 +140,18 @@ void init_binding_device(pybind11::module& m){ "is_eeprom_loaded", &Device::is_eeprom_loaded, "Return true if EEPROM has both intrinsic matrixes." + ) + + .def( + "is_device_changed", + &Device::is_device_changed, + "Return true if device is swapped while running over watchdog thread." + ) + + .def( + "reset_device_changed", + &Device::reset_device_changed, + "Sets device_changed var to false to detect the next swap while running over watchdog thread." ); From 931d94ff6d7c26d7f29994f712aea5fd943501a7 Mon Sep 17 00:00:00 2001 From: saching13 Date: Thu, 22 Oct 2020 17:49:11 -0700 Subject: [PATCH 26/33] added api to check cameras connection --- depthai-core | 2 +- src/device_bindings.cpp | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/depthai-core b/depthai-core index c3281bdd2..8d37f1c8b 160000 --- a/depthai-core +++ b/depthai-core @@ -1 +1 @@ -Subproject commit c3281bdd214e10a66ef74d3a47ebf9c48d145713 +Subproject commit 8d37f1c8bdfbbe9f7f1a9e4262a7098b06a64c76 diff --git a/src/device_bindings.cpp b/src/device_bindings.cpp index a8f103956..589cda0d1 100644 --- a/src/device_bindings.cpp +++ b/src/device_bindings.cpp @@ -152,6 +152,24 @@ void init_binding_device(pybind11::module& m){ "reset_device_changed", &Device::reset_device_changed, "Sets device_changed var to false to detect the next swap while running over watchdog thread." + ) + + .def( + "is_rgb_connected", + &Device::is_rgb_connected, + "Returns true if RGB camera is connected." + ) + + .def( + "is_left_connected", + &Device::is_left_connected, + "Returns true if left stereo camera is connected." + ) + + .def( + "is_right_connected", + &Device::is_right_connected, + "Returns true if right stereo camera is connected." ); From 366ff7a0ec4569585a25a16e9d796fafbfc1c40f Mon Sep 17 00:00:00 2001 From: saching13 Date: Thu, 29 Oct 2020 18:24:01 -0700 Subject: [PATCH 27/33] added api to write to eeprom and fetch existing pipeline --- depthai-core | 2 +- src/device_bindings.cpp | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/depthai-core b/depthai-core index 3ca99fd8d..3590450eb 160000 --- a/depthai-core +++ b/depthai-core @@ -1 +1 @@ -Subproject commit 3ca99fd8da1adf8d35c2519ba84b048b5c8622df +Subproject commit 3590450eb1a280a40f2c2a6f25b56b1c8cb1129b diff --git a/src/device_bindings.cpp b/src/device_bindings.cpp index 589cda0d1..2dec05c28 100644 --- a/src/device_bindings.cpp +++ b/src/device_bindings.cpp @@ -170,6 +170,29 @@ void init_binding_device(pybind11::module& m){ "is_right_connected", &Device::is_right_connected, "Returns true if right stereo camera is connected." + ) + .def( + "set_eeprom", + [](Device& device, py::dict config) + { + // str(dict) for string representation uses ['] , but JSON requires ["] + // fast & dirty solution: + std::string str = py::str(config); + boost::replace_all(str, "\'", "\""); + boost::replace_all(str, "None", "null"); + boost::replace_all(str, "True", "true"); + boost::replace_all(str, "False", "false"); + // TODO: make better json serialization + + return device.set_eeprom(str); + }, + "Takes board config and calibration data as input and writes to eeprom", + py::arg("config") = py::dict() + ) + .def( + "get_pipeline", + &Device::get_pipeline, + "Returns shared ptr of CNNHostPipeline created using cerate_pipeline." ); From 17eda350f3a47363cc6fe2e2008d6657ea6b95f8 Mon Sep 17 00:00:00 2001 From: saching13 Date: Thu, 29 Oct 2020 18:28:33 -0700 Subject: [PATCH 28/33] renamed api to write_eeprom_data --- depthai-core | 2 +- src/device_bindings.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/depthai-core b/depthai-core index 3590450eb..273c1f2af 160000 --- a/depthai-core +++ b/depthai-core @@ -1 +1 @@ -Subproject commit 3590450eb1a280a40f2c2a6f25b56b1c8cb1129b +Subproject commit 273c1f2af1b7c35547345f168861e49e550568ad diff --git a/src/device_bindings.cpp b/src/device_bindings.cpp index 2dec05c28..307f2fc87 100644 --- a/src/device_bindings.cpp +++ b/src/device_bindings.cpp @@ -172,7 +172,7 @@ void init_binding_device(pybind11::module& m){ "Returns true if right stereo camera is connected." ) .def( - "set_eeprom", + "write_eeprom_data", [](Device& device, py::dict config) { // str(dict) for string representation uses ['] , but JSON requires ["] @@ -184,7 +184,7 @@ void init_binding_device(pybind11::module& m){ boost::replace_all(str, "False", "false"); // TODO: make better json serialization - return device.set_eeprom(str); + return device.write_eeprom_data(str); }, "Takes board config and calibration data as input and writes to eeprom", py::arg("config") = py::dict() From b73162950d0715631ca41b96f06e9dd9ae40066e Mon Sep 17 00:00:00 2001 From: saching13 Date: Tue, 3 Nov 2020 11:33:14 -0800 Subject: [PATCH 29/33] changed xlink path --- depthai-core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/depthai-core b/depthai-core index 273c1f2af..394fc1b21 160000 --- a/depthai-core +++ b/depthai-core @@ -1 +1 @@ -Subproject commit 273c1f2af1b7c35547345f168861e49e550568ad +Subproject commit 394fc1b216e300ec6c19cc7b74cc31a81aa00107 From 8aa64e6e0deec64922b85a1ef2579b40dc9ce5b9 Mon Sep 17 00:00:00 2001 From: saching13 Date: Wed, 4 Nov 2020 13:04:51 -0800 Subject: [PATCH 30/33] added wrapper for xlinkConnect to make it threadsafe in depthai-shared --- depthai-core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/depthai-core b/depthai-core index 394fc1b21..4814934c3 160000 --- a/depthai-core +++ b/depthai-core @@ -1 +1 @@ -Subproject commit 394fc1b216e300ec6c19cc7b74cc31a81aa00107 +Subproject commit 4814934c3c6d93b8293cc6dce4222914b4a73384 From 02b0186e87047a1b524dcbe52e94339ddaedc5f4 Mon Sep 17 00:00:00 2001 From: saching13 Date: Wed, 4 Nov 2020 17:32:29 -0800 Subject: [PATCH 31/33] updated device side commit id and xlinkwrapper --- depthai-core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/depthai-core b/depthai-core index 4814934c3..ade740afa 160000 --- a/depthai-core +++ b/depthai-core @@ -1 +1 @@ -Subproject commit 4814934c3c6d93b8293cc6dce4222914b4a73384 +Subproject commit ade740afa42fb2ba3f06b468a000bcd71de5590d From 56a4bf9c42c44d108dabba35a4624cc255ed09ab Mon Sep 17 00:00:00 2001 From: saching13 Date: Thu, 5 Nov 2020 15:15:35 -0800 Subject: [PATCH 32/33] removed text.txt --- text.txt | 41 ----------------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 text.txt diff --git a/text.txt b/text.txt deleted file mode 100644 index c98d9acb8..000000000 --- a/text.txt +++ /dev/null @@ -1,41 +0,0 @@ -running develop -running egg_info -writing depthai.egg-info/PKG-INFO -writing dependency_links to depthai.egg-info/dependency_links.txt -writing top-level names to depthai.egg-info/top_level.txt -reading manifest file 'depthai.egg-info/SOURCES.txt' -reading manifest template 'MANIFEST.in' -writing manifest file 'depthai.egg-info/SOURCES.txt' -running build_ext --- [hunter] Calculating Toolchain-SHA1 --- [hunter] Calculating Config-SHA1 --- [hunter] HUNTER_ROOT: /home/sachin/.hunter --- [hunter] [ Hunter-ID: 062a19a | Toolchain-ID: 8671a89 | Config-ID: 64cdc9e ] --- [hunter] NLOHMANN_JSON_ROOT: /home/sachin/.hunter/_Base/062a19a/8671a89/64cdc9e/Install (ver.: 3.8.0) --- [hunter] NLOHMANN_JSON_SCHEMA_VALIDATOR_ROOT: /home/sachin/.hunter/_Base/062a19a/8671a89/64cdc9e/Install (ver.: 2.1.1) --- [hunter] XLINK_ROOT: /home/sachin/.hunter/_Base/062a19a/8671a89/64cdc9e/Install (ver.: luxonis-2020.2) --- [hunter] BZIP2_ROOT: /home/sachin/.hunter/_Base/062a19a/8671a89/64cdc9e/Install (ver.: 1.0.8-p0) --- [hunter] BOOST_ROOT: /home/sachin/.hunter/_Base/062a19a/8671a89/64cdc9e/Install (ver.: 1.72.0-p0) --- Boost version: 1.72.0 --- Compiling depthai-core resources in PATCH_ONLY mode --- Downloading Depthai device side binaries from server... --- Downloading depthai and patch --- commit: 3d2ce04ef3a3b38d63917b1df240841d0e9b2477 --- depthai-shared between device and host MATCH!. (device: 3d2ce04ef3a3b38d63917b1df240841d0e9b2477, host: 3d2ce04ef3a3b38d63917b1df240841d0e9b2477 --- Downloading and checking depthai.cmd --- Downloading and checking depthai-usb2-patch.patch --- LIST OF RESOURCES: /home/sachin/Desktop/luxonis/depthai-python/build/temp.linux-x86_64-3.6/depthai-core/resources/depthai.cmd;/home/sachin/Desktop/luxonis/depthai-python/build/temp.linux-x86_64-3.6/depthai-core/resources/depthai-usb2-patch.patch --- [hunter] HUNTER_ROOT: /home/sachin/.hunter --- [hunter] [ Hunter-ID: 062a19a | Toolchain-ID: 8671a89 | Config-ID: 64cdc9e ] --- [hunter] PYBIND11_ROOT: /home/sachin/.hunter/_Base/062a19a/8671a89/64cdc9e/Install (ver.: 2.5.0) --- Configuring done --- Generating done --- Build files have been written to: /home/sachin/Desktop/luxonis/depthai-python/build/temp.linux-x86_64-3.6 -[ 22%] Built target depthai-resources -[ 83%] Built target depthai-core -[ 87%] Building CXX object CMakeFiles/depthai.dir/src/nnet_packet_bindings.cpp.o -[ 90%] Building CXX object CMakeFiles/depthai.dir/src/host_data_packet_bindings.cpp.o -CMakeFiles/depthai.dir/build.make:86: recipe for target 'CMakeFiles/depthai.dir/src/host_data_packet_bindings.cpp.o' failed -CMakeFiles/depthai.dir/build.make:110: recipe for target 'CMakeFiles/depthai.dir/src/nnet_packet_bindings.cpp.o' failed -CMakeFiles/Makefile2:68: recipe for target 'CMakeFiles/depthai.dir/all' failed -Makefile:129: recipe for target 'all' failed From b77255b947a5aa8a3cbcfc277df7254253387143 Mon Sep 17 00:00:00 2001 From: saching13 Date: Thu, 5 Nov 2020 19:09:48 -0800 Subject: [PATCH 33/33] updated depthai-core --- depthai-core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/depthai-core b/depthai-core index 0bdf5e2fc..a6950b42b 160000 --- a/depthai-core +++ b/depthai-core @@ -1 +1 @@ -Subproject commit 0bdf5e2fc128e9845f2cac3a6774be41141f933a +Subproject commit a6950b42be0b087919c413484b6552893b45c6a0