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

Decouple server implementation #156

Merged
merged 6 commits into from
Feb 17, 2023
Merged

Conversation

achim-k
Copy link
Collaborator

@achim-k achim-k commented Feb 9, 2023

Public-Facing Changes
None

Description
This PR is a major refactoring that reduces the coupling between the websocket server implementation (websocketpp / nlohmann::json) and the ROS node side. The main benefits are:

  • Reduced compilation times
  • More abstract ServerInterface (makes it easier to use another websocket library, if we ever want to do that)
  • Cleaner code (IMO)

For reviewing, I would recommend to view the diff of each commit individually rather than viewing the full diff

@achim-k achim-k changed the title Achim/decouple server implementation Decouple server implementation Feb 9, 2023
@achim-k achim-k force-pushed the achim/decouple_server_implementation branch from daa18fa to a098eeb Compare February 9, 2023 19:24
@achim-k achim-k merged commit 337cf4c into main Feb 17, 2023
@achim-k achim-k deleted the achim/decouple_server_implementation branch February 17, 2023 18:10
achim-k added a commit that referenced this pull request Feb 17, 2023
**Public-Facing Changes**
- Run client handlers in separate thread


**Description**
Builds on top of #156 

So far we have executed client handler functions in the websocket server
thread. This could cause issues with clients not receiving messages
anymore while a longer-running handler function was executing. This PR
fixes this by handler functions being executed in a separate thread.

Fixes #164 
Fixes FG-2029
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.

None yet

2 participants