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

Connect 2 ros board

asked 2016-12-16 07:29:39 -0600

RoboDroid gravatar image

Hi, I have 2 arm boards running ros. I need to share the topics between the boards. I want to use a wired connection, is the uart a good choice? (I've got also lan or usb on both boards) Is it possibile to do something like I do in wireless mode with the definition of master uri? Maybe do I need to use rosserial? Thanks

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-12-16 11:25:13 -0600

ahendrix gravatar image

Depending on your hardware, serial is typically 115.2kbps to 1Mbps, and Ethernet is typically 100Mbps to 1Gbps (100x faster), so Ethernet is generally the faster and more flexible solution.

Since you'll be setting up a point-to-point ethernet link, you'll probably need to assign static IP addresses to both boards. This is well-documented for most linux distributions and is outside the scope of this forum.

Setting up ROS to communicate over a network is usually as simple as following http://wiki.ros.org/ROS/Tutorials/Mul...

edit flag offensive delete link more

Comments

Thanks, I'll try it. But in the case I can't use ethernet, how can I use uart?

RoboDroid gravatar image RoboDroid  ( 2016-12-16 11:45:58 -0600 )edit

I'm not certain it's possible to use the existing rosserial nodes over a point-to-point serial link, but you could probably use rosserial_python or rosserial_server on one end and write a custom node on the other end that uses the rosserial_embeddedlinux client.

ahendrix gravatar image ahendrix  ( 2016-12-16 16:37:18 -0600 )edit

Really, I think using the serial link is such a poor idea that I don't want to give too many details. Using ROS over ethernet works, and that's where you should focus your energy.

ahendrix gravatar image ahendrix  ( 2016-12-16 16:38:21 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2016-12-16 07:29:39 -0600

Seen: 303 times

Last updated: Dec 16 '16