Robotics StackExchange | Archived questions

How I can select the ethernet adapter that propogates the ROS_DOMAIN?

I run ROS2-FOXY in a machine with two phisical ethertnet connections. I use one of them for the connection to the external net. The other one is for the WIFI connection to the robot. When I started to work in ROS2-FOXY, I worked only in the WIFI net and it was fine. But now the project get more complexity and i need use the wired ethernet connection for reach another equips out of WIFI net (the WIFI net and the wired net are in diferent IPv4 subnet) . I work with ROSDOMAINID: 40 in the robot and the PC. But there is not connection between them. Only when I desconnect the wired net of the machine I get again the connection. The robot propagates the ROSDOMAINID: 40 in the WIFI net, but the PC propagates the wired net if it´s connected. How i can force to PC to use the WIFI net to stablish the ROSDOMAINID: 40? The IPv4: 192.168.0.200 is configured to connect to the WIFI router and the wired net has configred the IPv4: 10.xxx.yyy.2.

Asked by pedro990 on 2022-05-17 06:02:14 UTC

Comments

See #q373132 and/or #q384008.

I believe your post is a duplicate.

Asked by gvdhoorn on 2022-05-17 12:21:58 UTC

thanks for your fast answer,I was looking for information for a pair of days and I didn't find anyone. the next days I'll try it.

Asked by pedro990 on 2022-05-17 14:27:12 UTC

Answers