-
Notifications
You must be signed in to change notification settings - Fork 43
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
Unable to pass the ptpAcquisitionGateTime property for fixed rate frame synchronization #97
Comments
Hi @sskulka, Assuming you are talking about the ROS1 version, all configs are defined in the So if you'd like to add a new config/feature, you'd need to update the cfg file, then add code in Also, the approach you describe is the same approach that Chris described here. You may have some luck by checking out his fork of the repo, perhaps he already has a solution implemented. Also, the ROS2 version of this driver creates the ROS parameters dynamically based on the camera, meaning almost every feature/setting the camera supports is available as a ROS parameter. Perhaps that may be an option for you too. |
Hi @icolwell-as , Yes I'm writing in context to ROS1, thanks for describing the flow and pointing to Chris' work pertaining that. He's actually our advisor on the project and after speaking with him on this issue, we realized that we don't need to add 'PtpAcquisitionGateTime' to the config since it is a runtime set value. |
Hi @sskulka, your screenshots appear to show me the existing code, but what about the code changes you made? I ask because the |
Hi @icolwell-as , |
@icolwell-as |
Hi @sskulka, I've never used the
Also, were you able to get it to work from Vimba Viewer? If it also doesn't work from Vimba Viewer, then the issue is unrelated to the ROS driver, and maybe following up with AVT support is the best approach. |
Hi @icolwell-as , As a sanity check, we set the PtpAcquisitionGateTime entries in the AvtVimbaCameraConfig.h and AvtVimbaCamera.cfg file by mimicking the existing feature entries in those files. Then we tried using the VimbaAPI and getting the value from the feature but it is not showing. Is the feature entry not being present on the config object of the ROS driver a possible cause of issue? We were able to save the config containing PtpAcquisitionGateTime from Vimba Viewer, is there a way in which we can pass the xml file as an input in the constructor of the config object? I didn't find any overload that had a string path in it. |
Hi @sskulka, if you added a new field to the I also dug up more information on the error you are seeing:
The driver will always open the camera with VmbAccessModeFull, so I don't see why this would not work. Maybe try opening the camera in a different access mode? maybe the config one?
Additionally, it might be worth double-checking that the firmware on the cameras are up-to-date. |
Hi @icolwell-as , |
Interesting, I'm not sure why the It sounds like you have a working solution for now though? |
Yes, do you think this is a bug of some kind then? Yes, we seemed to have triggered our acquisition after the given offset through the code which means the parameter is taking effect. |
It seems like a bug to me, since you clearly have the correct access mode if it was able to apply the feature. Doesn't seem like it should throw that error. |
I'm actually having trouble configuring my USB cameras as well (afaik, configuring USB cameras should be exactly the same as GigE) and im seeing some very similar stuff:
Im seeing exactly the same thing, this is confusing indeed
Im seeing this even with the default parameters that are enabled by this driver. In fuction
and after launching the driver I get output (see the parameters where it says The camera was started with R/W access:
To me this seems to indicate that even some default parameters are not being written to camera. I don't know if this is just on my USB camera or this also happenes on GigE cameras?
Setting these same parameters from Vimba Viewer works completely fine
When I tried opening with
any idea what to do next? |
I see, thank you @icolwell-as Just as a clue for people still researching this, i think actually been able to solve the avt_vimba_camera/src/avt_vimba_camera.cpp Line 792 in 31f04d4
as a result im getting an error
but at least all the parameters are set every time without the |
Hi Janez, Same here, I'm having trouble with stopping image acquisition. Any updates on that? |
@dagata-mining yes, I've ended up solving it in a separate fork https://github.com/flx-robotics/avt_vimba_camera/tree/feature-usbcam-1800u-240 (tested only with 1800u-240 cameras) along with some other problems i had, namely #103 |
Hello,
My team & I are currently working on a project that involves multiple Mako G319C camera ptp synchronization. The approach we are following is attached in the image below
However once we try to set the PtpAcquisitionGateTime through the configureFeature function, we noticed that no such property exists on the camera config object which is not the case with other properties. We did some digging as to how the properties are created for the config object through parameters from the config cfg file. We are unsure of how these properties are passed on to the camera object to take effect. Could you please make us aware of how the flow of the code is and what would be the best approach to set the ptpAcquisitionGateTime through the ROS driver? (We were able to manually set it in the vimba viewer but that's not what we want)
The text was updated successfully, but these errors were encountered: