update sync time

This commit is contained in:
Joe Dong
2024-03-26 15:44:02 +08:00
parent 9a5122b92b
commit 2ac2918a02
+1 -1
View File
@@ -30,7 +30,7 @@ D2CViewer::D2CViewer(rclcpp::Node* const node, rmw_qos_profile_t rgb_qos,
node_, "depth/image_raw", depth_qos);
sync_ = std::make_shared<message_filters::Synchronizer<MySyncPolicy>>(MySyncPolicy(10), *rgb_sub_,
*depth_sub_);
sync_->setMaxIntervalDuration(rclcpp::Duration::from_seconds(0.002)); // 2ms
sync_->setMaxIntervalDuration(rclcpp::Duration::from_seconds(0.10)); // 100ms
using std::placeholders::_1;
using std::placeholders::_2;