Ask Your Question
0

Ros2 nodes does not detect eachother if network is down

asked 2018-05-24 07:55:14 -0500

eirikhex gravatar image

I use ros2 for communication on a embedded linux machine. The Ros nodes is started using systemd when the machine boots. However when the network is not connected at boot time the ros nodes does not detect eachother, even after the network is up.

Is there any way to force discovery messages to be sent out from a node?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-06-05 16:23:34 -0500

William gravatar image

I think the adapter used is selected on startup, so adapters that come up after the node will not be considered. There's no portable way (that I'm aware of) to make it reevaluate the available adapters. I'm not sure what you should do instead. If you can wait to start the node until the network is up, you can simply add a dependency in systemd so that the node only starts after the network. Otherwise, you'll probably have to restart the node after the network becomes available.

You might also be able to use a virtual adapter to fix this, but I've never done that before, so you'll probably have to look elsewhere for solutions like that.

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-05-24 07:48:52 -0500

Seen: 86 times

Last updated: Jun 05 '18