Closed alexbuyval closed 1 year ago
Hi there,
I came across this issue as well. I had originally Casadi 3.6.3 installed. However, the versions of Casadi from 3.6.2 do not support free-floating variables in the optimization problem. I tried two options which both worked in my case:
# Convert dynamics variables to functions of the state and input vectors
self.quad_xdot = {}
opts = {'allow_free': True}
for dyn_model_idx in nominal_with_gp.keys():
dyn = nominal_with_gp[dyn_model_idx]
self.quad_xdot[dyn_model_idx] = cs.Function('x_dot', [self.x, self.u], [dyn], ['x', 'u'], ['x_dot'], opts)
I hope that helps you out.
@srichste Yes, it solved the issue! Thank you so much!
Hi there,
First of all, thank you for the excellent work!
I tried to go through from all steps in readme and faced with the following error during a run:
python src/experiments/trajectory_test.py --model_version 9137159 --model_name simple_sim_mlp --model_typ mlp_approx
Could somebody point me out how to fix it?