Robotics StackExchange | Archived questions

Problem with ROS and Arduino

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?

Asked by starcu on 2015-12-25 17:08:42 UTC

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?

Asked by ahendrix on 2015-12-25 18:57:33 UTC

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.

Asked by starcu on 2015-12-26 05:18:53 UTC

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.

Asked by ahendrix on 2015-12-26 14:31:09 UTC

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.

Asked by ahendrix on 2015-12-26 14:32:48 UTC

Answers