use joris's swig-generated casadi tree