safe-control-gym icon indicating copy to clipboard operation
safe-control-gym copied to clipboard

Run demo error.

Open Yang-Yefeng opened this issue 2 years ago • 2 comments

I occured an error when I was running the demo in ReadME.md.
I was running: ./create_fig6.sh

The error:

Traceback (most recent call last): File "./gp_mpc_experiment.py", line 197, in plot_xz_comparison_diag_constraint(prior_run, run, 1) File "./gp_mpc_experiment.py", line 27, in plot_xz_comparison_diag_constraint ax = plot_2D_comparison_with_prior(state_inds, prior_run, run, goal, init_ind, dir=dir) File "./gp_mpc_experiment.py", line 53, in plot_2D_comparison_with_prior horizon_cov = run.state_horizon_cov[init_ind] IndexError: list index out of range

Yang-Yefeng avatar Mar 16 '23 13:03 Yang-Yefeng

@Yang-Yefeng are you running safe-control-gym in its own dedicated condo environment? @adamhall is this an error you are familiar with>

JacopoPan avatar Mar 20 '23 14:03 JacopoPan

Hi @Yang-Yefeng, Your issue seems very similar to issue #95. Have you taken a look there? Also, could you list the python packages you have installed and their versions running something like

pip3 list or conda list.

Thanks!

adamhall avatar Mar 22 '23 19:03 adamhall