Skip to content
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

Potential endless loop if a costmap layer does not update. #4672

Closed
tgreier opened this issue Sep 11, 2024 · 2 comments · Fixed by #4673
Closed

Potential endless loop if a costmap layer does not update. #4672

tgreier opened this issue Sep 11, 2024 · 2 comments · Fixed by #4673

Comments

@tgreier
Copy link
Contributor

tgreier commented Sep 11, 2024

Operating System: Ubuntu
ROS2 Version: humble and main branches
Version or commit hash: N/A
DDS implementation: N/A

Expected behavior
If a costmap does not update, then the planner server action should fail and the planner should output an error diagnostic.

Actual behavior

PlannerServer::waitForCostmap() has no breakout timeout. Therefore, the planner server remains in loop if a costmap layer does not update, and there is no indication of why the planner server does not respond or updates its action request.
This loop should have a breakout condition with failure return and response.

void PlannerServer::waitForCostmap()

@SteveMacenski
Copy link
Member

Fair point, @tgreier please review #4673 and let me know if this solves your concern

@SteveMacenski
Copy link
Member

I also added the controller server as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants