GithubHelp home page GithubHelp logo

simple_casadi_mpc's People

Contributors

kotakku avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

epoxx-arch

simple_casadi_mpc's Issues

Problems using robotics libraries within constraints, stage_cost, and terminal_cost functions

hello. I've recently been trying to solve an manipulator motion planning NMPC problem using the pinocchio robotics library. However, I am experiencing problems using the pinocchio library in stage cost and terminal cost function.

I am trying to solve the following motion planning problem using nmpc.

image

I am trying to solve forward kinematics by taking the q value in the state from the stage cost and terminal cost, but the state is of MX type so I cannot use the pinocchio library. In the case of inequality constraints, the distance between the robot and the obstacle must be measured using the robot's q value for obstacle avoidance, but it is also difficult because the state is of the MX type.

Would it be helpful to change the arguments of the function to the casadi::DM type?

If the prediction horizon is less than the number of states, a segmentation fault occurs.

Hello, I am a student trying to implement MPC based on your library. I would like to express my gratitude to you for creating a library that made it easy to use casadi, which made it easy to implement mpc.

The question I would like to ask in the repository is that if the predict horizon is smaller than the number of states, nx, a segment error occurs.

The part where the problem occurs is in the code below that declares the MPC class in simple_casadi_mpc.hpp.

for (auto l = 0; l < nx; l++)
  {
         lbw_.push_back(x_bounds[nx - 1].first[l]);
         ubw_.push_back(x_bounds[nx - 1].second[l]);
  }

I would like to ask whether the number of repetitions in the for statement in the above code should be predict horizon N, not nx.

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.