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

Multicam triggering async #10

Open
mikeNike9 opened this issue May 13, 2019 · 1 comment
Open

Multicam triggering async #10

mikeNike9 opened this issue May 13, 2019 · 1 comment
Assignees
Labels

Comments

@mikeNike9
Copy link

mikeNike9 commented May 13, 2019

Hello

I wanted to reach out and figure out if this would be possible.
This is what is happening now.

I am running 8 cameras now and I want to optimize my code.
Right now we do this.

SwTrigger the camera and wait for the frame to be returned.
we do this for each camera sequentially.
This takes some time to do. Sometimes 2.5 seconds.

I would like to do the following but I have not had success.

SWtrigger each camera sequentially so they do not overlap.
This should take about 10 ms
then I would like to thread each cameras framegrabber to wait for a frame all at the same time. This seems straight forward but I seem to be having memory leak issues when I run the test and the data returned is inconsistent. I believe the shared_ptrs involved might be causing the issue.
It doesn't seem cooperate when I thread the fgs[index]->WaitForFrame(imgs[index].get(), 1000)

I can provide some code if needed.
Any thoughts or sample code on this.
The only multicam IFM3D sample code is sequential.

The Final goal would be able to asynchronously trigger each camera at the same time. That being 8 sensors or 20 sensors. I would like to grab data for all cameras without having to go through the list one by one.

@graugans
Copy link
Member

@mikeNike9 could you please be so kind and share the configuration with us. I am interested in imager set-up and mode. Are all cameras using the same settings? The team will prepare a demo based on the information provided here: ifm/libo3d3xx#46

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

No branches or pull requests

4 participants