How to install python-pcl pcl_visualization on Ubuntu

pcl_visualization is a handy visualization feature if you are mostly working with PCL’s PointT format. Unfortunately, for some reason, the visualizer cannot be installed with the provided setup.py file. Hence, you need to make some modifications to it to make it work with certain versions of VTK if you plan on using the visualizer on Ubuntu.

My setup is Ubuntu 16.04. Note that you may have to make some adjustments to the command lines if you are running a different version.

The idea is uncomment certain parts of the “setup.py” file and modify a line such that pcl_visualization runs using the VTK version you have installed on your machine.

In my version of python-pcl, I uncommented lineĀ 561:

Included above:

Note that I used “vtk-6.2” instead of “vtk-5.8” because that was the VTK available when I observed the directory contents in /usr/include/.

Lastly, I uncommencted line 625:

For reference purposes, I did not install PCL explicitly, but used the one that came default with ROS Kinetic.

Leave a Reply

Your email address will not be published. Required fields are marked *