Posting messages to different network interfaces

asked 2018-12-27 00:26:41 -0500

D0l0RES gravatar image

updated 2018-12-28 04:17:12 -0500

gvdhoorn gravatar image

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.

image description

edit retag flag offensive close merge delete

Comments

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.

PeteBlackerThe3rd gravatar image PeteBlackerThe3rd  ( 2018-12-27 07:39:42 -0500 )edit

@D0l0RES: please clarify why #q311550 is not a duplicate of this post.

gvdhoorn gravatar image gvdhoorn  ( 2018-12-27 08:43:56 -0500 )edit

@PeteBlackerThe3rd, I use ros2

D0l0RES gravatar image D0l0RES  ( 2018-12-27 10:06:27 -0500 )edit

@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.

D0l0RES gravatar image D0l0RES  ( 2018-12-28 04:20:05 -0500 )edit