Ask Your Question
0

ros2 nodes not discovered

asked 2018-08-28 20:53:47 -0500

alsora gravatar image

updated 2018-08-28 21:23:10 -0500

Hi,

I'm working with ROS2 bouncy.

ROS2 was running perfectly on my computer.

Then I started modifying network configurations (e.g. files in /proc/sys/net/ipv4/conf/). The result is that I'm not able to run simple publisher/subscriber nodes anymore. If I run a publisher, then through the ros2 topic list command I can't see anymore its related topics.

Similarly, if I run rviz it is not able to see any topic and from the ros2 service list command I'm not able to see the rviz related services.

I tried using the official ros2 docker images, the nodes work properly only if I do not set the docker parameter --net=host.

Do you have any hint about what should I check in oder to make ros working again?

This is my ifconfig

enp0s31f6 Link encap:Ethernet  HWaddr 8c:16:45:b8:e1:ae  
          inet addr:10.22.22.27  Bcast:10.22.23.255  Mask:255.255.254.0
          inet6 addr: fe80::23f8:a6ca:fdfb:58a9/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

Thanks

edit retag flag offensive close merge delete

Comments

Can you tell us what you modified in /proc/sys/net/ipv4/conf/ ?

pokitoz gravatar image pokitoz  ( 2018-08-29 03:32:59 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-09-17 05:58:45 -0500

I Faced the similar issue when i modified the network configuration of Ubuntu based PC , after this modification all the ros2 publisher subscriber communication was stopped and i was not able to get any result using cli tools of ROS2.

The only thing i done was reverted the network configuration changes and rebooted the PC and than it started working again .

I do not know the exact cause of this issue but may be it is something to do with the IP address of the PC , if there is no IP address assigned than this issue will occur.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

3 followers

Stats

Asked: 2018-08-28 20:53:47 -0500

Seen: 293 times

Last updated: Sep 17 '18