Ask Your Question
0

problem in using rosserial/arduino in groovy

asked 2013-09-04 11:11:22 -0500

narenji gravatar image

updated 2013-11-18 19:21:15 -0500

tfoote gravatar image

Hello every one. I want to use Arduino uno to just send a helloworld to ros. I am using groovy. from the and follow the instruction here that is in rosserial tutorials

I followed ROSBUILD, after "rosmake rosserial_arduino" I can not run "roscd rosserial_arduino/libraries" because this location does not exist. after that I found the rosserial_arduino in /opt/ros/groovy/share/ and in this folder I found ros_lib. So I added ros_lib to my arduino IDE libraries.

I want to write codes in my IDE, just after adding #include<ros.h> I see this error:

In file included from sketch_sep05a.ino:1: /home/mohammad/Desktop/Arduino/arduino-1.5.3/libraries/ros_lib/ros.h:38:29: error: ros/node_handle.h: No such file or directory In file included from sketch_sep05a.ino:1: /home/mohammad/Desktop/Arduino/arduino-1.5.3/libraries/ros_lib/ros.h:49: error: expected initializer before ‘<’ token

I think that header files like ros.h have problems. what should I do? What is the best way to use rosserial and rosserial_arduino in groovy? thanks a lot!!!

edit retag flag offensive close merge delete

3 Answers

Sort by » oldest newest most voted
0

answered 2013-09-29 10:33:26 -0500

fergs gravatar image

updated 2013-09-29 10:34:40 -0500

If you checked out the groovy-devel branch from the rosserial github project, then you need to build with catkin, not rosmake. You will also likely have to do the "install" step, because rosserial_arduino actually gets a number of it's roslib files from rosserial_client during the install step.

edit flag offensive delete link more
1

answered 2013-09-24 16:08:12 -0500

Neo gravatar image

I had the same problem because they say in the ROS Wiki to copy the ros_lib to Sketchbook folder.

when i copied the ros_lib to /usr/share/arduino/libraries/

it worked fine.

Now i can compile any code with ros.h or any other RSO code

edit flag offensive delete link more
0

answered 2013-09-29 10:17:34 -0500

narenji gravatar image

I know what you say, but the problem that I have is using Groovy. when I publish a node in arduino, I can easily subscribe it in Fuerte but if I use groovy, I visit some errors.

I think that these libraries, are for Feurte not Groovy. I can not find the libraries for groovy.

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

2 followers

Stats

Asked: 2013-09-04 11:11:22 -0500

Seen: 882 times

Last updated: Sep 29 '13