GithubHelp home page GithubHelp logo

Steering constraint to avoid crash about mpcc HOT 4 CLOSED

AIDRI avatar AIDRI commented on August 17, 2024
Steering constraint to avoid crash

from mpcc.

Comments (4)

alexliniger avatar alexliniger commented on August 17, 2024

The small cars can have quite high side slip angles, in the case of the full scale car this should be avoided.
To answer your question, yes the steering can be constrained to whatever range you like. In the C++ code it is in the bounds.json file and in the matlab version it should also be a config file.
However, it is maybe better to penalize this behavior with the beta cost which is implemented in C++, this is exactly one of the reasons we added this cost.

from mpcc.

AIDRI avatar AIDRI commented on August 17, 2024

ok, thanks for your answer.
I am actually trying to make a script to run a car in the simulator, but the car have a mass of 2 tones, that s why I d like to have steering constraint.
Btw, I checked the Matlab script, but i only see vars to change the cost of change of steering. If you have time, can you help me finding the var to do that ?

from mpcc.

alexliniger avatar alexliniger commented on August 17, 2024

MPC_vars.Tu = diag(1./[1,0.35,6]);

MPC_vars.invTu = diag([1,0.35,6]);

you can change it in these two lines, 0.35 is the current steering limit. you need to change it in both lines.

However, i am not sure how good it works for a full sized car, in the C++ code i had to change quite a lot to make it work properly.

from mpcc.

AIDRI avatar AIDRI commented on August 17, 2024

Ok, i wasn't looking at the good script.
Thanks for your answer (3 min reaction time haha), and good luck for the next improvements you would like to make 👍

from mpcc.

Related Issues (20)

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.