Skip to content

Instantly share code, notes, and snippets.

@jacquelinekay
Created April 21, 2016 19:10
Show Gist options
  • Save jacquelinekay/de36ff4a398793913e7e96064c893e1b to your computer and use it in GitHub Desktop.
Save jacquelinekay/de36ff4a398793913e7e96064c893e1b to your computer and use it in GitHub Desktop.
Example of link error with pcl 1.7.2 in Ubuntu 16.04
#include <pcl/io/io.h>
#include <pcl/io/pcd_io.h>
#include <pcl/point_types.h>
void
cloud_cb (const pcl::PCLPointCloud2::ConstPtr& cloud)
{
if ((cloud->width * cloud->height) == 0)
return;
std::stringstream ss;
ss << cloud->header.stamp << ".pcd";
pcl::PCDWriter writer;
writer.writeBinaryCompressed (ss.str (), *cloud, Eigen::Vector4f::Zero (),
Eigen::Quaternionf::Identity ());
}
int main(int argc, char ** argv)
{
pcl::PCLPointCloud2::Ptr cloud;
cloud_cb(cloud);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment