Robotics StackExchange | Archived questions

Writing a Simple Image Publisher (C++) tutorial does not compile

I am running ROS Kinetic on a Raspberry Pi 3 with Debian-Jessie operating system. The tutorial is here: http://wiki.ros.org/image_transport/Tutorials/PublishingImages

I follow all the steps exactly. When I do catkinmake at the end of the tutorial it fails because it can't find ros/ros.h. The downloaded CMakeList.txt file had this line: includedirectories(include ${OpenCVINCLUDEDIRS})

When I added ${catkinINCLUDEDIRS} to the include_directories, it found the ros/ros.h file (I assume because it didn't complain) but then it couldn't find the ResizedImage.h lib. I couldn't find that file either.

Is there an update to this tutorial that works on Kinetic? Any suggestions on how I can get this simple image publisher to compile? I am new to ROS. Thanks.

Asked by FAD0 on 2016-11-22 14:50:34 UTC

Comments

Answers

After creating a new workspace, following the tutorial instructions again, and modifying the CMakeList.txt file by adding ${catkin_INCLUDE_DIRS} to the include_directories, it successfully compiled all the way.

Asked by FAD0 on 2016-11-22 15:04:02 UTC

Comments