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

Will RoS work over I2C , without serial? ie; arduino to arduino communication without a PC?

asked 2015-11-18 00:46:09 -0500

Ajan gravatar image

updated 2015-11-18 12:37:28 -0500

gvdhoorn gravatar image

Will RoS work over I2C , without serial? ie; arduino to arduino communication without a PC?

I have seen examples and tutorials on how RoS can be used in arduino. But all of them explains how to get an arduino communicate to a PC over serial protocol.

I am working on a robotic project where arduino to arduino communication is required. Will I be able to imlement two ROS nodes based on I2C as underlying channel ?

Or any other ideas to get the same goal ?


Edit: Thanks William for the quick answer. Eventhough, ROS Serial ( http://wiki.ros.org/rosserial ) examples are shown for communication from arduino to PC , I believe arduino to arduino serial will also work for ROSserial.

Any pointers how I can implement a new underlying protocol for ROS node to node communication. There should be "downward" interfaces for doing this. Has any one tried this?

edit retag flag offensive close merge delete

Comments

Maybe using a raspberry Pi with ROS as master for both arduino boards?

Mehdi. gravatar image Mehdi.  ( 2015-11-18 03:46:29 -0500 )edit

@Ajan: please don't post answers to post comments, or updates to your question. Please use the edit button/link for that. I've merged your update into your question.

gvdhoorn gravatar image gvdhoorn  ( 2015-11-18 12:38:38 -0500 )edit

will do . Thanks @gvdhoorn

Ajan gravatar image Ajan  ( 2015-11-18 12:50:37 -0500 )edit

@Mehdi Thanks for the suggestion to use the Raspberry pi. But I do not need one. Do not need that much processing in my robot. Arduinos can handle it. Communication among arduinos is going to be a challenge. I am planning to use I2C . But RoS do not support it. Wondering how to write my own support!

Ajan gravatar image Ajan  ( 2015-11-19 00:14:00 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-11-18 02:59:38 -0500

William gravatar image

No, ROS uses TCP or UDP over IP to do communication and isn't suited for i2c or serial to serial communications. ROS Serial ( http://wiki.ros.org/rosserial ) provides communication between a microcontroller and a PC using serial. But as far as I know there is nothing like what you've described.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-11-18 00:46:09 -0500

Seen: 2,316 times

Last updated: Nov 18 '15