Created
April 21, 2016 19:10
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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