Ads 468x60px

Sunday, September 25, 2011

Arduino and ROS

Hi all

      Here i interfacing ROS Electric with arduino .

ROS Electric Installation procedure in Ubuntu

After installing ROS Electric ,follow this procedure...
1)For Working with Arduino ,we have to load some programs  to Arduino .There is a library in ROS for arduino .After installation of ROS Electric you have to copy ros_lib from the ros folder to Arduino library folder.After that you have to load one sample program from the ros_lib.Here i upload a "hello world" program .

2)After uploading we have to load ROS commands
Thank you for watching......
For new arduino version > 1.0 ,we must edit ArduinoHardware.h inside roslib. Replace Wprogram.h into Arduino.h


Anonymous said...

Hi, thanks for tutorials, I just wanted to follow them and did all exactly as instructed. I'm on Ubuntu 12.04. Compiling hello world returns this error, do you have any idea how to solve it? (I tried install a suggested patch on google but it also didn't work).

In file included from /home/ari/arduino-1.0.1/libraries/ros_lib/ros.h:39,
from Blink.cpp:6:
/home/ari/arduino-1.0.1/libraries/ros_lib/ArduinoHardware.h:38:22: error: WProgram.h: No such file or directory
In file included from /home/ari/arduino-1.0.1/libraries/ros_lib/ros.h:39,
from Blink.cpp:6:
/home/ari/arduino-1.0.1/libraries/ros_lib/ArduinoHardware.h: In member function ‘long unsigned int ArduinoHardware::time()’:
/home/ari/arduino-1.0.1/libraries/ros_lib/ArduinoHardware.h:73: error: ‘millis’ was not declared in this scope

Lentin Joseph said...

Hi ,i think there is some prblm with new ros fuerte . I tried in electric,its working good. i am getting the same error in fuerte. I will inform you if there is any progress

Lentin Joseph said...

Hi ,Problem solved .please edit Arduino hardware.h file on ros_lib. Change Wprogram.h into Arduino.h because in new arduino version Wprogram.h changed to Arduino.h

Anonymous said...

Hi, thanks, this is true solution :D
Your posts very useful and your help is what I greatly appriciate, keep up man! ;)

Anonymous said...

I followed your suggestion in order solve the error of the Wprogram.h library, and now arduino code is uploaded without any trouble. Thank you

Anonymous said...

i installed arduino into the /usr/share/Arduino folder ,but my ROS is installed in the /opt/ros folder,when i try compiling the sketches in the IDE ,it is unable to locate many header files...what would be a possible solution?.i am using Ubuntu 12.04 and ROS GROOVY...

Lentin Joseph said...

Can you download arduino and keep it in home folder. Then copy the ros_lib folder from ros_arduino package from ros stack folder as per the video ?

sonny said...

Hi, i am sonny..i am currently working on arduino and with that i am trying to install ROS. I searched the whole net,stdudied diffrent sites,but your videos on youtube for ROS installation gave me the help which i needed. they were very helpful.
But i am getting a problem, while i am trying to run my first basic code on arduino with ROS, the Hello world code in the ros_lib, i am getting an error like below..
In file included from /opt/ros/hydro/include/ros/node_handle.h:31,
from /home/traininghes/arduino-1.5.2/libraries/ros_lib/ros.h:38,
from HelloWorld.pde:6:
/opt/ros/hydro/include/ros/forwards.h:37: fatal error: boost/shared_ptr.hpp: No such file or directory
compilation terminated.
i am unable to verify the code since i don't understand the error.
It will be appreciated if you please look at this issue and help me to get out of this problem.


Lentin Joseph said...

Hi Sonny
I did this thing ROS electric. I think there might be some issue with ROS version other than Electric

sonny said...

But i have installed ROS hydro as per steps given in the site, what should i do then,i should delete the hydro one and install the other distribution or what...

please help me...

Lentin Joseph said...

can u try with ROS Electric

sonny said...

but i think ros electric cannot be installed in ubuntu 12.04...i am not sure..

sonny said...

Hi Lentin...
I want to cross compile ROS for ARM processor. I want ROS to be used for other embedded board. I have downloaded the source code of ROS hydro from the ROS site.
Is there any way to cross compile ROS for ARM boards

Please help me..

Lentin Joseph said...

ROS is available for Raspberry pi . try it ..I will work good

sonny said...

Ya,I know that, but I have LS 6410 ARM 11 board. For that I need to cross compile ROS and transfer the binaries to the LS 6410 board and then make the codes of ROS.

Unknown said...

mu private
tim phong tro
nhac san cuc manh
tổng đài tư vấn luật
văn phòng luật
tổng đài tư vấn luật
dịch vụ thành lập công ty
chém gió
trung tâm ngoại ngữ

- Chúng ta đi sẽ mang linh khí đi theo bằng không ngươi đi cùng ta thế nào?

Nhạc Thành do dự một chút rồi nói với tiểu cô nương.

- Ta không đi với các ngươi, các ngươi nhất định là muốn ăn ta, Thái Dương chân hỏa đã muốn ăn ta ba nghìn năm rồi vẫn không được, các ngươi còn muốn ăn ta sao?

Tiểu cô nương chăm chú nhìn Nhạc Thành mà nói.

- Ngươi tu luyện ba nghìn năm rồi sao?

Nhạc Thành kinh ngạc nhìn tiểu cô nương mà hỏi.

- Hình như là ba nghìn năm, các ngươi mau chạy đi, ta biết ngươi có tu vi Hợp Thể trung kỳ nhưng ngươi không đánh lại ta đâu.

Tiểu cô nương cất tiếng nói với Nhạc Thành.

- Được rồi, chúng ta đi.

Nhạc Thành khẽ mỉm cười, sau đó thủ ấn của hắn biến đổi, linh khí kịch

Post a Comment