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

Run goalcallback asynchronously #496

Merged
merged 5 commits into from
Oct 27, 2023

Conversation

sjahr
Copy link
Contributor

@sjahr sjahr commented Oct 19, 2023

Finally address this comment in #461.

Disclaimer: I am not the original author of these changes.
This changes the behavior of the execute_task_solution_capability to not accept new execution requests if another request is currently processed. I assume the reason for this is to avoid interruptions because of incorrect execution commands. It is still possible to abort the execution with the CancelCallback.

@codecov
Copy link

codecov bot commented Oct 19, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (b25d2ba) 42.82% compared to head (fa7a25c) 42.41%.
Report is 2 commits behind head on ros2.

Additional details and impacted files
@@            Coverage Diff             @@
##             ros2     #496      +/-   ##
==========================================
- Coverage   42.82%   42.41%   -0.40%     
==========================================
  Files          82       83       +1     
  Lines        7967     8043      +76     
==========================================
  Hits         3411     3411              
- Misses       4556     4632      +76     

see 3 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sjahr sjahr requested a review from rhaschke October 20, 2023 09:17
@sjahr sjahr requested a review from sea-bass October 24, 2023 09:37
@sea-bass
Copy link
Contributor

A little hard to read, but it's right on the edge of "these lambdas should call a member function" and "it's short enough to all be inline". I'm OK with this.

@sjahr sjahr merged commit e121b49 into moveit:ros2 Oct 27, 2023
5 checks passed
rhaschke pushed a commit to ubi-agni/moveit_task_constructor that referenced this pull request Mar 9, 2024
- Rename goalCallback() -> execCallback()
- Run execCallback asynchronously and use future to know status of execution
rhaschke pushed a commit to ubi-agni/moveit_task_constructor that referenced this pull request Mar 10, 2024
* Run goalCallback in a seperate asynchronously

* Clang-tidy fixes

* Replace std::bind with lambdas

* Add comment

* Format

---------

Co-authored-by: JafarAbdi <cafer.abdi@gmail.com>
rhaschke added a commit to ubi-agni/moveit_task_constructor that referenced this pull request Mar 10, 2024
- Rename goalCallback() -> execCallback()
- Revert transition to lambdas, which made the code less readable
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.

4 participants