-
Notifications
You must be signed in to change notification settings - Fork 72
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
Add pollForService feature #509
Conversation
Thanks for your contribution! Indeed, we should have these two functions to facilitate developers, otherwise, they will meet the situation you describe. Some suggestions:
|
Thanks for the comments! I changed For the mac tests, it looks like it fails in |
Yes, some tests become flaky at a low rate, so you have to rerun it manually. Once it becomes green and we can land it. The problem on travis-ci should have been fixed by ros2/ament_cmake_ros#5, you can try to trigger the bot again after there is a newly built package on the ci.ros2.org. Thanks! |
As all bots turn green, I create an issue #512 to track this feature and will merge it soon, thanks! |
@koonpeng PR has been merged, thanks! You are always welcome to contribute any new features to this module if you are interested in. Actually, #498 has a detailed summary of the current future absence compared with |
I notice rclnodejs blocks indefinitely when doing a service call immediately after creating a client. This is possibly because the service is not ready yet.
This PR adds
isServiceServerAvailable
andpollForService
method. They aim to provide the same functionality aswait_for_service
in rclpy. (https://github.com/ros2/rclpy/blob/1cf216dd9ecd4359dc93f317e01b7386d5a36c5a/rclpy/rclpy/client.py#L146)