lgsvl / ros2-lgsvl-bridge

BSD 3-Clause "New" or "Revised" License
12 stars 14 forks source link

How should I write the custom TCP socket? #5

Open CHENxh2017 opened 4 years ago

CHENxh2017 commented 4 years ago

I can write a TCP client to comunicate with ros2 lgsvl bridge, but I don't know what should I send to publisher or subscrible. Can you offer me an example?

hadiTab commented 4 years ago

Can you provide more details about what you are trying to do? You shouldn't need to implement a TCP client to communicate with the bridge. There are two "sides" to the bridge. The ROS2 side, which is this repository, and the simulator side. On the ROS2 side all you need to do is write a ROS2 node that subscribes to topics or publishes topics. To get the simulator to interact with those topics you need to register them with the simulator side. If that is your questions it is better to discuss it in the simulator repository.

CHENxh2017 commented 4 years ago

Thank you for your detailed explanation. I am trying to establish a commuication between ubuntu system and windows system. I want to try your ros2 lgsvl bridge, and to write a TCP client on my windows using C plus plus. It sounds like "To get the simulator to interact with those topics you need to register them with the simulator side", So I will discuss it in the simulator repository.