@@ -80,8 +80,9 @@ void Stereo::setNames() {
80
80
81
81
void Stereo::setXinXout (std::shared_ptr<dai::Pipeline> pipeline) {
82
82
bool outputDisparity = ph->getParam <bool >(" i_output_disparity" );
83
+ bool lowBandwidth = ph->getParam <bool >(" i_low_bandwidth" );
83
84
std::function<void (dai::Node::Input)> stereoLinkChoice;
84
- if (outputDisparity) {
85
+ if (outputDisparity || lowBandwidth ) {
85
86
stereoLinkChoice = [&](auto input) { stereoCamNode->disparity .link (input); };
86
87
} else {
87
88
stereoLinkChoice = [&](auto input) { stereoCamNode->depth .link (input); };
@@ -92,7 +93,7 @@ void Stereo::setXinXout(std::shared_ptr<dai::Pipeline> pipeline) {
92
93
encConf.bitrate = ph->getParam <int >(" i_low_bandwidth_bitrate" );
93
94
encConf.frameFreq = ph->getParam <int >(" i_low_bandwidth_frame_freq" );
94
95
encConf.quality = ph->getParam <int >(" i_low_bandwidth_quality" );
95
- encConf.enabled = ph-> getParam < bool >( " i_low_bandwidth " ) ;
96
+ encConf.enabled = lowBandwidth ;
96
97
97
98
stereoPub = setupOutput (pipeline, stereoQName, stereoLinkChoice, ph->getParam <bool >(" i_synced" ), encConf);
98
99
}
@@ -155,7 +156,7 @@ void Stereo::setupRectQueue(std::shared_ptr<dai::Device> device,
155
156
pubConfig.width = ph->getOtherNodeParam <int >(sensorName, " i_width" );
156
157
pubConfig.height = ph->getOtherNodeParam <int >(sensorName, " i_height" );
157
158
pubConfig.topicName = " ~/" + sensorName;
158
- pubConfig.topicSuffix = rsCompabilityMode () ? " /image_rect_raw" : " /image_raw " ;
159
+ pubConfig.topicSuffix = rsCompabilityMode () ? " /image_rect_raw" : " /image_rect " ;
159
160
pubConfig.maxQSize = ph->getOtherNodeParam <int >(sensorName, " i_max_q_size" );
160
161
pubConfig.socket = sensorInfo.socket ;
161
162
pubConfig.infoMgrSuffix = " rect" ;
0 commit comments