Problem with ROS and Arduino

asked 2015-12-25 16:08:42 -0600

starcu gravatar image

Hi, Im new with ROS and i have problem with compilation on Arduino. When I'm trying to compile HelloWorld example i'm getting error like this:

In file included from /opt/ros/jade/include/ros/node_handle.h:31:0,
                 from /home/lukasz/Pulpit/arduino-1.6.4/libraries/ros_lib/ros.h:38,
                 from sketch_dec25a.ino:2:
/opt/ros/jade/include/ros/forwards.h:37:32: fatal error: boost/shared_ptr.hpp: No such file or directory
 #include <boost/shared_ptr.hpp>
                                ^
compilation terminated.

I have ubuntu 14.04 and just installed ROS. I have boost library in 1.54 version. What I should do to run this program?

edit retag flag offensive close merge delete

Comments

It looks like you're doing something weird with the compile process. Can you provide a link to the tutorial you're following and the commands you're using to compile?

ahendrix gravatar imageahendrix ( 2015-12-25 17:57:33 -0600 )edit

First i installed ROS with Installation tutorial from ros.org and then Arduino setup. Then i just trying to compile HelloWorld example from ros_lib in ArduinoIDE.

starcu gravatar imagestarcu ( 2015-12-26 04:18:53 -0600 )edit

Following the arduino setup instructions, I can compile the HelloWorld tutorial on my computer, with Ubuntu 14.04, ROS Indigo and Arduino 1.6.7.

ahendrix gravatar imageahendrix ( 2015-12-26 13:31:09 -0600 )edit

Have you modified the tutorial code in some way, or are you using an unusual board? It's trying to compile with the OS versions of ros and boost, instead of the arduino versions.

ahendrix gravatar imageahendrix ( 2015-12-26 13:32:48 -0600 )edit