Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delay in frame grabbed using blaze #244

Open
Shedino opened this issue Sep 19, 2024 · 4 comments
Open

Delay in frame grabbed using blaze #244

Shedino opened this issue Sep 19, 2024 · 4 comments

Comments

@Shedino
Copy link

Shedino commented Sep 19, 2024

Describe what you want to implement and what the issue & the steps to reproduce it are:

Using the latest version of the Humble branch with ros2 humble, and also making sure that there is no more frame available to grab by applying some modifications in the blaze grab frame implementation, there is a delay of about 300msec between the real actual scene and the blaze depth and intensity images. Is this expected (as camera image processing time) or someone has any suggestions to improve this latency? Our exposure time is well below 1 msec (about 200microsec).

Using blaze viewer it is not clear by human eye the actual delay. Images react similarly to what is viewed using rviz2.

Hardware setup description

PC with Intel core i5, x86_64 architecture
Ubuntu 22.04 LTS
16GB RAM

Blaze-101 camera with gigabit ethernet connection

Runtime information

ROS2 Humble version

Is your camera operational with the Basler pylon Viewer on your platform?

Yes

@SMA2016a
Copy link

do you see this effect also in blazeviewer?

@Shedino
Copy link
Author

Shedino commented Sep 22, 2024

I cannot really tell. These kind of delays are difficult to see by human eye...
I can say that the statistics does not show any packet errors or any retries in the communication.

@Shedino
Copy link
Author

Shedino commented Sep 25, 2024

We've profiled the whole code, and we cannot figure out where this delay can occour. We're not triggering the camera by software, trying to grab frames in free-run.
We tried also to start the actual grabbing in a new thread, so to avoid any delay in the computation, trying to use software triggering at the appropriate frame rate, but detaching the spin function seems to not work because of some device usage. Probably only the grabbing itself (with the subsequent process) may be detached? Otherwise the computation required does not permit to achieve the full frame rate. This can be also related with another issue opened: #237

@Shedino
Copy link
Author

Shedino commented Sep 30, 2024

Do you have any hints on how to make the framegrabbing multithread in a correct way? I tried to detach the spin function to a separate thread, but it seems that there is a conflict while trying to initialize the camera.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants