java如何调用mmsystem,带Kinect的PCL(OpenNI Grabber)

但是我收到以下错误 . 请建议我,我做错了什么? :(

你的帮助非常值得!

#include

#include

#include

#include

#include

#include

#include

#include

#include "time.h"

#include

#include

#include

#include

#include

#include

#include

#include

#include

#include

using namespace pcl;

using namespace std;

class SimpleOpenNIViewer

{

public:

SimpleOpenNIViewer () : viewer ("PCL OpenNI Viewer") {}

void cloud_cb_ (const pcl::PointCloud<:pointxyz>::ConstPtr &cloud)

{

if (!viewer.wasStopped())

viewer.showCloud (cloud);

}

void run ()

{

// create a new grabber for OpenNI devices

pcl::Grabber* interface = new pcl::OpenNIGrabber();

// make callback function from member function

boost::function::ConstPtr&)> f =

boost::bind (&SimpleOpenNIViewer::cloud_cb_, this, _1);

interface->registerCallback (f);

// start receiving point clouds

interface->start ();

while (!viewer.wasStopped())

{

boost::this_thread::sleep (boost::posix_time::seconds (1));

}

interface->stop ();

}

pcl::visualization::CloudViewer viewer;

};

int main ()

{

SimpleOpenNIViewer v;

v.run ();

return 0;

}

1>------ Build started: Project: Experiment_PCL_Kinect, Configuration: Debug Win32 ------

1> Experiment_PCL.cpp

1>Experiment_PCL.cpp(92): error C2039: 'OpenNIGrabber' : is not a member of 'pcl'

1>Experiment_PCL.cpp(92): error C2061: syntax error : identifier 'OpenNIGrabber'

========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值