自分のカメラデバイスでのSLAMについて

9 views (last 30 days)
圭介 川邉
圭介 川邉 on 15 Nov 2021
Edited: 圭介 川邉 on 17 Nov 2021
私は以下のサイト
参考にしてファイル名「stereoslam.m」として自分の所持しているステレオカメラでSLAMを実行しようと考えています。
Map Initialization」の項目まではエラーが生じませんでしたが「Data Management and Visualization」の項目で以下のエラーが生じます。
エラー: worldpointset
featureIndicesは要素数が 2 である配列にする必要があります。
エラー: worldpointset/checkFeatureIndices (707)
validateattributes(featureIndices, {'numeric'}, ...
エラー: worldpointset/addCorrespondences (298)
checkFeatureIndices(obj, featureIndices, numel(pointIndices));
エラー: stereoslam (74)
mapPointSet = addCorrespondences(mapPointSet, currKeyFrameId,
stereoMapPointsIdx, matchedPairs(:, 1));
上記の「worldpointset.m」関数のコード内の「featureIndices」の要素数を変更することはできるのですか?
自分で「worldpointset.m」に書き込もうとすると「worldpointset.m」の書き込みエラーが表示され、worldpointset.m内にコードを変更することができないです。
このエラーの解決方法をどなたか教えていただけませんか。
  4 Comments
Atsushi Ueno
Atsushi Ueno on 16 Nov 2021
🤔
圭介 川邉
圭介 川邉 on 17 Nov 2021
Edited: 圭介 川邉 on 17 Nov 2021
本件の質問について返信をしていただきありがとうございました。
helperFindValidFeaturePairs関数を実行した後に
helperReconstructFromStereo関数を実行したところ、indexPairs内の値が空間数にならず、2×2 の uint32 行列が得られ、
xyzPoints=[]の状態に戻しても以下のエラーを解消することができました。
エラー: stereoslam (74)
mapPointSet = addCorrespondences(mapPointSet, currKeyFrameId,
stereoMapPointsIdx, matchedPairs(:, 1));
本件のエラーは自己解決することはできたのですが、新たに別件でエラーが生じたため別で質問してみます。
エラーの原因について回答していただき、ありがとうございました。

Sign in to comment.

Answers (0)

Products


Release

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!