Is there a way to use message_filters::sync_policies in ROS2?
in ROS1, I can message_filters::sync_policies two synchronize two different topics:
typedef message_filters::sync_policies::ApproximateTime<sensor_msgs::Image, geometry_msgs::PoseStamped>
SyncPolicyImagePose;
typedef shared_ptr<message_filters::Synchronizer> SynchronizerImagePose;
SynchronizerImagePose sync_image_pose_;
sync_image_pose_.reset(new message_filters::Synchronizer(
SyncPolicyImagePose(100), *depth_sub_, *pose_sub_));
sync_image_pose_->registerCallback(boost::bind(&depthPoseCallback, this, _1, _2));