@@ -24,10 +24,16 @@ namespace node {
2424class SpatialDetectionNetwork : public DeviceNodeCRTP <DeviceNode, SpatialDetectionNetwork, SpatialDetectionNetworkProperties> {
2525 public:
2626 explicit SpatialDetectionNetwork (const std::shared_ptr<Device>& device)
27- : DeviceNodeCRTP<DeviceNode, SpatialDetectionNetwork, SpatialDetectionNetworkProperties>(device),
27+ : DeviceNodeCRTP<DeviceNode, SpatialDetectionNetwork, SpatialDetectionNetworkProperties>(device)
28+ #ifndef DEPTHAI_INTERNAL_DEVICE_BUILD_RVC4
29+ ,
2830 input{neuralNetwork->input },
2931 outNetwork{neuralNetwork->out },
30- passthrough{neuralNetwork->passthrough } {
32+ passthrough {
33+ neuralNetwork->passthrough
34+ }
35+ #endif
36+ {
3137 if (device) {
3238 auto platform = device->getPlatform ();
3339 if (platform == Platform::RVC4) {
@@ -36,7 +42,16 @@ class SpatialDetectionNetwork : public DeviceNodeCRTP<DeviceNode, SpatialDetecti
3642 }
3743 };
3844 SpatialDetectionNetwork (std::unique_ptr<Properties> props)
39- : DeviceNodeCRTP(std::move(props)), input{neuralNetwork->input }, outNetwork{neuralNetwork->out }, passthrough{neuralNetwork->passthrough } {
45+ : DeviceNodeCRTP(std::move(props))
46+ #ifndef DEPTHAI_INTERNAL_DEVICE_BUILD_RVC4
47+ ,
48+ input{neuralNetwork->input },
49+ outNetwork{neuralNetwork->out },
50+ passthrough {
51+ neuralNetwork->passthrough
52+ }
53+ #endif
54+ {
4055 auto device = getDevice ();
4156 if (device) {
4257 auto platform = device->getPlatform ();
@@ -46,7 +61,16 @@ class SpatialDetectionNetwork : public DeviceNodeCRTP<DeviceNode, SpatialDetecti
4661 }
4762 };
4863 SpatialDetectionNetwork (std::unique_ptr<Properties> props, bool confMode)
49- : DeviceNodeCRTP(std::move(props), confMode), input{neuralNetwork->input }, outNetwork{neuralNetwork->out }, passthrough{neuralNetwork->passthrough } {
64+ : DeviceNodeCRTP(std::move(props), confMode)
65+ #ifndef DEPTHAI_INTERNAL_DEVICE_BUILD_RVC4
66+ ,
67+ input{neuralNetwork->input },
68+ outNetwork{neuralNetwork->out },
69+ passthrough {
70+ neuralNetwork->passthrough
71+ }
72+ #endif
73+ {
5074 auto device = getDevice ();
5175 if (device) {
5276 auto platform = device->getPlatform ();
@@ -56,10 +80,17 @@ class SpatialDetectionNetwork : public DeviceNodeCRTP<DeviceNode, SpatialDetecti
5680 }
5781 };
5882 SpatialDetectionNetwork (const std::shared_ptr<Device>& device, std::unique_ptr<Properties> props, bool confMode)
59- : DeviceNodeCRTP(device, std::move(props), confMode),
83+ : DeviceNodeCRTP(device, std::move(props), confMode)
84+ #ifndef DEPTHAI_INTERNAL_DEVICE_BUILD_RVC4
85+ ,
86+
6087 input{neuralNetwork->input },
6188 outNetwork{neuralNetwork->out },
62- passthrough{neuralNetwork->passthrough } {
89+ passthrough {
90+ neuralNetwork->passthrough
91+ }
92+ #endif
93+ {
6394 if (device) {
6495 auto platform = device->getPlatform ();
6596 if (platform == Platform::RVC4) {
@@ -83,6 +114,7 @@ class SpatialDetectionNetwork : public DeviceNodeCRTP<DeviceNode, SpatialDetecti
83114 Subnode<DetectionParser> detectionParser{*this , " detectionParser" };
84115 std::unique_ptr<Subnode<ImageAlign>> depthAlign;
85116
117+ #ifndef DEPTHAI_INTERNAL_DEVICE_BUILD_RVC4
86118 /* *
87119 * Input message with data to be inferred upon
88120 * Default queue is blocking with size 5
@@ -100,6 +132,7 @@ class SpatialDetectionNetwork : public DeviceNodeCRTP<DeviceNode, SpatialDetecti
100132 * Suitable for when input queue is set to non-blocking behavior.
101133 */
102134 Output& passthrough;
135+ #endif
103136
104137 /* *
105138 * Input message with depth data used to retrieve spatial information about detected object
0 commit comments