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

Revision history [back]

You do a lot of work in your callback, and your subscribe queue is limited to one image. It is not surprising that frames get dropped while your callback is busy with your classifier.

As I see it, you have three options:

  1. Ignore the frame drops, and process just those frames you can actually handle.

  2. Increase the queue size. This will only work if you can keep up with the frame rate most of the time. Otherwise, your queue will just fill up and your node will lag behind accordingly.

  3. Use a faster classifier.

You do a lot of work in your callback, and your subscribe queue is limited to one image. It is not surprising that frames get dropped while your callback is busy with your classifier.

As I see it, you have three options:

  1. Ignore the frame drops, and process just those frames you can actually handle.

  2. Increase the queue size. This will only work if you can keep up with the frame rate most of the time. Otherwise, your queue will just fill up and your node will lag behind accordingly.

  3. Use a faster Improve upon the speed of your classifier.

You do a lot of work in your callback, and your subscribe queue is limited to one image. It is not surprising that frames get dropped while your callback is busy with your classifier.

As I see it, you have three options:

  1. Ignore the frame drops, and process just those frames you can actually handle.

  2. Increase the queue size. This will only work if you can keep up with the frame rate most of the time. Otherwise, your queue will just fill up and your node will lag behind accordingly.

  3. Improve upon the speed of your classifier.classifier. Use a faster algorithm and/or reduce the image size.

You do a lot of work in your callback, and your subscribe queue is limited to one image. It is not surprising that frames get dropped while your callback is busy with your classifier.

As I see it, you have three options:

  1. Ignore the frame drops, and process just those frames you can actually handle.

  2. Increase the queue size. This will only work if you can keep up with the frame rate most of the time. Otherwise, your queue will just fill up and your node will lag behind accordingly.

  3. Do less work in your callback. Improve the speed of your classifier. Use a faster algorithm and/or reduce the image size.classifier.