Git Product home page Git Product logo

blog's Issues

Install python-pcl on Ubuntu 18.04 with 'Visualization' disabled | Ubuntu18.04安装python-pcl

0. Version
Ubuntu=18.04.5
PCL=1.8.1
python-pcl=0.3.0

In Ubuntu20, apt install PCL will automatically choose the latest 1.11 version, but python-pcl support only PCL<=1.9. So use Ubuntu 18 will make things easier

1. Install PCL

sudo apt install libpcl-dev

Test if PCL installed successfully by https://blog.csdn.net/QFJIZHI/article/details/102564645
Create pcl_test.cpp and CMakeList.txt , content in the link above. Cmake needed

cmake .
make -j8
./pcl_test

2. Disable 'Visualization' module of PCL
Because 'Visualization' module has dependency on VTK, and python-pcl has an absolute path of VTK, which is likely to raise error. Disabling 'Visualization' and use other 3D libraries for visualization might be a better choice.

Download or git clone python-pcl from https://github.com/strawlab/python-pcl
Open python-pcl/setup.py
Do the following changing: (choose according to your PCL version)

image
image
image

More error info and solution can be found in: https://blog.csdn.net/weixin_30565101/article/details/113669008 (Chinese)

3. Compile python-pcl
cd to '/python-pcl'

python setup.py install

4. Test python-pcl

pip list

#(See if `python-pcl` exists)
#(remember to cd out '/python-pcl' before the following)

python
>>>import pcl
>>>pcl.PointCloud()
<PointCloud of 0 points>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.