ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Answer (should work with regular messages as well):

SubscriberFilter leftsub = leftsub(it, "/multisense_sl/camera/left/image_raw", 1);

SubscriberFilter rightsub = rightsub(it, "/multisense_sl/camera/right/image_raw", 1);

TimeSynchronizer<image, image=""> sync(leftsub, rightsub, 10);

sync.registerCallback(boost::bind(&imagesub::callback, this, _1, _2));

void imagesub::callback(const ImageConstPtr& left, const ImageConstPtr& right) { }

click to hide/show revision 2
highlighting

Answer (should work with regular messages as well):

SubscriberFilter leftsub = leftsub(it, "/multisense_sl/camera/left/image_raw", 1);

1); SubscriberFilter rightsub = rightsub(it, "/multisense_sl/camera/right/image_raw", 1);

TimeSynchronizer<image, image=""> 1); TimeSynchronizer<Image, Image> sync(leftsub, rightsub, 10);

10); sync.registerCallback(boost::bind(&imagesub::callback, this, _1, _2));

_2)); void imagesub::callback(const ImageConstPtr& left, const ImageConstPtr& right) { }

}
click to hide/show revision 3
highlighting

Answer (should work with regular messages as well):

SubscriberFilter leftsub = leftsub(it, "/multisense_sl/camera/left/image_raw", 1);
SubscriberFilter rightsub = rightsub(it, "/multisense_sl/camera/right/image_raw", 1);
TimeSynchronizer<Image, Image> sync(leftsub, rightsub, 10);
sync.registerCallback(boost::bind(&imagesub::callback, this, _1, _2));
void imagesub::callback(const ImageConstPtr& left, const ImageConstPtr& right) {
}