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

Hardware triggering #39

Open
MorganMasters opened this issue Oct 11, 2024 · 4 comments
Open

Hardware triggering #39

MorganMasters opened this issue Oct 11, 2024 · 4 comments

Comments

@MorganMasters
Copy link

MorganMasters commented Oct 11, 2024

Hi, Camera_Aravis Team,

I am working on getting a FLIR BlackFly camera (BFLY-PGE-23S6C-C) to trigger an InertialSense INS (RUG-3-IMX-5-Dual) inertial device on image capture. Currently, I have the vendor-provided software configured to perform this triggering behavior. The next step is to automatically configure the GigE camera like:

GError *local_error = NULL;
//Set the output strobe
arv_camera_set_string (camera, "LineSelector", "Line1", &local_error);
arv_camera_set_string (camera, "LineMode", "Strobe", &local_error);

The above uses the functions of the AravisProject SDK, in the template format of the aravis-c-examples repo; see my attached code for the full example (lines 92-95 are where the above code snippet originated).
06-multiple-gpio-strobe.txt

My question is simply where you would say that code snippet fits best in your ROS2 architecture, or how I would otherwise issue these commands to your ROS2 node.

Many thanks, and all the best.

@MorganMasters
Copy link
Author

Would you consider it wiser to simply set a new GeniCam UserSet, instead of having ROS2 do on-the-fly configurations?

@MorganMasters
Copy link
Author

Or perhaps through SetStringFeatureValue.srv?

@boitumeloruf
Copy link
Collaborator

Hi @MorganMasters,

the simplest and quickest way for you would be to set a new UseSet for the camera.

If you would like to let camera_aravis set it on the fly, one would have to introduce a new parameter set named 'DigitalIoControl'. since according doe the GenICam SFNC the 'LineSelector' is within this feature group. For the implementation the 'AnalogControl' could be used as a template. Because for setting balance ratios for the white balancing, the correct use of the corresponding selectors is also needed.

@MorganMasters
Copy link
Author

That is exactly the input I was looking for - many thanks!

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