点云可视化——实时显示点云流

实时显示点云流
`
int main()
{
pcl::visualization::PCLVisualizer viewer(“Cloud”);
pcl::PointCloud::Ptr cloud(new pcl::PointCloud);
int frame=0;
while(1)
{
char buf[233];
if (frame != 0)
{
sprintf(buf, “frame%d”, frame);
viewer.removePointCloud(buf);
}
sprintf(buf, “frame%d”, ++frame);
viewer.addPointCloud(cloud, buf);
viewer.spinOnce();
}
return 0;
}

`

猜你喜欢

转载自blog.csdn.net/qq_37124765/article/details/82262754
今日推荐