mirror of
https://github.com/orbbec/OrbbecSDK_ROS2.git
synced 2026-10-04 20:17:47 +08:00
add enable frame sync
This commit is contained in:
@@ -18,7 +18,7 @@ def generate_launch_description():
|
|||||||
DeclareLaunchArgument('vendor_id', default_value='0x2bc5'),
|
DeclareLaunchArgument('vendor_id', default_value='0x2bc5'),
|
||||||
DeclareLaunchArgument('product_id', default_value=''),
|
DeclareLaunchArgument('product_id', default_value=''),
|
||||||
DeclareLaunchArgument('enable_point_cloud', default_value='true'),
|
DeclareLaunchArgument('enable_point_cloud', default_value='true'),
|
||||||
DeclareLaunchArgument('enable_colored_point_cloud', default_value='false'),
|
DeclareLaunchArgument('enable_colored_point_cloud', default_value='true'),
|
||||||
DeclareLaunchArgument('point_cloud_qos', default_value='default'),
|
DeclareLaunchArgument('point_cloud_qos', default_value='default'),
|
||||||
DeclareLaunchArgument('connection_delay', default_value='100'),
|
DeclareLaunchArgument('connection_delay', default_value='100'),
|
||||||
DeclareLaunchArgument('color_width', default_value='640'),
|
DeclareLaunchArgument('color_width', default_value='640'),
|
||||||
|
|||||||
@@ -253,6 +253,9 @@ void OBCameraNode::startStreams() {
|
|||||||
onNewFrameSetCallback(frame_set);
|
onNewFrameSetCallback(frame_set);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
if (pipeline_ && (depth_registration_ || enable_colored_point_cloud_)) {
|
||||||
|
pipeline_->enableFrameSync();
|
||||||
|
}
|
||||||
pipeline_started_.store(true);
|
pipeline_started_.store(true);
|
||||||
startIMU();
|
startIMU();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user