質問編集履歴
1
コードの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,20 +1,52 @@
|
|
1
|
-
### 前提・実現したいこと
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
ここに質問の内容を詳しく書いてください。
|
6
|
-
|
7
|
-
(例)PHP(CakePHP)で●●なシステムを作っています。
|
8
|
-
|
9
|
-
■■な機能を実装中に以下のエラーメッセージが発生しました。
|
10
|
-
|
11
|
-
|
12
|
-
|
13
1
|
### 発生している問題・エラーメッセージ
|
14
2
|
|
15
3
|
|
16
4
|
|
17
|
-
エラー LNK2001 外部シンボル ""protected: virtual void __cdecl pcl::NormalEstimation<struct pcl::PointXYZRGBNormal,struct pcl::Normal>::computeFeature(class pcl::PointCloud<struct pcl::Normal> &)" (?computeFeature@?$NormalEstimation@UPointXYZRGBNormal@pcl@@UNormal@2@@pcl@@MEAAXAEAV?$PointCloud@UNormal@pcl@@@2@@Z)" は未解決です。 icp4_after_feature_registration C:\Users\YUZUKI\Desktop\ICP-test-master\build\icp4_after_feature_registration.obj
|
5
|
+
エラー LNK2001 外部シンボル ""protected: virtual void __cdecl pcl::NormalEstimation<struct pcl::PointXYZRGBNormal,struct pcl::Normal>::computeFeature(class pcl::PointCloud<struct pcl::Normal> &)" (?computeFeature@?$NormalEstimation@UPointXYZRGBNormal@pcl@@UNormal@2@@pcl@@MEAAXAEAV?$PointCloud@UNormal@pcl@@@2@@Z)" は未解決です。 icp4_after_feature_registration C:\Users\YUZUKI\Desktop\ICP-test-master\build\icp4_after_feature_registration.obj
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
NormalEstimationがでてくるのはこのコードだけです。
|
14
|
+
|
15
|
+
comuputeFeartureは見つかりませんでした。
|
16
|
+
|
17
|
+
void addNormal(pcl::PointCloud<pcl::PointXYZ>::Ptr cloud,
|
18
|
+
|
19
|
+
pcl::PointCloud<pcl::Normal>::Ptr normals,
|
20
|
+
|
21
|
+
pcl::PointCloud<pcl::PointXYZRGBNormal>::Ptr cloud_with_normals
|
22
|
+
|
23
|
+
)
|
24
|
+
|
25
|
+
{
|
26
|
+
|
27
|
+
pcl::search::KdTree<pcl::PointXYZ>::Ptr searchTree (new pcl::search::KdTree<pcl::PointXYZ>);
|
28
|
+
|
29
|
+
searchTree->setInputCloud ( cloud );
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
pcl::NormalEstimation<pcl::PointXYZ, pcl::Normal> normalEstimator;
|
34
|
+
|
35
|
+
normalEstimator.setInputCloud ( cloud );
|
36
|
+
|
37
|
+
normalEstimator.setSearchMethod ( searchTree );
|
38
|
+
|
39
|
+
normalEstimator.setKSearch ( 15 );
|
40
|
+
|
41
|
+
normalEstimator.compute ( *normals );
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
pcl::concatenateFields( *cloud, *normals, *cloud_with_normals );
|
46
|
+
|
47
|
+
}
|
48
|
+
|
49
|
+
|
18
50
|
|
19
51
|
|
20
52
|
|