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!