フィルターのクリア

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

5 ビュー (過去 30 日間)
TK
TK 2024 年 6 月 17 日
コメント済み: TK 2024 年 6 月 18 日
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 件のコメント
Piyush Kumar
Piyush Kumar 2024 年 6 月 17 日
Can you share the data - "startTime","stopTime","sampleTime","example.tle" required to reproduce the issue?
TK
TK 2024 年 6 月 17 日
Yes,
startTime = datetime('now');
stopTime = startTime + days(1);
sampleTime = 60;

サインインしてコメントする。

採用された回答

Piyush Kumar
Piyush Kumar 2024 年 6 月 17 日
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 件のコメント
TK
TK 2024 年 6 月 18 日
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.

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by