mirror of
https://github.com/nasa/trick.git
synced 2024-12-18 12:56:26 +00:00
Trick Simulation Environment. Trick provides a common set of simulation capabilities and utilities to build simulations automatically.
f2e93ac490
* Fix for assigning to non-existent variables (#1708) This fix modifies Trick's convert_swig script. It adds a directive to not accept dynamic attributes. The directive will ensure that modelers do not assign to non-existent parameter in their input files. The prior fix (issues #1288 and/or #1603) did not cover C structures, so this commit is really an addendum to that fix. With this commit, the convert_swig script will generate a non-dynamic directive foreach class and structure. This fix also stops generating swig interface code for typedef structure definitions since swig only produces an interface to the actual typedef name. For example, with this typedef: typedef struct StructureName { double main_engine_thrust; /* N Thrust of main engine */ struct StructureName* next; /* ** Next pointer */ } TypeDefName; swig creates an interface for "TypeDefName", and not "StructureName", so there is no need for Trick to produce anything in regards "StructureName". * Fix for issue with classes defined in ifndef SWIG block convert_swig takes in the raw header and does no preprocessing, so blocks of c/c++ header code which are meant to be skipped by Swig are processed by convert_swig. This causes an issue with the generated python code that try to access classes that are ifndef SWIGed out. To fix this, check for class existence in the generated python code e.g: if 'MomMom' in globals(): MomMom.__setattr__ = _swig_setattr_nondynamic_instance_variable(object.__setattr__) * Fix for assignment to swig_double and swig_int primitives The previous commit(s) on this branch fixed bad assignments like (misspell position an attribute of BSTATE_IN): ball.state.input.positiaaaan = 4.0 This commit fixes bad assignments to leaf/primitive attributes like (try to add attribute to primitive/leaf double type): ball.state.input.position.fred = 4.0 * Moved _swig_setattr_nondynamic_instance_variable to right after each class in process_class and removed duplicate _swig_setattr_nondynamic_instance_variable blocks for classes that are not in a namespace. * Add the call for __setattr__ for class templates. --------- Co-authored-by: Hong Chen <hong.chen-1@nasa.gov> |
||
---|---|---|
.github/workflows | ||
autoconf | ||
bin | ||
CMakeModules | ||
CMakeTestFiles | ||
docs | ||
doxygen | ||
include/trick | ||
libexec/trick | ||
share | ||
test | ||
trick_sims | ||
trick_source | ||
.gitattributes | ||
.gitignore | ||
CMakeLists.txt | ||
configure | ||
LICENSE | ||
Makefile | ||
README.md | ||
test_overrides.mk | ||
test_sims32.yml | ||
test_sims.yml | ||
TrickLogo_darkmode.png | ||
TrickLogo.png | ||
trickops.py | ||
trigger |
The Trick Simulation Environment, developed at the NASA Johnson Space Center, is a powerful simulation development framework that enables users to build applications for all phases of space vehicle development. Trick expedites the creation of simulations for early vehicle design, performance evaluation, flight software development, flight vehicle dynamic load analysis, and virtual/hardware in the loop training. Trick's purpose is to provide a common set of simulation capabilities that allow users to concentrate on their domain specific models, rather than simulation-specific functions like job ordering, input file processing, or data recording.
Install Guide | Tutorial | Documentation |
---|---|---|
Follow the installation guide to properly configure Trick on your operating system. | Complete the tutorial to become familiar with the basics. | Visit the documentation for a more complete understanding of Trick. |
Related Projects | Frequently Asked Questions | How-To Guides |
---|---|---|
View some of the many projects that use Trick. | Read some of the most frequently asked questions pertaining to Trick. | See a collection of how-to guides detailing common Trick processes. |
Developer Docs |
---|
Read detailed documentation for various Trick internals and processes. |
Trick is released under the NASA Open Source Agreement Version 1.3 license.