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

Make ROS1 service type retrieval more robust #316

Conversation

achim-k
Copy link
Collaborator

@achim-k achim-k commented Jul 11, 2024

Changelog

Fix node crashing in some cases when retrieving ROS1 service types

Docs

None

Description

In #306, it was reported that foxglove bridge crashed due to this assertion when retrieving ROS1 service types. I believe that the reason for this assertion was that the header callback was set twice: Once in our code and once in the ServiceServerLink. To avoid this, I have reworked the service retrieval to not create a ServiceServerLink instance but instead work with a raw ros::Connection.

Fixes #306

Copy link

linear bot commented Jul 11, 2024

@achim-k
Copy link
Collaborator Author

achim-k commented Jul 12, 2024

@jurevreca12 confirmed that this patch fixes the issue, see #306 (comment)

@achim-k achim-k merged commit 4cb411c into main Jul 12, 2024
10 checks passed
@achim-k achim-k deleted the achim/fg-7877-assertion-error-on-read_callback_-in-roscpp-for-ros1-bridge branch July 12, 2024 12:13
@achim-k achim-k mentioned this pull request Jul 12, 2024
achim-k added a commit that referenced this pull request Jul 12, 2024
### Changelog
- Make ROS1 service type retrieval more robust (#316)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Assertion error on read_callback_ in roscpp for ROS1 bridge
1 participant