Replies: 1 comment
-
I would be happy to review a PR that refactors the socket interface to allow more approaches like this one - I think the constructor and connection logic of the Ros class are overly complicated and could be simplified by defining a concrete interface for socket transports like you suggest. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Although ROSLIBjs is a good client that allows you to communicate with ROS easily, I sometimes feel that rosbridge is lacking in performance.
Therefore, we would like to be able to inject a
socket
member into theRos
class from the constructor, etc., so that it can communicate with any bridge.For example, Foxglove's ros-foxglove-bridge is a very good bridge in the aspect of performance, but if we want to use it in ROSLIBjs, we need to override the members by using inheritance.
The following repository shows an example of ros-foxglove-bridge support by forcibly overriding the
socket
member of theRos
class.https://github.com/eyr1n/roslib-with-foxglove
I thought it would be a good idea to define the interface and allow the injection of the
socket
member so that such code can be implemented safely.Thank you.
Beta Was this translation helpful? Give feedback.
All reactions