-
Notifications
You must be signed in to change notification settings - Fork 260
Feature: expose event callback setter in subscription, service, client and timer #1496
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
Feature: expose event callback setter in subscription, service, client and timer #1496
Conversation
Signed-off-by: Nadav Elkabets <[email protected]>
Signed-off-by: Nadav Elkabets <[email protected]>
Signed-off-by: Nadav Elkabets <[email protected]>
Signed-off-by: Nadav Elkabets <[email protected]>
Signed-off-by: Nadav Elkabets <[email protected]>
Signed-off-by: Nadav Elkabets <[email protected]>
d4de3d0 to
8094f15
Compare
Signed-off-by: Nadav Elkabets <[email protected]>
Signed-off-by: Nadav Elkabets <[email protected]>
Signed-off-by: Nadav Elkabets <[email protected]>
Signed-off-by: Nadav Elkabets <[email protected]>
|
@sloretz @fujitatomoya @mjcarroll @wjwwood @ahcorde |
Signed-off-by: Nadav Elkabets <[email protected]>
|
@mjcarroll @wjwwood @skyegalaxy |
Signed-off-by: Nadav Elkabets <[email protected]>
|
@fujitatomoya do you have the time to take a look at this PR? |
|
looking at the PR just from a C++ and python perspective, everything looks alright to me. I'll defer to others with more rclpy experience as I've mostly spent time on the rclcpp side. I appreciate that the code will now bubble up the exceptions and exit instead of silently failing! |
wjwwood
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm too, with a small non-blocking suggestion
Co-authored-by: William Woodall <[email protected]> Signed-off-by: Nadav Elkabets <[email protected]>
|
Would be great to run CI on this PR. |
|
Pulls: #1496 |
|
@wjwwood thanks for reviewing this 🚀 @nadavelkabets CI is just started. |
0fea2c1 to
095f3d0
Compare
Signed-off-by: Nadav Elkabets <[email protected]>
095f3d0 to
e2452bb
Compare
|
@fujitatomoya I made the following fixes:
Could you please run CI again? |
|
@nadavelkabets all gree, i will go ahead to merge this. thank you very much for your contribution. |
|
@fujitatomoya Could we backport this as well? |
|
@Mergifyio backport kilted jazzy |
✅ Backports have been created
|
…t and timer (#1496) * Added set_on_new_response_callback Signed-off-by: Nadav Elkabets <[email protected]> * Added set_on_new_request_callback Signed-off-by: Nadav Elkabets <[email protected]> * Added set_on_new_message_callback Signed-off-by: Nadav Elkabets <[email protected]> * Added set_on_reset_callback Signed-off-by: Nadav Elkabets <[email protected]> * Added type hints to pyi Signed-off-by: Nadav Elkabets <[email protected]> * Added test for subscription Signed-off-by: Nadav Elkabets <[email protected]> * Added test for timer Signed-off-by: Nadav Elkabets <[email protected]> * Added test for client Signed-off-by: Nadav Elkabets <[email protected]> * Added test for service Signed-off-by: Nadav Elkabets <[email protected]> * Fixed lint Signed-off-by: Nadav Elkabets <[email protected]> * Avoid throwing into c code Signed-off-by: Nadav Elkabets <[email protected]> * Print newline after logging exception Co-authored-by: William Woodall <[email protected]> Signed-off-by: Nadav Elkabets <[email protected]> * Improve logging and cleanup Signed-off-by: Nadav Elkabets <[email protected]> --------- Signed-off-by: Nadav Elkabets <[email protected]> Signed-off-by: Nadav Elkabets <[email protected]> Co-authored-by: William Woodall <[email protected]> (cherry picked from commit c834c24) # Conflicts: # rclpy/test/test_service.py # rclpy/test/test_subscription.py
…t and timer (#1496) * Added set_on_new_response_callback Signed-off-by: Nadav Elkabets <[email protected]> * Added set_on_new_request_callback Signed-off-by: Nadav Elkabets <[email protected]> * Added set_on_new_message_callback Signed-off-by: Nadav Elkabets <[email protected]> * Added set_on_reset_callback Signed-off-by: Nadav Elkabets <[email protected]> * Added type hints to pyi Signed-off-by: Nadav Elkabets <[email protected]> * Added test for subscription Signed-off-by: Nadav Elkabets <[email protected]> * Added test for timer Signed-off-by: Nadav Elkabets <[email protected]> * Added test for client Signed-off-by: Nadav Elkabets <[email protected]> * Added test for service Signed-off-by: Nadav Elkabets <[email protected]> * Fixed lint Signed-off-by: Nadav Elkabets <[email protected]> * Avoid throwing into c code Signed-off-by: Nadav Elkabets <[email protected]> * Print newline after logging exception Co-authored-by: William Woodall <[email protected]> Signed-off-by: Nadav Elkabets <[email protected]> * Improve logging and cleanup Signed-off-by: Nadav Elkabets <[email protected]> --------- Signed-off-by: Nadav Elkabets <[email protected]> Signed-off-by: Nadav Elkabets <[email protected]> Co-authored-by: William Woodall <[email protected]> (cherry picked from commit c834c24) # Conflicts: # rclpy/rclpy/impl/_rclpy_pybind11.pyi # rclpy/test/test_service.py # rclpy/test/test_subscription.py # rclpy/test/test_timer.py
|
@nadavelkabets we can backport this, so i requested kilted and jazzy for now. i did not create humble one, because the code base is really different. |
…t and timer Original PR #1496 by nadavelkabets Original: ros2/rclpy#1496
…ription, service, client and timer Merged from original PR #1496 Original: ros2/rclpy#1496
…t and timer Original PR #1496 by nadavelkabets Original: ros2/rclpy#1496
…ription, service, client and timer Merged from original PR #1496 Original: ros2/rclpy#1496
Part of #1399.