mirror of
https://github.com/orbbec/OrbbecSDK_ROS2.git
synced 2026-10-11 15:09:48 +08:00
fix: limit unaligned depth topic to software D2C
This commit is contained in:
@@ -5792,6 +5792,11 @@ void OBCameraNode::syncSoftwareAlignment() {
|
|||||||
align_filter_ = std::make_unique<ob::Align>(align_target_stream_);
|
align_filter_ = std::make_unique<ob::Align>(align_target_stream_);
|
||||||
RCLCPP_INFO_STREAM(logger_, "set align mode to " << align_mode_);
|
RCLCPP_INFO_STREAM(logger_, "set align mode to " << align_mode_);
|
||||||
}
|
}
|
||||||
|
if (align_target_stream_ != OB_STREAM_COLOR) {
|
||||||
|
releaseGlobalImageTransportPublisher(*node_, "depth/image_unaligned");
|
||||||
|
depth_unaligned_publisher_.reset();
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (!depth_unaligned_publisher_) {
|
if (!depth_unaligned_publisher_) {
|
||||||
const auto depth_image_qos_profile = getImageQosProfile(DEPTH);
|
const auto depth_image_qos_profile = getImageQosProfile(DEPTH);
|
||||||
if (use_intra_process_) {
|
if (use_intra_process_) {
|
||||||
|
|||||||
Reference in New Issue
Block a user