Giter Club home page Giter Club logo

Practice

This is practice of nonlinear filter which is an example of optimal trajectory generation.

Second_order.slx is for second order filter for online optimal trajectory generation. And the other one is third order one. Figures show below is the result of the simulation of the third order one. It has to mention that I use different signals in these two simulation, so if you want to compare two filters' difference, you have to keep the signal consistent.

image

These plots are jerk, acceleration, velocity and position, respectively. Input signal is a sequence of three step functions. According to the result we can know that the plot of acceleration is continuous now. It is obvious that the third order filter is better.

About some parameters(simulation for third order one):

Ts=0.001;

U=5; % in second order, U means the maximum value of acceleration; in third order, it means the maximum value of jerk.

Vmax=2;

Vmin=-3;

Amin=-2;

Amax=2;

It has to mention that, the module named "if" and "if function" will keep signal as soon as they are triggered. It will remain and will not recover because the signal stops. So in this simulation, I use logical judgment instead of using these two modules.

It's normal that there exists fluctuations in the plots. It usually happens when the judgment conditions are close to the critical value. But this result still has some noise.

Ranness's Projects

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.