Trying to service callback fails initially in ROS [closed]

asked 2016-03-03 09:46:23 -0500

cnanda84 gravatar image

Hi,

I ported some code for a camera in C++ for ROS and subscribing to another node to capture images from it. This camera node has a start method that issues a callback function that delivers the frames. The first captured frame from the camera is very critical as I plan to do this across multiple cameras so the first frame would be ideally at the same time ( assuming the camera nodes are time synced ). 1.First question , is it possible to expect that the ROS system can respond to the callback in this way ? 2. I am observing that within the camera node , the camera driver drops the first few frames complaining that USBIO Bulk transfer failed. After printing this out for the first few frames, it works fine. I am guessing that ROS is not able to service my callback on time. The camera driver by itself doesn’t show this problem, when it is working outside the ROS environment. 3. I am calling ros::SpinOnce() , within my code just before I call the start method on the camera.

I am relatively new to ROS and was trying to dig around but couldn’t find or understand anything conclusive. If some one could share some code explanation with some code example for this case it would be great!

-Best CN

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by cnanda84
close date 2016-03-23 09:53:39.001718

Comments

Sorry my bad , the problem was with device firmware.

cnanda84 gravatar image cnanda84  ( 2016-03-23 09:53:02 -0500 )edit