-
Notifications
You must be signed in to change notification settings - Fork 35
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
[Bug] Need to adjust querier timeout for ROS 2 Action examples #369
Comments
The question of the default timeout value for Services and Actions calls is a tricky one, as ROS 2 doesn't manage any timeout on such calls. But a timeout is required for any Zenoh queries. I think that in 5 seconds is already large for all the Service calls. Only Actions might take longer (for instance a mission to make a robot to follow a navigation path can take several minutes or even hours). The design of an Action is actually asynchronous with 2 distinct Services calls:
The problem with the current implementation of Action Client in rclcpp is that if a Anyway, I think the default timeout for all Service calls must be kept relatively small for a "failfast" behaviour, especially at launch time where detecting a unresponsive Service is important. 5 seconds is appropriate in my opinion. |
I agree with you that we should only increase the default timeout for Updated: After thinking twice, I think we should have a longer timeout to fit most scenarios. I picked 5 minutes, while 30 secs might not fit the navigation requirements and 1 hour is too long for most cases.
|
Describe the bug
ROS 2 action is a combination of several topics and services.
There is a service called "action_name" +
/_action/get_result
, which will reply the result of ROS 2 action.In the ROS 2 action popular example
fibonacci_action
, it will run about 10 sec, but the default timeout of querier is 5 sec.zenoh-plugin-ros2dds/DEFAULT_CONFIG.json5
Line 136 in de8acf5
This will cause the action client example keep waiting and never finish.
I think we can do both:
To reproduce
System info
The text was updated successfully, but these errors were encountered: