PCL catkin_make error

asked 2017-06-07 12:44:05 -0500

Ayush Sharma gravatar image

updated 2017-06-15 13:29:30 -0500

I installed pcl files from the following link

I created the package.xml file with the following link

Package.xml is as follows:

<?xml version="1.0"?>
<package>
  <name>pcl_conversions</name>
  <version>0.1.4</version>
  <description>Provides conversions from PCL data types and ROS message types</description>
  <maintainer email="william@osrfoundation.org">William Woodall</maintainer>

  <license>BSD</license>

  <url type="repository">https://github.com/ros-perception/pcl_conversions</url>
  <url type="bugtracker">https://github.com/ros-perception/pcl_conversions/issues</url>

  <author email="william@osrfoundation.org">William Woodall</author>

  <buildtool_depend>catkin</buildtool_depend>

  <build_depend>libpcl-all-dev</build_depend>
  <build_depend>pcl_msgs</build_depend>
  <build_depend>roscpp</build_depend>
  <build_depend>sensor_msgs</build_depend>
  <build_depend>std_msgs</build_depend>

  <run_depend>libpcl-all</run_depend>
  <run_depend>pcl_msgs</run_depend>
  <run_depend>roscpp</run_depend>
  <run_depend>sensor_msgs</run_depend>
  <run_depend>std_msgs</run_depend>
</package>

I am designing the Car like model from the following link.

Now, when i catkin_make. I get the error as follows:

image description

Now, it means, i need to add some code for "pcl" in the cmakelists.txt.

Kindly let me know why am i having an error? And if one needs to add commands for the "pcl" in the cmake file, then, kindly provide me the commands i need to add.

UPDATE: as on 15 June'2017 After, installing pcl, i am getting the error as follows:

image description

The Cmakelists.txt of the "pcl" package is as follows: https://raw.githubusercontent.com/Poi...

Regards

edit retag flag offensive close merge delete

Comments

Hi, could you please explain why you created the package.xml file of pcl_conversions? If you need to use pcl_conversions package you can install it. sudo apt-get install ros-indigo-pcl-conversions for ROS Indigo.

angeltop gravatar image angeltop  ( 2017-06-08 07:21:56 -0500 )edit

You are right Actually, even after installing PCL, my system shows the error of "<pcl features="" moment_of_inertia_estimation.h="">" not found.

Does installing pcl_conversion will help me removing the error?

The use of package.xml was a childish act! i regret for that.

Regards

Ayush Sharma gravatar image Ayush Sharma  ( 2017-06-09 12:27:48 -0500 )edit

pcl features is not in pcl_conversions and the header that you mention is part of pcl1.8 which can be installed from sources. Then in order to use it with ros you also need to specify that you need pcl 1.8 in your CMakeLists.txt

angeltop gravatar image angeltop  ( 2017-06-15 09:12:06 -0500 )edit

May i please have the link which can guide me the process of installing pcl 1.8. Regards

Ayush Sharma gravatar image Ayush Sharma  ( 2017-06-15 10:56:30 -0500 )edit

I am trying this, hope this will work! https://gitlab.com/EAVISE/publicwiki/...

Ayush Sharma gravatar image Ayush Sharma  ( 2017-06-15 11:04:33 -0500 )edit

Instructions can be found at http://pointclouds.org/documentation/... and the source code is at https://github.com/PointCloudLibrary/pcl Follow the instructions for the experimental release.

angeltop gravatar image angeltop  ( 2017-06-15 11:07:22 -0500 )edit

Respected, The error still exists! I followed the links you suggested. But then also the error remains! Kindly help me on this. Do i need to change the cmake list as well? If so, can you help how?!

Ayush Sharma gravatar image Ayush Sharma  ( 2017-06-15 12:04:27 -0500 )edit

Yes you have to change the CMakeLists.txt. You can specify the version number of the package with find_package(PCL 1.8 REQUIRED) you should also check that the installed library is in your LD_LIBRARY_PATH

angeltop gravatar image angeltop  ( 2017-06-15 12:11:08 -0500 )edit