Visual3DModel In the satellite() function it doesn't move as desired

8 visualizaciones (últimos 30 días)
I want to simulation the satllite by TLE using
sc = satelliteScenario(startTime,stopTime,sampleTime)
sat = satellite(sc,'example.tle');
The code works normally. by points representing satellites moves according to the input TLE.
However, when I add
sat.Visual3DModel = "example.glb";
The model displays correctly. But when running the model The model does not move along the TLE like the previous point. and rotates in place throughout the simulation. And show the error:
Warning: Error occurred while executing the listener callback for
event MouseClickPlay defined for class
globe.internal.MouseController:
Dot indexing is not supported for variables of this type.
Error in
matlabshared.satellitescenario.internal.Satellite/addCZMLGraphic
Error in matlabshared.satellitescenario.Viewer/writeCZML
Error in satelliteScenario/play
Error in
matlabshared.satellitescenario.Viewer/resimulateCurrentScenario
Error in
matlabshared.satellitescenario.Viewer>@(~,~)viewer.resimulateCurrentScenario
Error in globe.internal.MouseController/processMouseEvent
Error in globe.internal.MouseController
Error in globe.internal.GlobeController/onRequestResponse
Error in globe.internal.GlobeController
Error in message.subscribe
Error in message.internal.executeCallback
Error in globe.internal.GlobeController
Error in globe.internal.GlobeController/waitForAction
Error in globe.internal.GlobeController/request
Error in globe.internal.GlobeController/getParameterRequest
Error in globe.internal.GlobeController/getCameraPosition
Error in globe.graphics.GeographicGlobe/getCameraPosition
Error in globe.graphics.GeographicGlobe/get.CameraPosition
Error in globe.graphics.GeographicGlobe/camheight
Error in matlabshared.satellitescenario.Viewer/camheight
Error in matlabshared.satellitescenario.ScenarioGraphic/flyToGraphic
Error in satelliteScenario/show
Error in satelliteScenario/satelliteScenarioViewer
Error in matlabshared.satellitescenario.ScenarioGraphic/show
Error in matlabshared.satellitescenario.internal.ObjectArray/show
I have tried changing several models. Every type shows the same way.
How should I fix it? Thank you
  2 comentarios
Piyush Kumar
Piyush Kumar el 17 de Jun. de 2024
Can you share the data - "startTime","stopTime","sampleTime","example.tle" required to reproduce the issue?
TK
TK el 17 de Jun. de 2024
Yes,
startTime = datetime('now');
stopTime = startTime + days(1);
sampleTime = 60;

Iniciar sesión para comentar.

Respuesta aceptada

Piyush Kumar
Piyush Kumar el 17 de Jun. de 2024
Just found this documentation which states that "Visual3DModel" is a property of a platform object. Hence , you can try creating a platform object first and then assigning the value of its property. There is an example mentioned here for "Visualize Platform Using geoTrajectory". The example includes creation of scenario, trajectory and platform.
  1 comentario
TK
TK el 18 de Jun. de 2024
Okay, I'll try it out.
Additionally, .glb is probably the related part that causes this problem. When I convert it to .STL it works fine.
Thanks for the guidance.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Satellite Mission Analysis en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by