Error using the uavScenario object
이전 댓글 표시
Each time I run the uavScenario object to create a scenario I get the following error; (See MWE below)
rng(0)
s = uavScenario("StopTime",10,"HistoryBufferSize",200);
Error Message
Error using uav.internal.scenario.Platform/readSTL (line 305)
Invalid default value for property 'FixedWingMeshData' in class 'uav.internal.scenario.Platform':
Unrecognized field name "Points".
Error in uav.internal.scenario.Platform/readMeshData (line 319)
[meshData.Vertices, meshData.Faces] = uav.internal.scenario.Platform.readSTL(stlName);
Error in uav.internal.scenario.Scene (line 60)
obj.Platforms = uav.internal.scenario.Platform.empty;
Error in uavScenario (line 218)
obj.ScenarioImpl = uav.internal.scenario.Scene(...
Error in UAV_RadarSensor (line 5)
s = uavScenario("StopTime",10,"HistoryBufferSize",200);
댓글 수: 3
Jianxin Sun
2021년 8월 12일
Hi Ogbonnaya,
Thanks for reporting this issue. Could you please try the following command in MATLAB command window and reply what you got?
out = stlread("fixedwing.stl")
Also, could you please reply what you got after running
which stlread
Thanks,
Jianxin
Ogbonnaya Anicho
2021년 8월 12일
Ogbonnaya Anicho
2021년 8월 12일
편집: Jianxin Sun
2021년 8월 12일
답변 (1개)
Jianxin Sun
2021년 8월 12일
이동: Remo Pillat
2023년 11월 28일
0 개 추천
Hi Ogbonnaya,
It seems that your custom stlread implementation shadows the MATLAB implementation. If you could remove your stlread.m from MATLAB path, uavScenario code should start working.
Thanks,
Jianxin
댓글 수: 1
Ogbonnaya Anicho
2021년 8월 12일
이동: Dyuman Joshi
2023년 11월 28일
카테고리
도움말 센터 및 File Exchange에서 Scenario Simulation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!