Coder Social home page Coder Social logo

tum-aas / neural-mpc Goto Github PK

View Code? Open in Web Editor NEW
148.0 148.0 16.0 131 KB

Real-time Neural MPC: Deep Learning Model Predictive Control for Quadrotors and Agile Robotic Platforms

License: GNU General Public License v3.0

CMake 1.67% Python 98.33%

neural-mpc's People

Contributors

tim-salzmann avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

neural-mpc's Issues

x_dot::init: Initialization failed since variables [gp_p, gp_a, gp_v, gp_r, trigger, f_a, df_a, a] are free

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

Traceback (most recent call last):
  File "src/experiments/trajectory_test.py", line 196, in <module>
    main(input_arguments)
  File "src/experiments/trajectory_test.py", line 43, in main
    quad_mpc = prepare_quadrotor_mpc(simulation_options, **params)
  File "/workspaces/neural_mpc/src/neural-mpc/ros_dd_mpc/src/experiments/comparative_experiment.py", line 126, in prepare_quadrotor_mpc
    quad_mpc = Quad3DMPC(my_quad, t_horizon=t_horizon, optimization_dt=node_dt, simulation_dt=simulation_dt,
  File "/workspaces/neural_mpc/src/neural-mpc/ros_dd_mpc/src/quad_mpc/quad_3d_mpc.py", line 88, in __init__
    self.quad_opt = Quad3DOptimizer(my_quad, t_horizon=t_horizon, n_nodes=n_nodes,
  File "/workspaces/neural_mpc/src/neural-mpc/ros_dd_mpc/src/quad_mpc/quad_3d_optimizer.py", line 147, in __init__
    self.quad_xdot[dyn_model_idx] = cs.Function('x_dot', [self.x, self.u], [dyn], ['x', 'u'], ['x_dot'])
  File "/workspaces/neural_mpc/dd_mpc_venv/lib/python3.8/site-packages/casadi/casadi.py", line 23607, in __init__
    this = _casadi.new_Function(*args)
RuntimeError: Error in Function::Function for 'x_dot' [MXFunction] at .../casadi/core/function.cpp:249:
.../casadi/core/function_internal.cpp:145: Error calling MXFunction::init for 'x_dot':
.../casadi/core/mx_function.cpp:406: x_dot::init: Initialization failed since variables [gp_p, gp_a, gp_v, gp_r, trigger, f_a, df_a, a] are free. These symbols occur in the output expressions but you forgot to declare these as inputs. Set option 'allow_free' to allow free variables.

Could somebody point me out how to fix it?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.