Implementing communication between ROS2 nodes on different gateways

asked 2023-07-08 03:48:20 -0500

Two different IP addresses are set under a Layer 3 switch. After setting these two IP addresses on two different system devices, the devices can ping each other successfully, but ROS 2 cannot communicate.(Sending success by ros2 run demo_nodes_cpp talker but Receiving failure,no messages by ros2 run demo_nodes_py listener) my computer IP is 192.168.20.12,the other computer IP is 192.168.10.11. there are some details:

we can see that my computer can ping the other computer: image description

and when I want to send messages to the other computer : image description

but the other computer cannot receive any messages: image description

my windows IPV4 and virtual machine network adapter are like this: image description

image description

edit retag flag offensive close merge delete

Comments

For future questions, please do not use screen shots of terminal text. Instead, copy/paste the text into your description, and format it with the 101010 button.

Mike Scheutzow gravatar image Mike Scheutzow  ( 2023-07-09 08:57:54 -0500 )edit

you mean that you cannot read my pictures?if yes,please give me your email thanks

wj_sdaj gravatar image wj_sdaj  ( 2023-07-09 09:01:19 -0500 )edit

You have not told us which virtualization environment you are using, but maybe #q385611 will help you.

Mike Scheutzow gravatar image Mike Scheutzow  ( 2023-07-09 09:12:40 -0500 )edit

you mean that you cannot read my pictures?

I can see the images. The policy on this website is to not use screen shots of plain text (because they are not searchable.)

Mike Scheutzow gravatar image Mike Scheutzow  ( 2023-07-09 09:15:25 -0500 )edit

my computer(PC) and the other computer(Industrial Personal Computer) both use Ubuntu20.04,my computer virtual machine is VMware

wj_sdaj gravatar image wj_sdaj  ( 2023-07-09 09:25:46 -0500 )edit