Robotics StackExchange | Archived questions

Is there an alternative way to connect to machines through the same ROS?

I want to connect two microcomputers (Odroid or Rasberry Pi) together by ROS.

As I found in http://wiki.ros.org/ROS/NetworkSetup, it seems that two machines can only be connected through network, such as wifi. Can I connect two ROS computer through physical connection, such as USB? If so, how to implement it in detail?

I am new for ROS. Thanks very much.

Asked by T318forever on 2017-06-16 10:12:47 UTC

Comments

Answers

Via USB? It's not possible AFAIK. What transport protocol would you use through a USB serial connection? You can certainly write your own.

Asked by lakehanne on 2017-06-16 11:52:43 UTC

Comments

Do you mean that generally two ros machines can be only connected through wifi?

Asked by T318forever on 2017-06-16 11:59:55 UTC

Wifi or LAN.

Asked by lakehanne on 2017-06-16 12:12:32 UTC

OK, thanks very much.

Asked by T318forever on 2017-06-16 12:15:33 UTC

If you have an Ethernet (RJ-45) port you can use that too.

Asked by ahendrix on 2017-06-17 00:07:13 UTC

Do you mean that generally two ros machines can be only connected through wifi?

just a small comment: the 'only' requirement for ROS is that you have a working IP network (ignoring things like rosserial here obviously). If you can use USB networking, then that should work as well.

Asked by gvdhoorn on 2017-06-17 03:54:55 UTC