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

11 Ansichten (letzte 30 Tage)
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 Kommentare
Piyush Kumar
Piyush Kumar am 17 Jun. 2024
Can you share the data - "startTime","stopTime","sampleTime","example.tle" required to reproduce the issue?
TK
TK am 17 Jun. 2024
Yes,
startTime = datetime('now');
stopTime = startTime + days(1);
sampleTime = 60;

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Piyush Kumar
Piyush Kumar am 17 Jun. 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 Kommentar
TK
TK am 18 Jun. 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.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Satellite Mission Analysis finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by