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

Automatically set the GVSP Packet size. #2

Closed
wants to merge 4 commits into from
Closed

Automatically set the GVSP Packet size. #2

wants to merge 4 commits into from

Conversation

lucasb-eyer
Copy link
Contributor

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.

This is necessary at least for the G-046C, and it's being done by the
API examples, too.
@miquelmassot
Copy link
Contributor

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.

@lucasb-eyer
Copy link
Contributor Author

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 :)

@lucasb-eyer
Copy link
Contributor Author

sorry for the noise, had a little fight with git :-/

@miquelmassot
Copy link
Contributor

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 ;-)

@miquelmassot
Copy link
Contributor

You could simplify it by:

if ( cam_int_type == VmbInterfaceEthernet ){
  runCommand("GVSPAdjustPacketSize")
}

@lucasb-eyer
Copy link
Contributor Author

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?

@miquelmassot
Copy link
Contributor

I may be interested in you setup. Are you syncing the cameras? I'm trying to set a stereo pair.

@lucasb-eyer
Copy link
Contributor Author

There was a bit more to your suggestion than meets the eye: vimba_camera_ptr_ isn't yet set at that point. Let me know when it's ready to merge and I'll squash the commits.

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 😄

@miquelmassot
Copy link
Contributor

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.

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

Successfully merging this pull request may close these issues.

2 participants