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

fix(params): prevent parameter retrieval crashes in ROS2 #978

Merged
merged 9 commits into from
Jan 25, 2025

Conversation

Mehsias
Copy link
Contributor

@Mehsias Mehsias commented Dec 5, 2024

Public API Changes
None

Description

  • Add check for node's fully qualified name to prevent deadlocks
  • Add 2.0s timeout to spin_until_future_complete to avoid endless loop
  • Fix crashes when retrieving parameters via Roslibjs

Fixes #972

Mehsias and others added 2 commits December 5, 2024 09:57
- Add check for node's fully qualified name to prevent deadlocks
- Add 2.0s timeout to spin_until_future_complete
- Fix crashes when retrieving parameters via Roslibjs

Fixes RobotWebTools#972
@Mehsias Mehsias force-pushed the fix/issue-972-parameter-retrieval branch from 237d668 to fbed931 Compare January 13, 2025 14:45
@Mehsias Mehsias requested a review from sea-bass January 17, 2025 06:34
@Mehsias
Copy link
Contributor Author

Mehsias commented Jan 17, 2025

@sea-bass I don't know what I did to break the whole CI. I force pushed a squashed commit because the linter check was failing, and now everything is failing.

@bjsowa
Copy link
Collaborator

bjsowa commented Jan 17, 2025

You somehow broke the rosbridge_websocket symlink. I can fix it if you want.

rosapi/src/rosapi/params.py Outdated Show resolved Hide resolved
@bjsowa bjsowa merged commit 0d96ae5 into RobotWebTools:ros2 Jan 25, 2025
3 checks passed
bjsowa added a commit that referenced this pull request Jan 25, 2025
* fix(params): prevent parameter retrieval crashes in ROS2

- Add check for node's fully qualified name to prevent deadlocks
- Add 2.0s timeout to spin_until_future_complete
- Fix crashes when retrieving parameters via Roslibjs

Fixes #972

* added parameter for timeout

* Add new service to retrieve the different interfaces in the ROS Network (#988)

* Fix rosbridge_websocket symlink

* Don't fail on nodes without parameter services

* Remove added empty line

---------

Co-authored-by: Błażej Sowa <[email protected]>
Co-authored-by: Matthias Rathauscher (LWN) <[email protected]>
Co-authored-by: Lebecque Florian <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ROS2 humble getParams
4 participants