rosserial_arduino CMake Tutorial

asked 2013-12-17 16:08:21 -0500

getSurreal gravatar image

updated 2013-12-17 21:12:32 -0500

tfoote gravatar image

I've completed the previous tutorials, but I'm having problems with http://wiki.ros.org/rosserial_arduino/Tutorials/CMake

ROS Groovy on Raspberry Pi Raspbian with Arduino 1.01

When I run

$ make chatter

I get

g++     chatter.cpp   -o chatter
chatter.cpp:6:22: fatal error: WProgram.h: No such file or directory
compilation terminated.
make: *** [chatter] Error 1

I read that WProgram.h is now named Arduino.h so I updated that in chatter.cpp, but I get the same error about not finding Arduino.h.

I confirmed the Arduino.h file does exist.

$ locate Arduino.h
/usr/share/arduino/hardware/arduino/cores/arduino/Arduino.h

I think the issue may be related to this line in the CMakeLists.txt file

include(${rosserial_arduino_PACKAGE_PATH}/cmake_scripts/rosserial.cmake)

I'm not able to locate the referenced file and don't know where to get it.

The closest related files I can find are these.

~/catkin_ws/install/share/rosserial_arduino/cmake
rosserial_arduinoConfig.cmake          
rosserial_arduinoConfig-version.cmake
rosserial_arduino-msg-paths.cmake
edit retag flag offensive close merge delete