필터 지우기
필터 지우기

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