In short:
sensor_msgs::PointCloud2ConstPtr msg = ros::topic::waitForMessage("/camera/depth/points");
cloud_cb(msg);
sensor_msgs::PointCloud2ConstPtr msg = ros::topic::waitForMessage
cloud_cb(msg);
Eigen::Vector4f xyz_centroid;
Eigen::Matrix3f covariance_matrix;
compute3DCentroid (voxel_cloud, pointIdxRadiusSearch, xyz_centroid);
pcl17::computeCovarianceMatrix (voxel_cloud, pointIdxRadiusSearch, xyz_centroid, covariance_matrix);
Eigen::SelfAdjointEigenSolver<Eigen::Matrix3f> eigen_solver(covariance_matrix);
//std::cout << "From Eigen Solver : \n " << eigen_solver.eigenvalues() << std::endl;
Eigen::Vector3f temp1;
temp1 = eigen_solver.eigenvalues();
Use "a" or "an" | Use "the" | Don't Use "a," "an," or "the" | |
General Rules | Use "a" or "an" with a singular count noun when you mean "one of many," "any," "in general."
| Use "the" with any noun when the meaning is specific; for example, when the noun names the only one (or one) of a kind.
| Don't Use "a," "an," or "the" with a non-count noun when you mean "any," "in general."
|
Use "a" or "an" the first time you use a noun in a paragraph.
| Use "the" the second time you use that same noun in the same paragraph.
| Don't Use "a," "an," or "the" with a plural count noun when you mean "some of many things," "any," "in general."
|
// Ground plane estimation: Eigen::VectorXf ground_coeffs; ground_coeffs.resize(4); std::vector<int> clicked_points_indices; for (unsigned int i = 0; i < clicked_points_3d->points.size(); i++) clicked_points_indices.push_back(i); pcl::SampleConsensusModelPlane<PointT> model_plane(clicked_points_3d); model_plane.computeModelCoefficients(clicked_points_indices,ground_coeffs); std::cout << "Ground plane: " << ground_coeffs(0) << " " << ground_coeffs(1) << " " << ground_coeffs(2) << " " << ground_coeffs(3) << std::endl;
#Assuming you have a package installed called ethzasl_ptam
# Update ROS_PACKAGE_PATH (if necessary) export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:`pwd`/ethzasl_ptam