Hello,
I am trying to run the Monocular Visual Simultaneous Localization and Mapping tutorial in R2020b and am getting the following error messages:
Expected worldPoints to be nonempty.
validateattributes(worldPoints, {'double', 'single'}, ...
projectedPoints = worldToImage(intrinsics, R, t, localMapPoints);
I did not make any change to the code, except one in the Download and Explore the Input Image Sequence section, in order to create a datastore with the images I have been using in my test.
The error messages are thrown after the function helperTrackLocalMap is called on the main loop of the Tracking section:
[refKeyFrameId, localKeyFrameIds, currPose, mapPointsIdx, featureIdx] = helperTrackLocalMap(mapPointSet, directionAndDepth, vSetKeyFrames, mapPointsIdx, ...
featureIdx, currPose, currFeatures, currPoints, intrinsics, scaleFactor, numLevels);
Any help to troubleshoot this issue would be greatly appreciated.
Thanks.