Skip to content

69 Update Codebase to Perform Propagation in Gym Environment using NN controllers#70

Open
schmidt1139 wants to merge 18 commits into66-separate-nns-for-throttle-and-directionfrom
69-perform-experiment-using-gymn-env-propagation-with-trained-nns
Open

69 Update Codebase to Perform Propagation in Gym Environment using NN controllers#70
schmidt1139 wants to merge 18 commits into66-separate-nns-for-throttle-and-directionfrom
69-perform-experiment-using-gymn-env-propagation-with-trained-nns

Conversation

@schmidt1139
Copy link
Owner

This pull request mainly contains work to update my code base to match the expected control paradigm of the trained NN controllers. The gym env code was a little stale in this regard, hadn't really been touched since before NN training and Hamiltonian control work.

This is a clean up commit that reformats some variables into dictionary
keys and so on after the refactoring of the other nn training scripts.
I neglected to do this in the previous branch.
Possible use cases include situations where no loss function is defined,
the function should be able to handle this without crashing.
These need to basically match the Hamiltonian ODEs but without the
co-states dictating the action. The action is an input array.
These can now be called interchangeably (with the appropriate input
coords) the SC object with update the other set whenever one is called.
- Removed unneeded central body radius from ODE
- Added g0 in km/s^2 for unit consistency
- Updated EOM function handle
- Removed comment
- Updated final SC state update to use cartesian method
I added an arbitrary thrust profile thats burning constantly with a
smoothly changing attitude. The env reset method uses a fixed
seed for reproducibility.
Each of these methods involves testing stepping in the environment for
one step using 1) no maneuvers, 2) an arbitrary maneuver, and 3) a
maneuver queried from a neural network. They both product log files with
numerical results from the step/propagation and check against truth
files. Meant to ensure no unintended behavior happens with env or
propagation.
@schmidt1139 schmidt1139 requested a review from MartinAstro July 17, 2025 02:09
@schmidt1139 schmidt1139 self-assigned this Jul 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants