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

How to use PCL python in ROS?

asked 2019-06-05 10:09:12 -0600

LukeAI gravatar image

Is it possible to build python-pcl against pcl_ROS?

I am using ROS Kinetic, Ubuntu 16.04, python2.7

Motivation

I wish to use PCL functionality (PointCloud_PointXYZRGB) in a python ROS node.

Context

I found that python-pcl 0.2.0 built against PCL 1.7.2 but that the function I needed: pcl.PointCloud_PointXYZRGB() wasn't available, only pcl.PointCloud() I don't know if this is the limits of PCL 1.7.2 or python-pcl

After a lot of messing around I managed to get python-pcl 0.3rc1 to build against PCL 1.8 (built from source) with cython 0.25.2 and I found that this gave me the functionality that I needed.

Ideally I would like to be able to build some version of python-pcl against pcl_ROS, we are probably going to do dozens of ROS/python-pcl installs and I found building and installing PCL 1.8 to be quite error prone and difficult to diagnose - plus we then have multiple versions of PCL on every system and I'm concerned about that causing complications.

Any ideas about the best way to proceed?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2019-11-19 08:47:37 -0600

LukeAI gravatar image

This is now easy, python-pcl 0.3 has since been published to pip which works with the default 1.7.2 PCL

edit flag offensive delete link more

Comments

any installation commands?

Petros ADLATUS gravatar image Petros ADLATUS  ( 2022-04-22 03:50:00 -0600 )edit
1

pip install python-pcl

LukeAI gravatar image LukeAI  ( 2022-04-25 10:09:54 -0600 )edit

Python3: pip install python3-pcl

Petros ADLATUS gravatar image Petros ADLATUS  ( 2022-05-10 23:56:44 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2019-06-05 10:09:12 -0600

Seen: 2,338 times

Last updated: Nov 19 '19