Scripting openrocket with Python and JPype Overview 1 Scripting openrocket with Python and JPype. The ability to script OpenRocket and enhance it with user written code is an often discussed topic among the OpenRocket community. This article demonstrates one approach to the problem. Using Python and the JPype library it is possible to write external scripts which run outside of OpenRocket, but make use of OpenRocket much like any other python library. This approach provides a very rapid development environment for optimizing rocket designs, enhancing and exploring the simulation. It is also probably the best approach if you are interested in making use of OpenRocket as part of something larger. Main View C and Objective-C Tools CSS Tools HTML Tools Java Tools JavaScript Tools Perl Tools PHP Tools Python Tools Ruby Tools Shell Script Tools XML Tools SFTP / FTP Client General. Or, check out the specific editor pages for editor specific screen shots. An important advantage to this approach over something like embedded Jython scripting is that you have full access to all the python ecosystem, crucially numpy, scipy, matplotlib and other cpython only libraries. Click on any of the images or links below to see larger images. However, because scripts require external software they can not be integrated into a stand-alone OpenRocket distribution. Nevertheless, they do provide a nice way to prototype new OpenRocket features. To run the following examples you will need Python 3.6 or later and OpenRocket-15.03.jar. The numpy, scipy, matplotlib libraries are required (these usually come together). This is a fairly lightweight module which has been written for these examples to take care of some of the more cumbersome aspects of scripting OpenRocket with jpype.Īt the time of writing the orhelper module contains: These scripts all make use of a python package orhelper (below).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |