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

PCL include files

asked 2011-03-07 01:59:41 -0500

SLAMnect gravatar image

Hi,

i am very new to the ROS-Package. I tried to understand the tutorials but i have some trouble.

I want to use the example code http://www.ros.org/wiki/pcl/Tutorials Example 5.2 and modifiy it, so it will use my piont cloud generateted by a kinect.

However, the problem is that if i run cmake the following error appears: "fatal error: pcl/range_image/range_image.h: No such file or directory"

So i tried to build a ROS pcl backage by following the tutorials. The problem remains. I'm really sure about, that i am doing something completly wrong.

So: How do I build a pcl package and use it in my own code?

Thanks for the help.

edit retag flag offensive close merge delete

6 Answers

Sort by ยป oldest newest most voted
0

answered 2011-03-09 02:07:39 -0500

dornhege gravatar image

Did you add pcl as a dependency in manifest.xml?

edit flag offensive delete link more
3

answered 2011-03-07 04:21:45 -0500

tfoote gravatar image

If you're new to ROS please go through the Start Guide so you understand the concepts of ROS packages etc. The PCL tutorials assume that you are familiar with these concepts.

edit flag offensive delete link more
1

answered 2011-03-07 18:31:53 -0500

SLAMnect gravatar image

yes, thats my problem. I figuered it out yesterday. But you both are right. I should go through the ROS tutorials. Thanks for the help.

edit flag offensive delete link more
1

answered 2011-03-07 12:26:04 -0500

fergs gravatar image

I agree with Tully that you should read through the tutorials for ROS. What you'll probably find is that you haven't put a dependency in your package manifest for pcl -- which is why you can't find the header file.

edit flag offensive delete link more
0

answered 2011-03-09 02:18:04 -0500

SLAMnect gravatar image

yes I did about 1 min after the post ;) now I have new ones. eigen etc. but I get that fixed soon. Thanks.

edit flag offensive delete link more
0

answered 2011-03-08 22:15:11 -0500

SLAMnect gravatar image

okay I manged to build the package and i added my projekt to the given CMakeLists.txt. now i want to use the Point Cloud Lib. However, I still get the error that for example pcl/range_image/range_image.h could not be found by the compiler. I assume that i have forgotten someting in the CMakeList. Here is my CMakeLists.txt: (i need some qt stuff, thats why its so huge) Thanks for the help.

SET(QT_USE_QTOPENGL TRUE)

CMAKE_MINIMUM_REQUIRED(VERSION 2.4) if(COMMAND cmake_policy) cmake_policy(SET CMP0003 NEW) endif(COMMAND cmake_policy)

FIND_PACKAGE (Qt4 REQUIRED) FIND_PACKAGE (OpenGL REQUIRED)

include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake)

rosbuild_init()

set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)

set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib) INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/include ${CMAKE_CURRENT_SOURCE_DIR}/src ${QT_INCLUDE_DIR} /usr/include /usr/include/ni /usr/include/qt4/QtOpenGL )

INCLUDE ( ${QT_USE_FILE} )

SET (LIBS #include libs OpenNI )

SET_SOURCE_FILES_PROPERTIES(${QT_SRCS} PROPERTIES OBJECT_DEPENDS "${UI_HDRS}")

QT4_ADD_RESOURCES( RC_SRCS ${QT_RCS} ) QT4_WRAP_UI( UI_HDRS ${QT_UIS} ) QT4_WRAP_CPP( MOC_SRCS ${QT_MOC_HDRS} )

LINK_DIRECTORIES ( ${LIBRARY_OUTPUT_PATH} ${LINK_DIRECTORIES} )

rosbuild_add_executable(pcv src/main.cpp src/genpointcloud.cpp src/updatethread.cpp include/genpointcloud.h include/updatethread.h ${GUI_TYPE} ${RC_SRCS} ${MOC_SRCS} ${UI_HDRS} )

TARGET_LINK_LIBRARIES ( pcv ${LIBS} ${QT_LIBRARIES})`enter code here

edit flag offensive delete link more

Question Tools

Stats

Asked: 2011-03-07 01:59:41 -0500

Seen: 1,414 times

Last updated: Mar 09 '11