-
Notifications
You must be signed in to change notification settings - Fork 94
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
Automatically set the GVSP Packet size. #2
Conversation
This is necessary at least for the G-046C, and it's being done by the API examples, too.
Hi @lucasb-eyer, thanks for the contribution! Right now I'm restructuring the package in order to accomodate stereo-capable avt cameras and (hopefully) I'll finish coding soon. I'll try to integrate your modifications ASAP. |
Hi, no stress, it's not urgent to me since we can use my fork in the meantime, just wanted to share and potentially save others days of debugging :) |
sorry for the noise, had a little fight with git :-/ |
I'll to some tests on this issue. If there's only one camera the adjustment may be fine, but if there are more than one cameras, we may need to adjust it manually. Don't worry for the noise. Hit harder ;-) |
You could simplify it by:
|
… indigo Conflicts: src/vimba_ros.cpp
Fixed the merge conflict, will look at your suggestion. I also feared the two-camera thing, but we are currently using this as-is with two cameras and it (seems to) work fine. The two cameras and the laptop are all connected by a switch. Is there some test you want me to run in order to verify? |
I may be interested in you setup. Are you syncing the cameras? I'm trying to set a stereo pair. |
There was a bit more to your suggestion than meets the eye: I don't know about the syncing yet; right now we're just looking at the two images in parallel (in Continuous mode), next step is to look into that. We don't have disparity/depth yet, and I've never done it before 😄 |
I didn't see that issue with the camera pointer. So I moved your lines after the camera opening, so that the pointer is already initialized. However, I had to get the interface type again. |
This is necessary at least for the G-046C, and it's being done by the
API examples, too. Without it, the node receives frames which don't fail but have 0 data size.