File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -351,6 +351,8 @@ class SCNode
351351
352352 bool imu_enable_;
353353
354+ bool depth_correction_enable_;
355+
354356 SessionDelegate *delegate_ = nullptr ;
355357 ST::CaptureSessionSettings sessionConfig_;
356358 ST::CaptureSession captureSession_;
@@ -374,6 +376,9 @@ class SCNode
374376 ros::param::param<bool >(" ~imu_enable" , imu_enable_, false );
375377 ROS_INFO_STREAM (NODE_NAME << " : imu_enable = " << imu_enable_);
376378
379+ ros::param::param<bool >(" ~depth_correction_enable" , depth_correction_enable_, false );
380+ ROS_INFO_STREAM (NODE_NAME << " : depth_correction_enable = " << depth_correction_enable_);
381+
377382 std::string frame_id;
378383 ros::param::param<std::string>(" ~frame_id" , frame_id, DEFAULT_FRAME_ID);
379384 ROS_INFO_STREAM (NODE_NAME << " : frame_id = " << frame_id);
@@ -393,6 +398,7 @@ class SCNode
393398
394399 sessionConfig_.source = ST::CaptureSessionSourceId::StructureCore;
395400 sessionConfig_.structureCore = scConfig;
401+ sessionConfig_.applyExpensiveCorrection = depth_correction_enable_;
396402
397403 delegate_ = new SessionDelegate (nh_, frame_id, sessionConfig_);
398404 captureSession_.setDelegate (delegate_);
You can’t perform that action at this time.
0 commit comments