ROS Gazebo vision.BlobAnalysis Error
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi all,
I am facing the problem with the vision.BlobAnalysis class for ROS beginner tutorial.
Following is the error:
Array formation and parentheses-style indexing with
objects of class 'vision.BlobAnalysis' is not allowed.
Use objects of class 'vision.BlobAnalysis' only as
scalars or use a cell array.
Error in detectCircle (line 37)
[centroids,majorAxes] = detector(imgBW);
Error in gazeboExampleMATLAB (line 29)
[centerX,centerY,circleSize] =
detectCircle(img,resizeScale);
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/195734/image.png)
please suggest, how can I resolve the error. Thank you very much in advance.
댓글 수: 0
채택된 답변
Sebastian Castro
2018년 9월 13일
Are you trying this in a version earlier than R2016b, by any chance?
If so, replace the problematic line with:
[centroids,majorAxes] = step(detector,imgBW);
- Sebastian
댓글 수: 0
추가 답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Specialized Messages에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!