The TU Delft Astrodynamics Toolbox in Python, or tudatpy, is a python library that primarily exposes the powerful set of Tudat C++ libraries for orbit propagation.
The Tudat documentation is available here. The tudatpy API reference is available here.
--------> A MORE DETAILED SETUP GUIDE IS AVAILABLE HERE. <--------
It is recommended to use Anaconda (includes Spyder, jupyter notebooks, etc.)
or Miniforge (lightweight alternative with conda
only).
You can install tudatpy in a new dedicated environment called tolosat-tudatpy
by navigating to this directory and
running the following command:
conda env create -f environment.yaml
Any missing package beyond this step (like TLE-tools
) can be installed by running the Anaconda/Miniforge prompt and
running the following commands: conda activate tolosat-tudatpy
and then conda install <package_name>
or pip install <package_name>
.
If, when running the example code, an error shows up about tudatpy not working, one solution can be to downgrade the tudatpy version to 0.7.1 in the following way:
conda install -c tudat-team tudatpy=0.7.1
conda install tudat=2.11.1
Otherwise, if nothing works, try re-creating the environment using the environment_full.yml
, which is a snapshot
of a working environment (11/04/2024). Remember to first deactivate and then delete the old one.
The recommended IDE is PyCharm. A professional license is provided for free to students by applying here.
The Python interpreter should be configured to use the tolosat-tudatpy
environment.
When opening the full mission-analysis
project in PyCharm, use right-click > Mark Directory as > Sources Root on
the python
folder.