Skip to content

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

Merged
merged 4 commits into from
Mar 30, 2025
Merged

Conversation

ymollard
Copy link
Contributor

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.

Copy link
Contributor

@sea-bass sea-bass left a 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-commenter
Copy link

codecov-commenter commented Mar 15, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 45.87%. Comparing base (660175c) to head (e816fcc).
Report is 1 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sea-bass sea-bass added backport-humble Mergify label that triggers a PR backport to Humble backport-jazzy Mergify label that triggers a PR backport to Jazzy labels Mar 16, 2025
@ymollard
Copy link
Contributor Author

if you're up for it

Not now ;) Can we maybe keep track of it in a CFC list somewhere?

@sea-bass
Copy link
Contributor

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?

@ymollard
Copy link
Contributor Author

Done @sea-bass

@sea-bass
Copy link
Contributor

Created #3405 to track the parameter thing...

@sea-bass sea-bass merged commit f13ebcc into moveit:main Mar 30, 2025
10 checks passed
@github-project-automation github-project-automation bot moved this to ✅ Done in MoveIt Mar 30, 2025
mergify bot pushed a commit that referenced this pull request Mar 30, 2025
mergify bot pushed a commit that referenced this pull request Mar 30, 2025
sea-bass pushed a commit that referenced this pull request Mar 30, 2025
(cherry picked from commit f13ebcc)

Co-authored-by: Yoan Mollard <[email protected]>
sea-bass pushed a commit that referenced this pull request Mar 30, 2025
(cherry picked from commit f13ebcc)

Co-authored-by: Yoan Mollard <[email protected]>
sussybot5258 pushed a commit to GreyCatAI/moveit2 that referenced this pull request Apr 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-humble Mergify label that triggers a PR backport to Humble backport-jazzy Mergify label that triggers a PR backport to Jazzy
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants