Added a Jupyter Notebook animated plotting function.
The function is inspired by testing estimators in Simulink, which has scopes to look at the performance of an estimator while a sim is running. The function can plot a list of functions of the estimator, sensors, and truth at a specified sample rate.
Jupyter Notebook Estimator Plotting Utility
Fixes #216
Depends on #226
Summary of changes
Added a Jupyter Notebook animated plotting function. The function is inspired by testing estimators in Simulink, which has scopes to look at the performance of an estimator while a sim is running. The function can plot a list of functions of the estimator, sensors, and truth at a specified sample rate.
The goal is to quickly test and see the accuracy of an estimator in Jupyter Notebook. psim/estimatortest/Orbit-estimator-test.ipynb is an example.
Running the Jupyter Notebook on the linux server over ssh
ssh into the server
clone the psim repo add
--recursive
flag to also get lincd psim
git checkout Jupyter-Notebook-Plotting-Utility
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
ipython kernel install --user --name=venv
jupyter notebook --no-browser --port 1234
Start an SSH tunnel to the server, see more info on unix use
ssh -NL 1234:localhost:1234 username@serverip
in a new local terminalcopy the URL in the output from step 9 into your browser. Something like the following should come up.
Click
estimatortest
and then openOrbit-estimator-test.ipynb
Change the kernel to venv.
Everything should be working now. I would recommend opening another ssh connection to do git stuff, or make edits in vim.