Ask Your Question
0

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

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

FAD0 gravatar image

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/T...

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
0

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

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

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

Seen: 47 times

Last updated: Nov 22 '16