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

Revision history [back]

click to hide/show revision 1
initial version

So it appears that rosserial_arduino/CMake can't work with .ino files, unless there is something specifically wrong with my .ino file. Copying and renaming the .ino file to a .cpp file fixed all of the issues, and the code uploaded correctly. Bug?

So it appears that rosserial_arduino/CMake can't work with .ino files, unless there is something specifically wrong with my .ino file. Copying and renaming the .ino file to a .cpp file fixed all of the issues, and the code uploaded correctly. Bug?

EDIT 1: A symbolic link (ln -s) from the ../sketchbook/<project>/<project>.ino file to the ../firmware/<project>.cpp file also fixes the issue, meaning I can still have the students update the code in one location for both the CLI and GUI.

So it appears that rosserial_arduino/CMake can't work with .ino files, unless there is something specifically wrong with my .ino file. Copying and renaming the .ino file to a .cpp file fixed all of the issues, and the code uploaded correctly. Bug?

EDIT 1: A symbolic link (ln -s) from the ../sketchbook/<project>/<project>.ino file to the ../firmware/<project>.cpp file also fixes the issue, meaning I can still have the students update the code in one location for both the CLI and GUI.

EDIT 2: Obviously an update was required to the ./firmware/CMakeLists.txt to target the new .cpp file, after the .cpp symbolic link was created.