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 comentarios

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
Ogbonnaya Anicho el 12 de Ag. de 2021
Thank you Jianxin for your prompt response. Please find output below;
out =
struct with fields:
faces: [1086×3 double]
vertices: [3258×3 double]
Thanks,
Ogbonnaya
Ogbonnaya Anicho
Ogbonnaya Anicho el 12 de Ag. de 2021
Editada: Jianxin Sun el 12 de Ag. de 2021
After running
which stlread
<Non-MATLAB-Folder>\stlread.m

Iniciar sesión para comentar.

Respuestas (1)

Jianxin Sun
Jianxin Sun el 12 de Ag. de 2021
Movida: Remo Pillat el 28 de Nov. de 2023

0 votos

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 comentario

Ogbonnaya Anicho
Ogbonnaya Anicho el 12 de Ag. de 2021
Movida: Dyuman Joshi el 28 de Nov. de 2023
Hi Jianxin,
Thank you, it worked!
I appreciate the support.
Regards,
Ogbonnaya

Iniciar sesión para comentar.

Productos

Versión

R2021a

Etiquetas

Preguntada:

el 11 de Ag. de 2021

Movida:

el 28 de Nov. de 2023

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by