-
Notifications
You must be signed in to change notification settings - Fork 612
SERVICE_CALL_TIMEOUT = 1 second is harsh 🥵 #3382
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
Conversation
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.
I would say "why not?"
Even better (if you're up for it), since this manager contains a ROS node, you could consider making this a ROS parameter so that users have the ability to control their timeouts. I can imagine in some cases if the system is this slow, it would be preferable to cause failures.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3382 +/- ##
==========================================
- Coverage 46.24% 45.87% -0.36%
==========================================
Files 717 717
Lines 62614 62593 -21
Branches 7571 7570 -1
==========================================
- Hits 28949 28709 -240
- Misses 33498 33717 +219
Partials 167 167 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Not now ;) Can we maybe keep track of it in a CFC list somewhere? |
Yep, can just make a new Git issue for that. In that case, would you mind reducing the timeout in this PR from 10 seconds to like 2 or 3, then? And just adding a TODO comment in the code for now? |
Done @sea-bass |
Created #3405 to track the parameter thing... |
(cherry picked from commit f13ebcc)
(cherry picked from commit f13ebcc)
(cherry picked from commit f13ebcc) Co-authored-by: Yoan Mollard <[email protected]>
(cherry picked from commit f13ebcc) Co-authored-by: Yoan Mollard <[email protected]>
Description
For some reason, maybe over loaded network or CPU, listing the ros2 controllers of my robot is quite slow, a bit more than 1.0 second in average:
$ time ros2 control list_controllers arm_controller joint_trajectory_controller/JointTrajectoryController active [...] real 0m1.349s user 0m0.658s sys 0m0.144s
In consequence, the MoveIt ROS interface fails at executing the trajectory while the controller is actually ready to work.
I propose to increase the 1.0 second timeout to 10.0 seconds because 1.0 is really harsh, especially on slow computers.
Maybe a lower timeout would be more acceptable, as you prefer.