-
Notifications
You must be signed in to change notification settings - Fork 316
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
Final batch of examples #327
Conversation
Signed-off-by: Aditya Pande <aditya050995@gmail.com>
Signed-off-by: Aditya Pande <aditya050995@gmail.com>
Signed-off-by: Aditya Pande <aditya050995@gmail.com>
Signed-off-by: Aditya Pande <aditya050995@gmail.com>
Signed-off-by: Aditya Pande <aditya050995@gmail.com>
@ivanpauno if I make |
TODO :
|
Signed-off-by: Aditya Pande <aditya050995@gmail.com>
Signed-off-by: Aditya Pande <aditya050995@gmail.com>
Signed-off-by: Aditya Pande <aditya050995@gmail.com>
You can, it's just a bit tricky. |
...h_testing/launch_testing_examples/launch_testing_examples/check_multiple_node_launch_test.py
Outdated
Show resolved
Hide resolved
launch_testing/launch_testing_examples/launch_testing_examples/record_rosbag_launch_test.py
Outdated
Show resolved
Hide resolved
Signed-off-by: Aditya Pande <aditya050995@gmail.com>
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.
Thanks for adding these examples! Most of my comments below are minor nitpicks.
...h_testing/launch_testing_examples/launch_testing_examples/check_multiple_node_launch_test.py
Outdated
Show resolved
Hide resolved
...h_testing/launch_testing_examples/launch_testing_examples/check_multiple_node_launch_test.py
Outdated
Show resolved
Hide resolved
...h_testing/launch_testing_examples/launch_testing_examples/check_multiple_node_launch_test.py
Outdated
Show resolved
Hide resolved
launch_testing/launch_testing_examples/launch_testing_examples/record_rosbag_launch_test.py
Outdated
Show resolved
Hide resolved
|
||
def test_delay(self): | ||
"""Delay the shutdown of processes so that rosbag can record some messages.""" | ||
time.sleep(3) |
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.
This seems like a potential gap in launch_testing. It would be nice if there was a launch_testing feature that could delay the shutdown event. I know there is a KeepAlive
action, but I don't know if that is exactly what we want here.
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.
You can just add a Timer
action in the launch description with a 3s period that does nothing.
That will keep the launch service alive and delay the shutdown.
It's still kind of a hack though.
launch_testing/launch_testing_examples/launch_testing_examples/record_rosbag_launch_test.py
Outdated
Show resolved
Hide resolved
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 with @jacobperron comments addressed
Signed-off-by: Aditya Pande <aditya050995@gmail.com>
..._testing/launch_testing_examples/launch_testing_examples/check_multiple_nodes_launch_test.py
Outdated
Show resolved
Hide resolved
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 with green CI
Signed-off-by: Aditya Pande <aditya050995@gmail.com>
Signed-off-by: Aditya Pande <aditya050995@gmail.com>
Signed-off-by: Aditya Pande <aditya050995@gmail.com>
Not sure why but Windows CI can't find the |
I have no idea, I would recommend testing on a windows VM. |
Signed-off-by: Aditya <aditya050995@gmail.com>
Signed-off-by: Aditya <aditya050995@gmail.com>
Signed-off-by: Aditya <aditya050995@gmail.com>
launch_testing/launch_testing_examples/launch_testing_examples/record_rosbag_launch_test.py
Show resolved
Hide resolved
|
Signed-off-by: Aditya <aditya050995@gmail.com>
Moved from ros2/launch_ros#269
Signed-off-by: Aditya Pande aditya050995@gmail.com