sheim / vibly_LFS

Python implementation to compute viable sets in state-action space
MIT License
2 stars 3 forks source link

Single trial visualisation #4

Closed charlotte-lemouel closed 5 years ago

charlotte-lemouel commented 5 years ago

In the test.py file I added a function to visualise the results of the simulation

sheim commented 5 years ago

Nice visualizations, but there are a few issues:

charlotte-lemouel commented 5 years ago

I moved the functions for plotting to a new folder called plotting, which has two files:

  1. single_trials now has 2 functions:
    • full_visualisation: same as previous (with the changes in colors and labels that you asked for); I think it is useful for sanity checking to have one function which plots all the variables returned by the simulation. However, by default it no longer returns the foot trajectory.
    • com_visualisation: nice plot of the CoM trajectory with the leg indicated, which we can use for graphs; if you like it, I will animate this.
  2. visualise_viability: for plotting the viability kernel

I've written examples of how to use these in the demos:

  1. test.py is modified to call single_trials
  2. I've added viability_plot.py which calls visualise_viability with your example data