ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

Here's a workaround which allows you to use the rosserial_arduino debs unmodified:

  • In your package, add a file called hack/WProgram.h, with these contents:

#include "Arduino.h"

  • In CMakelists.txt, somewhere before the final macro call, add:

include_directories(hack ${ARDUINO_SDK_PATH}/hardware/arduino/variants/standard)

This should let you compile the package with cmake, and should be a forward-friendly fix for once rosserial is updated.