rosserial_arduino CMake Tutorial
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
Asked by getSurreal on 2013-12-17 17:08:21 UTC
Comments