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

Trigger over Ethernet #39

Merged
merged 8 commits into from
Nov 24, 2021
Merged

Trigger over Ethernet #39

merged 8 commits into from
Nov 24, 2021

Conversation

icolwell-as
Copy link
Member

Resolves #25 by building off of the example left by PR #21

This PR adds a node for enabling ethernet-based triggers. The node will send vimba "actions" (triggers) to the camera based on a repeating timer or based on a subscriber being called.

The Vimba "action" functionality has also been added to the camera configs to allow the ROS driver to configure the camera to be ready to accept action commands.

Tested on Mako G-319

dvangeyn-as
dvangeyn-as previously approved these changes Nov 19, 2021
@@ -342,9 +346,6 @@ CameraPtr AvtVimbaCamera::openCamera(std::string id_str) {
}
}

// set previous handler back

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why this is removed?
The signal() function defines the handling of the next received signal only, after which the default handling is reinstated. So it is necessary for the signal handler to call signal() if the program needs to continue handling signals using a non-default handler.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch, this change is unintentional, I pulled in commits from PR #21 which must have changed this since the PR was based off of an old version of master.
I'll fix.

src/trigger.cpp Outdated

Trigger::Trigger() : vimba_system_(AVT::VmbAPI::VimbaSystem::GetInstance()), pnh_("~")
{
vimba_system_.Startup();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the Startup() call return a true or false?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like it does, I'll add a return value check.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If that is case, call it inside the Init() function instead of the constructor.

@icolwell-as icolwell-as merged commit 2800e24 into master Nov 24, 2021
@icolwell-as icolwell-as deleted the trigger_over_ethernet branch November 24, 2021 14:40
@icolwell-as icolwell-as mentioned this pull request Nov 24, 2021
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.

Driver does not support Trigger over Ethernet
3 participants