Repository navigation
aligh with rcl that a rosout publisher of a node might not exist - #1196
Merged
clalancette merged 5 commits intoNov 15, 2023
Merged
clalancette merged 5 commits into
clalancette merged 5 commits into
Conversation
Signed-off-by: Chen Lihui <[email protected]>
iuhilnehc-ynos
requested review from
adityapande-1995 and
sloretz
as code owners
November 3, 2023 06:26
3 tasks
added 2 commits
November 6, 2023 09:30
Signed-off-by: Chen Lihui <[email protected]>
reset error message for RCL_RET_NOT_FOUND as well Signed-off-by: Chen Lihui <[email protected]>
fujitatomoya
reviewed
Nov 9, 2023
clalancette
requested changes
Nov 13, 2023
clalancette
left a comment
Contributor
There was a problem hiding this comment.
I think we need to add a test for this situation, but it otherwise looks good.
| self.executor.spin_until_future_complete(self.fut, 3) | ||
| self.assertTrue(self.fut.done()) | ||
|
|
||
| def test_node_logger_not_exist(self): |
Contributor
There was a problem hiding this comment.
I think we want to add a test to ensure that the situation from #1195 doesn't occur again. The following code (which needs to be adapted into a test) reproduced for me:
import rclpy
from rclpy.action import ActionServer
from example_interfaces.action import Fibonacci
class MyClass:
def __init__(self, node):
self.action_server = ActionServer(
node,
Fibonacci,
"/fibonacci_action_1",
self.execute_callback,
)
def execute_callback(self):
print("Execute callback")
rclpy.init()
node = rclpy.create_node("mynode", enable_rosout=False)
x = MyClass(node)
node.destroy_node()
rclpy.try_shutdown()
Contributor
Author
There was a problem hiding this comment.
Thanks.
I used the similar logic to test the case. Updated in fc84c5e.
fujitatomoya
approved these changes
Nov 14, 2023
added 2 commits
November 14, 2023 09:27
Signed-off-by: Chen Lihui <[email protected]>
Signed-off-by: Chen Lihui <[email protected]>
clalancette
approved these changes
Nov 15, 2023
Contributor
|
CI for this is in ros2/rcl#1115 (comment) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
align with ros2/rcl#1115