point-cloud-library

Locations PCLConfig.cmake and pcl-config.cmake files for PCL library

倾然丶 夕夏残阳落幕 提交于 2019-12-12 21:10:37
问题 I installed PCL using the following commands. sudo add-apt-repository ppa:v-launchpad-jochen-sprickerhof-de/pcl sudo apt-get update sudo apt-get install libpcl-all When I compiled my PCL program with the following lines in CMakeLists.txt find_package(PCL 1.3 REQUIRED COMPONENTS) include_directories(${PCL_INCLUDE_DIRS}) link_directories(${PCL_LIBRARY_DIRS}) add_definitions(${PCL_DEFINITIONS}) I have errors as CMake Error at CMakeLists.txt:17 (find_package): By not providing "FindPCL.cmake" in

Declare a PCL point cloud in QT object class

筅森魡賤 提交于 2019-12-12 06:27:14
问题 I'm new from using the PCL (Point Cloud Library). I try to declare a point cloud in QT object class in private, like this: class pcl_sys : public QThread { Q_OBJECT public: explicit pcl_sys(); ~pcl_sys(); void stop(); bool load_pcd_file(int type); signals: public slots: protected: void run(); private: pcl::PointCloud<pcl::PointXYZ>::Ptr *cloud_test; }; Then I new the point cloud when I opened up the program: pcl_sys::pcl_sys() { cloud_test=0; cloud_test= new pcl::PointCloud<pcl::PointXYZ>:

Use CloudViewer with custom PointT type

孤者浪人 提交于 2019-12-12 05:08:45
问题 I am using PCL (Point Cloud Library) have a custom PointT that inherits from pcl::PointXYZ struct PointXYZx : public pcl::PointXYZ { }; POINT_CLOUD_REGISTER_POINT_STRUCT (PointXYZx, (float, x, x) (float, y, y) (float, z, z)) And I want to plot it using CloudViewer: pcl::PointCloud<PointXYZx>::Ptr cloud (new pcl::PointCloud<PointXYZx>()); pcl::visualization::CloudViewer viewer ("Simple Cloud Viewer"); viewer.showCloud(cloud); But it gives me error saying: main.cpp: In function ‘int main()’:

Use Cmake with PCL and OpenCV

好久不见. 提交于 2019-12-12 04:06:21
问题 I am new to Computer Vision. On Cmake, i am trying to use PCL and OpenCV with a 2D Lidar sensor. I saw this tutorial: [http://unanancyowen.com/en/pcl18/#Download1 And to configure PCL on CmakeLists.txt the following code is used: cmake_minimum_required( VERSION 2.8 ) # Create Project project( solution ) add_executable( project main.cpp ) set_property( DIRECTORY PROPERTY VS_STARTUP_PROJECT "project" ) # Find Packages find_package( PCL 1.8 REQUIRED ) if( PCL_FOUND ) # Additional Include

Point Cloud Library (PCL) basic tutorial cmake and make errors on Ubuntu 16.04

≡放荡痞女 提交于 2019-12-12 02:11:56
问题 I've been trying to get PCL (1.8) working properly on my system (Ubuntu 16.04) but I am struggling to get even the basic tutorial to work. I could not install the prebuilt binaries supplied by pointclouds.org so instead followed the answer from this post and used the native repository from Ubuntu to install v1.8. I then began to run into the same issues raised in this question. I fixed some of them myself using symlinks to correct paths broken by renaming and also installed the missing

PCL feature matching failure

北慕城南 提交于 2019-12-11 19:49:28
问题 I am trying to match features between two point cloud I test by changing many parameters but it always produces wrong matches. I am calculating PFH feature descriptors of SIFT features. Thank you for your suggestions. Below is the code I used // load the both point clouds pcl::io::loadPCDFile("Tee.pcd", *cloud_1); pcl::PLYReader Reader; Reader.read("tee.ply", *cloud_2); //pcl::io::loadPCDFile("Tee.pcd", *cloud_2); // Create the filtering object pcl::PassThrough<pcl::PointXYZRGB> pass; pass

Visualise normals of PointNormal point cloud in PCL

最后都变了- 提交于 2019-12-11 15:06:54
问题 I am trying to visualize normals that are contained in a pcl::PointNormal point cloud. I try to do this with following code: std::shared_ptr<pcl::visualization::PCLVisualizer> viewer; std::mutex viewerMutex; void viewerThreadFunction() { while(true) { if(viewer->wasStopped()) break; viewerMutex.lock(); viewer->spinOnce(); viewerMutex.unlock(); } } int main() { viewer = std::shared_ptr<pcl::visualization::PCLVisualizer>( new pcl::visualization::PCLVisualizer("Viewer")); viewer-

Turn off Eigen Alignment in the PCL build

点点圈 提交于 2019-12-11 10:50:53
问题 So I have an issue where Eigen Alignment causes serious issues with the operating system I use, QNX. Basically the OS cannot deal with the memory that way and causes very interesting seg faults. See my other question here. Any way, for this reason I wish to disable the Eigen Alignment used in PCL before I build it. I have a couple of ideas about how i might do this. EIGEN INCLUDE FILES IN PCL So PCL has the structure for most of its modules like this (this is an example of the features module

E0145 Member may not be initialized- cmake - VS2017

被刻印的时光 ゝ 提交于 2019-12-11 09:53:29
问题 I am trying to link a C++ application with PCL library. I installed PCL and all its dependencies using VCPKG. I am using Visual Studio 2017 and cmake 3.12 for X64. When I am trying to build the solution it is giving me the following Errors. E0145 member "boost::filesystem::path::separator" may not be initialized C:\vcpkg-pcl\vcpkg-master\installed\x64- windows\include\boost\filesystem\path.hpp 65 E0145 member "boost::filesystem::path::preferred_separator" may not be initialized C:\vcpkg-pcl

Linker error LNK 2019, LNK1120 using PCL 1.8.0/1.6.0

倖福魔咒の 提交于 2019-12-11 06:23:38
问题 Presently I am using Visual Studio 2010, PCL 1.8.0/1.6.0, Now as per my requirement I have to add and bounding box to the cloud and to visualize the bounding box weather it is created for the given cloud, for Visualising we require the PCLVisualizer, when I am trying to initialize the PCLVisualizer get the below linker error and, As I am using the latest version of PCL, I though there might be any bug and I have downgraded to the older version 1.6.0 and tried but facing the same error can any