Git Product home page Git Product logo

Comments (1)

rikba avatar rikba commented on August 15, 2024

Dear @frontw ,

consult me how could I set up drone physical constraints

There are two ways. Either use the linear optimizer without constraints and then check the constraints of the trajectories using https://github.com/ethz-asl/mav_trajectory_generation#checking-input-feasibility . Or use the non-linear optimizer and set maximum magnitude constraints on velocity, acceleration, jerk or snap https://github.com/ethz-asl/mav_trajectory_generation#nonlinear-optimization .

maximum horizontal velocity;
maximum and minimum vertical velocity;

The current implementation only allows checking for the absolute maximum velocity, both in the non-linear and the posterior feasibility check.

maximum horizontal acceleration;
maximum and minimum vertical acceleration;

Same for the acceleration, we only check for the magnitude. Note that we assume a rigid body model and vertical props. Acceleration only occurs in the thrust direction of the props and the gravitational acceleration.

maximum height and flight distance.

You can check a segment for maximum flight height using the half space feasibility check. Flight distance is currently not implemented. But you could implement a method that computes the flight distance of a segment.

There is also addConstraint function and I could set constraints on different derivative_order, but, I think, it is equality constraint, not inequality.

I belief you are referring to
opt.addMaximumMagnitudeConstraint(mav_trajectory_generation::derivative_order::VELOCITY, v_max);.
The constraints are handled as a soft constraint in the cost function of the optimization (see Burri et al.). Thus they act like inequality constraints. However, the time of the segment is minimized such that most of the time one of the constraints will be met.

Hope I could help.

from mav_trajectory_generation.

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.