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

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

asked 2016-11-22 13:50:34 -0500

FAD0 gravatar image

I am running ROS Kinetic on a Raspberry Pi 3 with Debian-Jessie operating system. The tutorial is here:

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

When I added ${catkin_INCLUDE_DIRS} 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.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-11-22 14:04:02 -0500

FAD0 gravatar image

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.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2016-11-22 13:50:34 -0500

Seen: 186 times

Last updated: Nov 22 '16