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

Have the EventsExecutor use more common code #2570

Merged
merged 11 commits into from
Jul 22, 2024

Conversation

alsora
Copy link
Collaborator

@alsora alsora commented Jun 29, 2024

The EventsExecutor was creating its own entities collector, collection ,etc.
Now that these are part of the executor base class, the events executor should just use them.

This PR should not do any functional change, but only reorganizing the code and reducing duplications.

this->add_notify_waitable_to_collection(current_entities_collection_->waitables);

notify_waitable_->add_guard_condition(interrupt_guard_condition_);
notify_waitable_->add_guard_condition(shutdown_guard_condition_);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

these 3 lines above are done in the base class

notify_waitable_->add_guard_condition(shutdown_guard_condition_);

notify_waitable_->set_on_ready_callback(
this->create_waitable_callback(notify_waitable_.get()));
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this was likely the result of a bad merge, as the same thing is then done again (and correctly) in the line below

@alsora alsora force-pushed the asoragna/commonize-executor branch from 423f712 to 97c24e8 Compare June 29, 2024 23:29
Signed-off-by: Alberto Soragna <[email protected]>
@mjcarroll mjcarroll self-assigned this Jul 12, 2024
@mjcarroll mjcarroll self-requested a review July 12, 2024 17:58
Copy link
Member

@mjcarroll mjcarroll left a comment

Choose a reason for hiding this comment

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

Always good to see code disappear!

@ahcorde
Copy link
Contributor

ahcorde commented Jul 15, 2024

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Linux-rhel Build Status
  • Windows Build Status

@alsora
Copy link
Collaborator Author

alsora commented Jul 15, 2024

Mmm I see this in the logs

08:35:04 [ssh-agent] Looking for ssh-agent implementation...
08:35:04 [ssh-agent]   Exec ssh-agent (binary ssh-agent on a remote machine)
08:35:04 $ ssh-agent
08:35:04 [ssh-agent]   Java/JNR ssh-agent
08:35:05 ERROR: [ssh-agent] Could not register BouncyCastle on the remote agent.

trying again:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Linux-rhel Build Status
  • Windows Build Status

@alsora
Copy link
Collaborator Author

alsora commented Jul 16, 2024

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Linux-rhel Build Status
  • Windows Build Status

@alsora
Copy link
Collaborator Author

alsora commented Jul 18, 2024

  • Linux Build Status

@mjcarroll
Copy link
Member

mjcarroll commented Jul 22, 2024

CI looks like there were some warnings in message filters, unrelated to the changes here.

Edit: they were addressed by ros-perception/point_cloud_transport#94

@mjcarroll mjcarroll merged commit 54b8f9c into rolling Jul 22, 2024
3 checks passed
@mjcarroll mjcarroll deleted the asoragna/commonize-executor branch July 22, 2024 13:43
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.

3 participants