Posting messages to different network interfaces
I have 2 Ethernet ports and 10 topics. Is it possible to publish topics 1 3 5 7 9 on 1 port, and the remaining topics 2 4 6 8 10 to publish on port 2 so that a computer connected to the second port can only see and read data from topics 2 4 6 8 10. A computer connected to port 1 could see and read data from topics 1 3 5 7 9. I use DDS from OpenSplice.
Are you using ROS1 or ROS2? ROS1 publishes messages to the entire network, you cannot select where they go when they're going to go. Also the question of ethernet ports is not important, it's the network domains that are important.
@D0l0RES: please clarify why #q311550 is not a duplicate of this post.
@PeteBlackerThe3rd, I use ros2
@PeteBlackerThe3rd: I want to implement this connection. There are 4 computers in different networks, the MainPC has 3 ports. it also deployed ROS2. And I want to post data in the network.