-
Notifications
You must be signed in to change notification settings - Fork 2
PointXYZ
Harumo Sasatake edited this page Oct 18, 2018
·
1 revision
点群の1つの点を表すクラス. 点のxyz座標を表しており,色情報などは含まない. 最もシンプルな点を表現するクラス. なれないうちはこれを使うのがおすすめ. 一つの点をあら合わすクラスなので 点群を表すためには,pcl::PointCloud<> クラスにpcl::PointXYZを 渡して使うことになる.具体的には,下のような感じ.
pcl::PointCloud<pcl::PointXYZ> point_cloud;
//もしくは
pcl::PointCloud<pcl::PointXYZ>::Ptr point_cloud_ptr(new pcl::PointCloud<pcl::PointXYZ>());
//[エラー出る]auto point_cloud_ptr(new pcl::PointCloud<pcl::PointXYZ>());
//autoはEigen使っている関係で遅延評価が入ってエラーがでる
| メンバ変数 | 説明 |
|---|---|
| x | 点のx座標 |
| y | 点のy座標 |
| z | 点のz座標 |