Slam with external camera device
이전 댓글 표시
I don't currently have any knowledge about slam.
Is it possible to connect an external camera device such as realsense and perform slam with the image of that camera when performing slam with matlab?
댓글 수: 3
Walter Roberson
2021년 6월 19일
What is "slam" in this context ?
圭介 川邉
2021년 6월 21일
Walter Roberson
2021년 6월 21일
Ah, "Simultaneous Localization and Mapping"
답변 (1개)
Walter Roberson
2021년 6월 21일
0 개 추천
댓글 수: 11
圭介 川邉
2021년 6월 21일
圭介 川邉
2021년 6월 24일
Walter Roberson
2021년 6월 24일
When I run
openExample('vision/MonocularVisualSimultaneousLocalizationAndMappingExample')
on my R2021a Mac, it seems to execute without problem.
It has to download some data, which takes some time; you could have a problem if your disk filled up. You could also have a problem if you are running automated cleanup software that is cleaning out your temporary directories.
Which MATLAB release are you using, and which operating system?
圭介 川邉
2021년 6월 25일
Walter Roberson
2021년 6월 25일
You appear to be using https://github.com/IntelRealSense/librealsense/tree/master/wrappers/matlab but you have also created your own file of code, "Untitled" .
How is the variable dataFolder being created in your code? I suspect you might need to convert the ¥ into \ or / as I suspect the ¥ is not being treated as a folder separator. https://en.wikipedia.org/wiki/Yen_and_yuan_sign
The first part of the code of the example downloads image data to run the SLAM algorithm. If you have your own data, you can skip that part. You just need to save your image data collected by RealSense to a folder and use imagedatastore to manage the images. imagedatastore should work with Japanese locale as well.
jose daniel hoyos giraldo
2021년 12월 12일
@Qu Cao Do you think is possible to use a live camera such as the web cam in this monocular example? and how can we do it.
Thank you!
Walter Roberson
2021년 12월 12일
Yes, it is possible. However, it would require some editing.
Get rid of the image data store -- no downloading, just do not create it at all. Initialize the camera instead.
Change the while loop that checks numel(imds.Files) to remove that part of the test.
Change every read of an image into a call to get the next live camera image.
jose daniel hoyos giraldo
2021년 12월 15일
편집: jose daniel hoyos giraldo
2021년 12월 15일
Thank you! . I did it and it works fine. The only problem I face is the "focalLength", which is different for another camera and it is hard to find that technical value.
Prithivi Raj
2022년 11월 19일
iam getting an error : Unrecognized function or variable 'helperDetectAndExtractFeatures'.
카테고리
도움말 센터 및 File Exchange에서 Camera Calibration에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!