Skip to content

Commit

Permalink
Preparing for qos deprecation (#315)
Browse files Browse the repository at this point in the history
Signed-off-by: CursedRock17 <[email protected]>
  • Loading branch information
CursedRock17 authored Jun 6, 2024
1 parent 59e2fa0 commit 1dd7a60
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion image_transport/src/camera_subscriber.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ CameraSubscriber::CameraSubscriber(
std::string info_topic = getCameraInfoTopic(image_topic);

impl_->image_sub_.subscribe(node, image_topic, transport, custom_qos);
impl_->info_sub_.subscribe(node, info_topic, custom_qos);
impl_->info_sub_.subscribe(node, info_topic,
rclcpp::QoS(rclcpp::QoSInitialization::from_rmw(custom_qos)));

impl_->sync_.connectInput(impl_->image_sub_, impl_->info_sub_);
impl_->sync_.registerCallback(std::bind(callback, std::placeholders::_1, std::placeholders::_2));
Expand Down

0 comments on commit 1dd7a60

Please sign in to comment.