- Spacecraft Dynamics: Detailed simulation of spacecraft motion and behavior.
- Orbital Mechanics: Tools for analyzing and simulating orbital paths and maneuvers.
- Navigation Algorithms: Advanced algorithms for space navigation and trajectory planning.
- 💡 Description
- 💿 Installation
- 📖 Documentation
- 🦆 Examples
- 📞 Contact
- 💥 References
SpaceSim-Toolkit is an open-source simulation framework designed for space enthusiasts, researchers, and engineers. It provides tools for simulating spacecraft dynamics, orbital mechanics, and navigation algorithms in various space missions. This code is based on [1].
To setup the virtual environment for SpaceSim-Toolkit follow these steps:
# Clone the repository
$ git clone [email protected]:joaomarafuzgaspar/SpaceSim-Toolkit.git
$ cd SpaceSim-Toolkit
# Create the virtual environment and activate it
$ conda env create -f environment.yml
$ conda activate spacesim-toolkit
# Install matlab engine for MATLAB release R2022b
$ python -m pip install matlabengine==9.13.11
Important
You need to make sure you have MATLAB
installed.
To know which version of matlabengine
you need to install, refer to this link.
Alongside python src/main.py
several command line arguments can be used as follows:
-v
or--visualize
: To display figure(s). IfNone
it displays last applied algorithm deviations,all_deviations
displays all applied algorithms deviations andorbits
displays last propagated orbits.-f
or--formation
: Choose formation type (1 for V-R3x mission, 2 for higher-orbit).-a
or--algorithm
: Select navigation algorithm (fcekf, hcmci, or ccekf).-M
or--monte-carlo-sims
: Set number of Monte-Carlo simulations to run (integer >= 1).-p
or--propagate
: Propagate the spacecraft dynamics using the dynamics model.
This command propagates the dynamics for the V-R3x mission formation and saves the evolution of the state vectors and Jacobians.
$ python src/main.py -f 1 -p
This command runs 10 Monte-Carlo simulations using the fcekf
algorithm for the V-R3x mission formation, with visualization enabled.
$ python src/main.py -v -f 1 -a fcekf -M 10
Satellite | ||||||
---|---|---|---|---|---|---|
Chief 1 |
||||||
Deputy 1 |
||||||
Deputy 2 |
||||||
Deputy 3 |
Satellite | ||||||
---|---|---|---|---|---|---|
Chief 1 |
||||||
Deputy 1 |
||||||
Deputy 2 |
||||||
Deputy 3 |
SpaceSim-Toolkit is currently maintained by João Marafuz Gaspar ([email protected]).
[1] João Marafuz Gaspar. 2024. Collaborative Localization for Satellite Formations. [online] Available here.