Problem related to timesynchronizer

asked 2014-07-14 07:18:56 -0500

adarshtm gravatar image

updated 2014-07-14 08:34:09 -0500

I'm new to ROS and I'm tring to synchronize two subscribers saliency_sub and gt_frame_sub which are of type sensor_msgs::Image.

I tried synchrozing it through

sync = new message_filters::TimeSynchronizer<sensor_msgs::Image,sensor_msgs::Image> (saliency_sub, gt_frame_sub, 10);

After building it i get the following error message

/opt/ros/hydro/include/message_filters/synchronizer.h: In instantiation of ‘void message_filters::Synchronizer<Policy>::connectInput(F0&, F1&, F2&, F3&, F4&, F5&, F6&, F7&, F8&) [with F0 = message_filters::Subscriber<sensor_msgs::Image_<std::allocator<void> > >*; F1 = message_filters::Subscriber<sensor_msgs::Image_<std::allocator<void> > >*; F2 = message_filters::NullFilter<message_filters::NullType>; F3 = message_filters::NullFilter<message_filters::NullType>; F4 = message_filters::NullFilter<message_filters::NullType>; F5 = message_filters::NullFilter<message_filters::NullType>; F6 = message_filters::NullFilter<message_filters::NullType>; F7 = message_filters::NullFilter<message_filters::NullType>; F8 = message_filters::NullFilter<message_filters::NullType>; Policy = message_filters::sync_policies::ExactTime<sensor_msgs::Image_<std::allocator<void> >, sensor_msgs::Image_<std::allocator<void> >, message_filters::NullType, message_filters::NullType, message_filters::NullType, message_filters::NullType, message_filters::NullType, message_filters::NullType, message_filters::NullType>]’:

I kow the error is related to template of timesynchronizer but, I don't know how to fix it. Do help me out with this.

edit retag flag offensive close merge delete