ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

ros2 on embedded board without any network connection

asked 2019-06-15 06:59:18 -0500

askkvn gravatar image

A very simple question on ROS2,

Can we use ROS2 on embedded platform/board without any network connection (no internet/no router) means standalone board only ?

I tried running ROS2 without any network connectivity on laptop but it is not able to create any topic, services. (And works well with network connectivity)

Is it like ROS2 always need some router/network connectivity to run ROS nodes? (can't run on standalone board)

please help in understanding ROS2 concepts.

edit retag flag offensive close merge delete



I believe the issue is not "with or without a network connection", it is that some DDS implementations ignore lo (ie: localhost) network interfaces. They should be configurable to enable the lo interface as well and then everything should work as normal.

See ros2/rmw_fastrtps#228, eProsima/Fast-RTPS#167 and eProsima/Fast-RTPS#267 for what I believe are related issues.

gvdhoorn gravatar image gvdhoorn  ( 2019-06-15 07:54:39 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2019-06-17 04:49:12 -0500

askkvn gravatar image

@gvdhoorn Thanks for your reference links.

This one solves my problem

You can use multicast on loopback but you have to add a new route because your OS using default external interface by default for multicast. Also multicast can be disabled by default on loopback. On linux you can change this with this command:

route add -net netmask dev lo
ifconfig lo multicast

To check loopback, run this command: (make you are disconnected from all network connectivity)

Terminal 1: ros2 run demo_nodes_cpp talker Terminal 2: ros2 run demo_nodes_cpp listener

edit flag offensive delete link more

Question Tools



Asked: 2019-06-15 06:59:18 -0500

Seen: 1,021 times

Last updated: Jun 17 '19