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

error when I included PCL passthrough filter

asked 2015-05-28 04:48:19 -0500

ZYJ gravatar image

updated 2015-06-26 01:40:16 -0500

gvdhoorn gravatar image

Hi there,

I am using iai_kinect to use Kinect 2.0 under Ubuntu OS. I wanted to use the passthrough filter for point cloud. And always show the error of segmentation fault (core dumped).

And then I found out that even I just added #include <pcl/filters/passthrough.h> in the beginning, the program doesn't work anymore. The error message shows The program has unexpectedly finished. When I deleted this line, it just works.

I have no idea, why it doesn't work by just including a header file in the cpp. Does anyone have an idea.

Best regards ZYJ

edit retag flag offensive close merge delete

Comments

We need more information! What functions are you trying to implement? What is your application? Generally speaking, I use nodelets wherever I can to implement PCL filters.

ritwik1993 gravatar image ritwik1993  ( 2015-06-25 14:32:56 -0500 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2015-06-26 01:07:20 -0500

ZYJ gravatar image

updated 2015-06-26 02:40:27 -0500

I solved the problem by myself later on. The reason is that PCL does not support c++11 orginally. In my code, some c++11 functionalities are used. So I build the code from the their github repositary, and add SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") to the CMakeList.txt. Then make and make install the PCL libaray. Then it will solve the problem.

edit flag offensive delete link more

Comments

How can it be PCL does not support C++11? C++11 is 100% compatible with previous C++ standards, so everything compiling under C++0x should compile under C++11. Am I wrong?

Javier V. Gómez gravatar image Javier V. Gómez  ( 2015-06-26 01:46:49 -0500 )edit
ZYJ gravatar image ZYJ  ( 2015-06-26 02:44:07 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2015-05-28 04:48:19 -0500

Seen: 731 times

Last updated: Jun 26 '15