compiling project using pcl standalone

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

compiling project using pcl standalone

jysung100
Is there tutorial on how to use pcl standalone? Is it just same as using on ROS? How do I compile project using pcl standalone?
(Ubuntu 10.10)

(I am currently working on OpenNI project and I want to use PCL, but not sure how to use it nor how to compile using it.)

Thanks
Jae

_______________________________________________
[hidden email] / http://pointclouds.org
https://code.ros.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: compiling project using pcl standalone

Radu B. Rusu
Administrator
Jae,

Take a look at http://www.ros.org/wiki/pcl/standalone/. Let us know if you have any questions.

Suggestions on how to improve the standalone installation instructions are welcome!

Cheers,
Radu.
--
http://pointclouds.org

On 01/22/2011 01:50 AM, Jae Yong Sung wrote:

> Is there tutorial on how to use pcl standalone? Is it just same as using on ROS? How do I compile project using pcl
> standalone?
> (Ubuntu 10.10)
>
> (I am currently working on OpenNI project and I want to use PCL, but not sure how to use it nor how to compile using it.)
>
> Thanks
> Jae
>
>
>
> _______________________________________________
> [hidden email] / http://pointclouds.org
> https://code.ros.org/mailman/listinfo/pcl-users
_______________________________________________
[hidden email] / http://pointclouds.org
https://code.ros.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: compiling project using pcl standalone

jysung100
Yes, I did look at it and I did install without problem.
But how do I compile a project that uses standalone PCL?

Thanks,
Jae

On Sat, Jan 22, 2011 at 1:29 PM, Radu Bogdan Rusu <[hidden email]> wrote:
Jae,

Take a look at http://www.ros.org/wiki/pcl/standalone/. Let us know if you have any questions.

Suggestions on how to improve the standalone installation instructions are welcome!

Cheers,
Radu.
--
http://pointclouds.org


On 01/22/2011 01:50 AM, Jae Yong Sung wrote:
Is there tutorial on how to use pcl standalone? Is it just same as using on ROS? How do I compile project using pcl
standalone?
(Ubuntu 10.10)

(I am currently working on OpenNI project and I want to use PCL, but not sure how to use it nor how to compile using it.)

Thanks
Jae



_______________________________________________
[hidden email] / http://pointclouds.org
https://code.ros.org/mailman/listinfo/pcl-users


_______________________________________________
[hidden email] / http://pointclouds.org
https://code.ros.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: compiling project using pcl standalone

jysung100
Hi Radu,

I know you are familiar with OpenNI + NITE + Kinect on Ubuntu 10.10
I have a project that uses OpenNI, so this project has Makefile.
When I just tried to include #include <pcl/point_types.h>, it complains it cannot find such file.
How do I edit this Makefile to use PCL standalone?
I am new to all this Makefile system, please explain in detail.
Thanks a lot for help.

Jae

On Sat, Jan 22, 2011 at 1:39 PM, Jae Yong Sung <[hidden email]> wrote:
Yes, I did look at it and I did install without problem.
But how do I compile a project that uses standalone PCL?

Thanks,
Jae

On Sat, Jan 22, 2011 at 1:29 PM, Radu Bogdan Rusu <[hidden email]> wrote:
Jae,

Take a look at http://www.ros.org/wiki/pcl/standalone/. Let us know if you have any questions.

Suggestions on how to improve the standalone installation instructions are welcome!

Cheers,
Radu.
--
http://pointclouds.org


On 01/22/2011 01:50 AM, Jae Yong Sung wrote:
Is there tutorial on how to use pcl standalone? Is it just same as using on ROS? How do I compile project using pcl
standalone?
(Ubuntu 10.10)

(I am currently working on OpenNI project and I want to use PCL, but not sure how to use it nor how to compile using it.)

Thanks
Jae



_______________________________________________
[hidden email] / http://pointclouds.org
https://code.ros.org/mailman/listinfo/pcl-users



_______________________________________________
[hidden email] / http://pointclouds.org
https://code.ros.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: compiling project using pcl standalone

Stefan Holzer-3
Hi Jae,

have tried to add the include directories to the makefile? E.g. with a line like:

include_directories(${PCL_INCLUDE_DIRS})

where PCL_INCLUDE_DIRS points to the pcl include directory? Probably you have to do something similar for the libraries:

link_directories(${PCL_LIB_DIR})

(PCL_LIB_DIR points to the directory where the libraries are stored) and also specify the specific pcl libraries you need for your application:

target_link_libraries (my_application pcl_libraries_i_need)

where "my_application" is your application and "pcl_libraries_i_need" are the pcl libraries you need.

Actually, I never used/compiled the pcl standalones on linux, but thats how I do it on windows.

Cheers,
Stefan


Am 23.01.2011 00:31, schrieb Jae Yong Sung:
Hi Radu,

I know you are familiar with OpenNI + NITE + Kinect on Ubuntu 10.10
I have a project that uses OpenNI, so this project has Makefile.
When I just tried to include #include <pcl/point_types.h>, it complains it cannot find such file.
How do I edit this Makefile to use PCL standalone?
I am new to all this Makefile system, please explain in detail.
Thanks a lot for help.

Jae

On Sat, Jan 22, 2011 at 1:39 PM, Jae Yong Sung <[hidden email]> wrote:
Yes, I did look at it and I did install without problem.
But how do I compile a project that uses standalone PCL?

Thanks,
Jae

On Sat, Jan 22, 2011 at 1:29 PM, Radu Bogdan Rusu <[hidden email]> wrote:
Jae,

Take a look at http://www.ros.org/wiki/pcl/standalone/. Let us know if you have any questions.

Suggestions on how to improve the standalone installation instructions are welcome!

Cheers,
Radu.
--
http://pointclouds.org


On 01/22/2011 01:50 AM, Jae Yong Sung wrote:
Is there tutorial on how to use pcl standalone? Is it just same as using on ROS? How do I compile project using pcl
standalone?
(Ubuntu 10.10)

(I am currently working on OpenNI project and I want to use PCL, but not sure how to use it nor how to compile using it.)

Thanks
Jae



_______________________________________________
[hidden email] / http://pointclouds.org
https://code.ros.org/mailman/listinfo/pcl-users


_______________________________________________ [hidden email] / http://pointclouds.org https://code.ros.org/mailman/listinfo/pcl-users


_______________________________________________
[hidden email] / http://pointclouds.org
https://code.ros.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: compiling project using pcl standalone

Rich Mattes
I recently got some of the examples on the wiki working using the standalone pcl-0.7.0 sources and my own CMake scripts.  For the "Writing Point Cloud data to PCD files" tutorial[1] I ended up with a CMakeLists.txt that went something like this:

CMakeLists.txt:
-------------------------
cmake_minimum_required(VERSION 2.8)
include (FindPkgConfig)
pkg_check_modules(EIGEN3 REQUIRED eigen3)

include_directories("~/Source/pcl-0.7.0/include")
include_directories("~/Source/pcl-0.7.0/include/roslib")
include_directories("~/Source/pcl-0.7.0/src")
include_directories(${EIGEN3_INCLUDE_DIRS})
link_directories("~/Source/pcl-0.7.0/build")

set(PCL_LIBS pcl_io)
add_executable(pcd_write pcd_write.cpp)
target_link_libraries (pcd_write ${PCL_LIBS})
--------------------------

If you're using makefiles, you'll have to add the corresponding -I, -L, and -l directives in lieu of include_directories, link_directories and target_link_libraries.  You'll also need to make sure the directory containing the pcl libraries is on your LD_LIBRARY_PATH before you try running any executables you build in this manner.  An install target and a pcl.pc or FindPCL.cmake file for the pcl standalone library would make this process a little easier. 

For fun, I also tried to include pcl-0.7.0/cmake/rosbuild.cmake and use the rosbuild_add_executable macro as described on the tutorial page, but it didn't resolve any of the pcl include paths.  I guess that the rosbuild macros only work when you're using the pcl tutorials from within ros?

Rich

[1] http://www.ros.org/wiki/pcl/Tutorials/Write%20a%20Point%20Cloud%20to%20a%20PCD%20file

On 01/24/2011 11:45 AM, Stefan Holzer wrote:
Hi Jae,

have tried to add the include directories to the makefile? E.g. with a line like:

include_directories(${PCL_INCLUDE_DIRS})

where PCL_INCLUDE_DIRS points to the pcl include directory? Probably you have to do something similar for the libraries:

link_directories(${PCL_LIB_DIR})

(PCL_LIB_DIR points to the directory where the libraries are stored) and also specify the specific pcl libraries you need for your application:

target_link_libraries (my_application pcl_libraries_i_need)

where "my_application" is your application and "pcl_libraries_i_need" are the pcl libraries you need.

Actually, I never used/compiled the pcl standalones on linux, but thats how I do it on windows.

Cheers,
Stefan


Am 23.01.2011 00:31, schrieb Jae Yong Sung:
Hi Radu,

I know you are familiar with OpenNI + NITE + Kinect on Ubuntu 10.10
I have a project that uses OpenNI, so this project has Makefile.
When I just tried to include #include <pcl/point_types.h>, it complains it cannot find such file.
How do I edit this Makefile to use PCL standalone?
I am new to all this Makefile system, please explain in detail.
Thanks a lot for help.

Jae

On Sat, Jan 22, 2011 at 1:39 PM, Jae Yong Sung <[hidden email]> wrote:
Yes, I did look at it and I did install without problem.
But how do I compile a project that uses standalone PCL?

Thanks,
Jae

On Sat, Jan 22, 2011 at 1:29 PM, Radu Bogdan Rusu <[hidden email]> wrote:
Jae,

Take a look at http://www.ros.org/wiki/pcl/standalone/. Let us know if you have any questions.

Suggestions on how to improve the standalone installation instructions are welcome!

Cheers,
Radu.
--
http://pointclouds.org


On 01/22/2011 01:50 AM, Jae Yong Sung wrote:
Is there tutorial on how to use pcl standalone? Is it just same as using on ROS? How do I compile project using pcl
standalone?
(Ubuntu 10.10)

(I am currently working on OpenNI project and I want to use PCL, but not sure how to use it nor how to compile using it.)

Thanks
Jae



_______________________________________________
[hidden email] / http://pointclouds.org
https://code.ros.org/mailman/listinfo/pcl-users


_______________________________________________ [hidden email] / http://pointclouds.org https://code.ros.org/mailman/listinfo/pcl-users

_______________________________________________ [hidden email] / http://pointclouds.org https://code.ros.org/mailman/listinfo/pcl-users


_______________________________________________
[hidden email] / http://pointclouds.org
https://code.ros.org/mailman/listinfo/pcl-users