foxglove / ros-foxglove-bridge

Foxglove WebSocket bridge for ROS 1 and ROS 2
MIT License
160 stars 70 forks source link

Move C++ websocket server code back to ws-protocol repo #89

Open jtbandes opened 1 year ago

jtbandes commented 1 year ago

Fix https://github.com/foxglove/ros-foxglove-bridge/issues/89

@jacob said:

https://github.com/foxglove/ros-foxglove-bridge/issues/89#issuecomment-2343714056

this sounds nice, but am I remembering correctly that the ros folks were against FetchContent in the build process? or did we find some agreeable workaround?

Comment on #89 Move C++ websocket server code back to ws-protocol repo

jhurliman commented 1 year ago

I suggest moving this issue to https://github.com/foxglove/ws-protocol since the result would be a PR to that repo and no change to this repo.

jtbandes commented 1 year ago

I'd rather not have two copies of the code and have to keep them in sync, so the result should also include deleting the version in this repo. (hence "move" in the title)

amacneil commented 1 year ago

It sounds like time for a monorepo

image

jlack1987 commented 1 month ago

Which implementation of the websocket protocol is most up-to-date/newer? It seems this one has more recent commits than this repo no?

achim-k commented 1 month ago

Which implementation of the websocket protocol is most up-to-date/newer? It seems this one has more recent commits than this repo no?

This repo basically uses a copy of the C++ server code in https://github.com/foxglove/ws-protocol, with only a few minor differences.

I'm not sure if there is an elegant way to add ws-protocol as a build dependency remove the server code in this pacakge. Maybe we could do so using FetchContent?

jlack1987 commented 1 month ago

Yeah it's doable via the FetchContent stuff in cmake. I actually did just that on that repo a few days ago. That's when I ran into this repo as well and got confused. Some minor cmake mods are needed though on ws-protocol to ensure some of websocketpp's dependencies are available(zlib, openssl, and boost iirc). Very easy stuff to do though

linear[bot] commented 1 month ago

FG-8798 Foxglove bridge: Use C++ server implementation from ws-protocol repo via FetchContent