Dear all, I have been trying to load, initialize, and run a GMAT-script using the provided Python API: import gmat_py as gmat # the one in the *R2022a/bin/gmatpy/_py38/* folder gmat.LoadScript('/home/m07/Desktop/MSE/THESIS/RACCOON/Scripts/Optimization/test.script') gmat.Initialize() gmat.ShowObjects() gmat.RunScript()
The script contains subscribers and event locators, such as: - OrbitView - OpenFramesInterface - ReportFile - GroundTrackPlot - XYPlot - ContactLocator For the subscribers, the only informative error description I get is: > *APIException: Subscriber Exception: > Subscriber::SetActualWrapperReference() "XYPlot1" failed to set reference > for object named "cubesat1.UTCModJulian." The wrapper is NULL.* > Notice the dot symbol at the "*cubesat1.UTCModJulian*", it doesn't exist in the script. Once I delete the related block of code in the GMAT-script, the following error is thrown for every other subscriber as well. The exception message is contained in the *R2022a/plugins/libEventLocator.so *shared library. Once I get rid of the subscriber section in the GMAT-script, I get the ContactLocator errors: > *APIException: Event Exception Thrown: Error setting observers on > ContactLocator Contact_Sat1_GS1. All observers must be either ground > stations or spacecraft. * In the GMAT-script, a contact locator refers to a spacecraft as an observed object (Target) and a ground station as an observer. When run via GMAT GUI, the script successfully finishes, all report files are generated, plots and 3-D visualization rendered alright. These issues prevent me from trying optimization Python codes in pair with GMAT. How could I solve this? Thank you in advance. Best regards, Mike
_______________________________________________ GMAT-developers mailing list GMAT-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gmat-developers