utiasDSL / safe-control-gym

PyBullet CartPole and Quadrotor environments—with CasADi symbolic a priori dynamics—for learning-based control and RL
https://www.dynsyslab.org/safe-robot-learning/
MIT License
560 stars 123 forks source link

Run demo error. #124

Open Yang-Yefeng opened 1 year ago

Yang-Yefeng commented 1 year ago

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

JacopoPan commented 1 year ago

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

adamhall commented 1 year ago

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!