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 -0600

Ajan gravatar image

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

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 imageMehdi. ( 2015-11-18 03:46:29 -0600 )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 imagegvdhoorn ( 2015-11-18 12:38:38 -0600 )edit

will do . Thanks @gvdhoorn

Ajan gravatar imageAjan ( 2015-11-18 12:50:37 -0600 )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 imageAjan ( 2015-11-19 00:14:00 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

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

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

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

Seen: 1,520 times

Last updated: Nov 18 '15