Good evening! Thank you for GMAT and the awesome work that you guys are doing đ
I am an astrodynamicist working with Saber Astronautics. I am interested in using GMAT programmatically as part of a containerized Java Spring Boot application. The GMAT API User Guide provides a few Java examples, but I have a few questions on how to set them up properly, specifically related to the loading of auxiliary data (e.g. eop file), but also on some missing members from the examples. There seems to be an abundance of Python and MATLAB examples, but not as much for Java. 1. On Windows, I have successfully managed to add the three jars to my build path, and configure my PATH such that the GMAT bin folder is added. In my code, I load the library by typing: System.load("C:\\Apps\\gmat-win-R2022a\\GMAT\\bin\\gmat_java.dll"); Then, I am able to run the following piece of code: TimeSystemConverter timeConverter = TimeSystemConverter.Instance(); timeConverter.SetLeapSecsFileReader(new LeapSecsFileReader()); double UTCepoch = 39000.000001; double TAIepoch = timeConverter.Convert(UTCepoch, TimeSystemConverter.UTC, TimeSystemConverter.TAI); However, the Java examples suggest using the member TimeSystemConverter timeConverter = gmat.theTimeSystemConverter; Am I loading the UTC-TAI file properly? Am I loading the dll library correctly? In the other Java examples, I cannot run gmat.Initialize() without crashing the JVM, and I find that I have to frequently cast all calls to gmat.Construct(). I feel I am using the Java API the wrong way. Is there a sample Java project that could get me started? Thank you once again in advance! Manny -- Like us on Facebook: www.facebook.com/SaberAstronautics <http://www.facebook.com/SaberAstronautics> *Confidentiality***** This email message and its attachments are subject to copyright and may contain privileged and confidential information intended for the recipient only. If this email is accidentally received by any person other than the recipient please return it to Saber Astronautics. immediately. If you are not the intended recipient please do not review, re-transmit or disseminate this message or any attachments. The views expressed in this email are those of the individual sender and may not reflect the views of Saber Astronautics. Saber Astronautics does not accept legal responsibility for the contents of this message or any attachments. Viruses causing any loss or damage are not Saber Astronautics responsibility.
_______________________________________________ GMAT-users mailing list GMAT-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gmat-users