回答編集履歴
1
コード追記
answer
CHANGED
@@ -1,2 +1,18 @@
|
|
1
1
|
`std::vector<bool>`云々ではなく、
|
2
|
-
`source->at(i)`と`target->at(closest[i])`の型がコンストラクタの第1,第2引数の型と一致していないだけでは?
|
2
|
+
`source->at(i)`と`target->at(closest[i])`の型がコンストラクタの第1,第2引数の型と一致していないだけでは?
|
3
|
+
|
4
|
+
----
|
5
|
+
|
6
|
+
扱いたいデータがPointXYZであっているのであれば、
|
7
|
+
yohhoyさんのコメントにもあるように、以下のように修正すれば質問の箇所は通ると思います。
|
8
|
+
```diff
|
9
|
+
- CostFunc(const pcl::PointNormal source, const pcl::PointNormal target, const bool w)
|
10
|
+
+ CostFunc(const pcl::PointXYZ source, const pcl::PointXYZ target, const bool w)
|
11
|
+
- pcl::PointNormal source_;
|
12
|
+
- pcl::PointNormal target_;
|
13
|
+
+ pcl::PointXYZ source_;
|
14
|
+
+ pcl::PointXYZ target_;
|
15
|
+
```
|
16
|
+
|
17
|
+
`p[9]`以降アクセスしていたり、`w_`が`bool`ではなく`double`だったりと気になる点がありますが…
|
18
|
+
なにか元になるコードがあり、改造しているのでしょうか?
|