Ask Your Question
1

Where is pcl/io/openni_grabber.h ?

asked 2012-06-02 04:16:40 -0500

sam gravatar image

I compile PCL with ROS fuerte.

It says pcl/io/openni_grabber.h No such file or directory.

Here is my code:

 #include <iostream>
 #include <pcl/io/pcd_io.h>
 #include <pcl/point_types.h>
 #include <pcl/point_cloud.h>
 #include <pcl/point_types.h>
 #include <pcl/io/openni_grabber.h>
 #include <pcl/common/time.h>
 #include <pcl/visualization/cloud_viewer.h>
 #include <pcl/registration/icp.h>
 int
   main (int argc, char** argv)
 {

         pcl::PointCloud<pcl::PointXYZ>::Ptr cloud (new      pcl::PointCloud<pcl::PointXYZ>);
     pcl::visualization::CloudViewer viewer("Cloud Viewer");
         cloud->width=500;
         cloud->height=1;
         cloud->resize(cloud->height*cloud->width);
         for(int i=0;i<500;i++)
         {
                 cloud->points[i].x=i;
                 cloud->points[i].y=i;
                 cloud->points[i].z=i;
         }

            if (!viewer.wasStopped())
          viewer.showCloud (cloud);
            getchar();
   return (0);
 }

My Manifest:

 <package>
   <description brief="pcd_write">

      pcd_write

   </description>
   <author>sam</author>
   <license>BSD</license>
   <review status="unreviewed" notes=""/>
   <url>http://ros.org/wiki/pcd_write</url>
   <depend package="roscpp"/>
   <depend package="pcl"/>
   <depend package="pcl_ros"/>
   <depend package="sensor_msgs"/>

 </package>

How to solve it?

Thank you~

edit retag flag offensive close merge delete

Comments

Are you trying to use the stand-alone PCL library with ROS? There is still a separate version, packaged as ros-fuerte-pcl.

joq gravatar image joq  ( 2012-06-02 05:28:21 -0500 )edit

How to do that? Is there any docs? Thank you~

sam gravatar image sam  ( 2012-06-02 06:36:36 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2012-06-02 07:03:15 -0500

joq gravatar image
edit flag offensive delete link more

Comments

Isn't ROS combine with PCL perfectly?

sam gravatar image sam  ( 2012-06-02 14:50:23 -0500 )edit

Not perfectly. With Fuerte it does finally refer to PCL using a rosdep, but it's still a special build of PCL, not the stand-alone library.

joq gravatar image joq  ( 2012-06-02 19:20:44 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2012-06-02 04:16:40 -0500

Seen: 3,293 times

Last updated: Jun 02 '12