Quaternion vs Euler Angles for UAV position control

Поділитися
Вставка
  • Опубліковано 14 лис 2024

КОМЕНТАРІ • 85

  • @Tadesan
    @Tadesan 6 років тому +9

    Thanks for the great video. Beautiful technology!

  • @AGeekNamedRoss
    @AGeekNamedRoss 6 років тому +14

    William Rowan Hamilton would dig this the most.

    • @christopherbooth9077
      @christopherbooth9077 2 роки тому +5

      Yes - he'd love to see drones (obviously that's just a guess!) and he'd love to see how his work had helped give better results than other techniques.

  • @alexanderstuart7801
    @alexanderstuart7801 5 років тому +36

    Thought the guy was missing a limb until I saw 1:02

  • @alec9527
    @alec9527 4 роки тому +48

    Do you have a paper or documentation of the difference in your flight controller between the two?

  • @lordphu
    @lordphu 4 роки тому +5

    wow, im totally switching to quaternion

  • @64_Tesseract
    @64_Tesseract 2 роки тому +21

    That really depends on the implementation - it mentioned it used a "simple linearization with Euler angles", so why not use a more complex algorithm using Euler angles?

    • @MisterSkaa
      @MisterSkaa 2 роки тому +18

      You need to linearize the system in order to design the PIDs for a flight controller. IE turn x' = f(x, u) into x' = Ax + Bu (where x is your vector of position, angle and velocity states, and u is your vector of throttle inputs). From there you can invert the system and select transfer functions to tune PID controllers for.
      Put simply: multi-copter dynamics are extremely complicated and not reasonable to solve analytically. So instead we make a linearization of the system around some set of states (usually hover) so you can analyze the performance and design a flight controller.

    • @dts_user1389
      @dts_user1389 2 роки тому +1

      @@MisterSkaa Thanks for the concise explanation!

  • @kgandhi24
    @kgandhi24 7 років тому +17

    Thank you for video.
    If you can provide some material to understand this, It would be very helpful.

    • @hernanabaunzagonzalez4482
      @hernanabaunzagonzalez4482  7 років тому +27

      Hi! Of course, you can find some of our publications in ieexplore: ieeexplore.ieee.org/search/searchresult.jsp?newsearch=true&queryText=abaunza%20quaternion or in our book: www.elsevier.com/books/indoor-navigation-strategies-for-aerial-autonomous-systems/castillo-garcia/978-0-12-805189-4, we are using quaternion-based approaches to stabilize the vehicle's position

    • @teoriaDelSoftware
      @teoriaDelSoftware 7 років тому +5

      i will appreciate those materials. Thank you, sir.

    • @drancerd
      @drancerd 4 місяці тому

      @@hernanabaunzagonzalez4482 Hermano! que excelente demostración! Sinceramente tu conocimiento es asombroso y debería ser publico, pero debes comer (como todos), ojalá me diera el cuero para comprar el libro y los papers, pero soy un Argentino promedio en 2024.
      La cuestión es que estoy interesado en aprender sobre los cuaterniones, pero más que nada en su uso, implementación y aplicación. Programo en C# y me encanta el diseño 3D (Uso Rhino y Grasshopper), por ende quiero crear un ambiente virtual para entrenar iAs, robots (de todo tipo, etc) pero para ello necesito aprender sobre cuaterniones y su implementación.
      La plataforma de la que hablo es muy completa y flexible, pero todo material que encuentro sobre cuaterniones es un copy paste (de la misma fuente), te "enseñan que son y a usarlos" en un ejemplo básico y especifico, pero no te enseñan a comprenderlos, por ende tampoco puedes explorar otras posibilidades de implementación.
      Pero por lo visto... Tu si que los comprendes! por ende quería saber si podrías hacer una especie de curso que explique bien el tema, para comprender de manera correcta los mismos.
      Desde ya muchas gracias por tu respuesta.

  • @fikrimuhammad5511
    @fikrimuhammad5511 6 років тому +7

    Hello there, really interesting comparison.
    Why is the quaternion approach has weird micro oscillation when hovering?

  • @roberthuber2770
    @roberthuber2770 2 роки тому +5

    Hamilton would be proud

  • @jakobhalskov
    @jakobhalskov 2 роки тому +2

    I spent the first one and a half minute wondering if this was a one armed engineer ^^

  • @Ziiadssort
    @Ziiadssort 7 років тому +8

    what are u using to control position? camera or only accelration extracted from qauternion?

    • @hernanabaunzagonzalez4482
      @hernanabaunzagonzalez4482  6 років тому +4

      IbnBatoutaful sorry for the delay in my response, we are using an OptiTrack system to estimate the position

  • @foosabraun2461
    @foosabraun2461 5 років тому +11

    Hello, could you provide some insight as to how did you achieve motor mixing using quaternions. Thank you!

  • @UKGeezer
    @UKGeezer 2 роки тому +5

    Eulers = gimbal lock
    Quaternions = no gimbal lock
    Is that the difference we're seeing?

    • @anprabh1
      @anprabh1 2 роки тому

      Yes

    • @peanutbutterjelly2188
      @peanutbutterjelly2188 2 роки тому

      Exactly!

    • @codeblocks4067
      @codeblocks4067 2 роки тому +1

      Don't think so, they likely just did a better job at implementing their quaternion flight control software vs their euler angle one. Gimbal lock only occurs in very specific situations. Not to mention in there test they pulled the euler angle quadcopter much further from it's target position so it may just be a software error causing it to flip when it tries to get back to the set position.

    • @erinlucassen6558
      @erinlucassen6558 2 роки тому +1

      @@codeblocks4067 I do actually think so. With Euler angles you introduce a singularity at a pitch angle of 90 degrees; which in the video was exactly when the drone started malfunctioning. With quaternions you do not introduce this singularity, and hence it was still controllable at that state.

    • @MrHaggyy
      @MrHaggyy 2 роки тому +1

      Not only gimbal lock. Newton Euler requires some form of sin and cos linearisation. The more points around a circle you linearize the better, but you get a lot of parameters into your code.
      With quaternions you have a linear algebra for rotations, so you can design one controller covering all rotations.
      But Quaternions tend to be "nervous" when there is "zero" rotation to the reference frame.

  • @shush1329
    @shush1329 3 роки тому +8

    Quaternions: harder daddy
    Dude: what?
    Quaternions: what?

  • @Diepotatoes21
    @Diepotatoes21 2 роки тому +1

    Yo this music kinda dope tho

  • @AmitSharma-bm2qj
    @AmitSharma-bm2qj Рік тому

    Hey, I have 5 DW1001 Dev-Kit. I want to make this using that. Please share some document or repository so I can try this.

  • @SP4CEBAR
    @SP4CEBAR 2 роки тому +1

    Thank you! I now know that quaternions are the way to go!

    • @codeblocks4067
      @codeblocks4067 2 роки тому +1

      Not really, the only thing this shows is that they did a better implementation of their flight control software using quaternions vs euler angles. Would only be valid if they gave a paper with it showing their different implementations and some data showing where they're experiencing gimbal lock, or whatever shortfall of a euler angle they're claiming is visible here.
      Edit: Which they appeared to link in another comment so take a look there if you're interested.

    • @MrHaggyy
      @MrHaggyy 2 роки тому +2

      Both have their pro and cons.
      Euler Implementation can be extremely fast to compute, but you need to linearise sin and cos and at 90° angles you have gimbal locks.
      Quaternions are a bit more to compute, but the algebra is linear by definition. So from pure math your UAV could hold any orientation in space.

  • @have_fun1107
    @have_fun1107 5 місяців тому

    Hello, great work. Is this project open source?

  • @lucasvargas7515
    @lucasvargas7515 6 років тому +7

    yo pensaba que le faltaba un brazo

    • @madridx2010
      @madridx2010 6 років тому +1

      jajajajajajajajajajajajajajjaja c mamo buen joven

  • @AliceRaskin
    @AliceRaskin Рік тому

    hello
    We are students of SJKS a school in Belgium and we have to do a research for our final paper. You seem to be a very interesting person for our research. Is there any possibility to be able to contact you with our questions?
    thank you

    • @hernanabaunzagonzalez4482
      @hernanabaunzagonzalez4482  Рік тому

      Hello Alice, I have just responded to your colleague via email! Thank you for your interest!

  • @aminulloh7083
    @aminulloh7083 2 місяці тому

    How it can back inti the blue mark? What kind of algorithm

  • @eyal4
    @eyal4 3 роки тому +1

    what quadcopter frame is that? I build my own embedded flight controller and would like to test it safely, that looks like great quadcopter frame

    • @01bit
      @01bit 3 роки тому

      drone parrot

  • @igort5418
    @igort5418 6 років тому +1

    Can you make it only using imu data, without camaras ???

  • @olofsandberg1125
    @olofsandberg1125 6 років тому +9

    Looks like the euler version recieves way rougher pushes

    • @hernanabaunzagonzalez4482
      @hernanabaunzagonzalez4482  6 років тому +4

      Olof Sandberg I don't think so... See after 1:11

    • @wtfatc4556
      @wtfatc4556 4 роки тому +1

      funny :)). but no.

    • @codeblocks4067
      @codeblocks4067 2 роки тому +3

      The euler angle test definitely wasn't rougher pushes but it was pulled further from the desired position for sure.

  • @Mat-tb1hq
    @Mat-tb1hq 2 місяці тому

    Hell yeah

  • @SuperchargedW12
    @SuperchargedW12 2 роки тому

    Nice. Hello Unity Devs.

  • @robinsharma7920
    @robinsharma7920 3 роки тому

    Where can i get such a drone frame??

  • @aliatabak7315
    @aliatabak7315 7 років тому +1

    Great video good work

  • @jrohit1110
    @jrohit1110 3 роки тому

    Do you have the code for this?

  • @pratikprajapati8620
    @pratikprajapati8620 6 років тому

    amazing

  • @rohanbandaru
    @rohanbandaru 8 місяців тому

    please share source code thank you kindly

  • @seanocansey2956
    @seanocansey2956 5 років тому +2

    Ngl I thought you had one arm......

  • @drmohammedmaliha3942
    @drmohammedmaliha3942 7 років тому +2

    what about pid controller ?

    • @hernanabaunzagonzalez4482
      @hernanabaunzagonzalez4482  7 років тому +7

      the PID controller can be used in both Euler and Quaternion approaches, but as you know it is valid only on linear systems or linearized regions, or some particular nonlinear systems. If you are trying to stabilize the position of a quadrotor using a PID and Euler angles, it will be very difficult to acchieve robustness with large angles (nonlinear conditions) or strong disturbances.

  • @gnorts_mr_alien
    @gnorts_mr_alien 2 роки тому +3

    poor guy lost his arm due to euler angles... probably.

  • @nirjharbhatnaagar1982
    @nirjharbhatnaagar1982 2 роки тому

    I know This Sound Track....I wonder how , I wonder Where....! lol ~Namaste~

  • @abhideepsingh4484
    @abhideepsingh4484 7 років тому +1

    does it have imu?

  • @reynaldocastillo2803
    @reynaldocastillo2803 5 років тому

    Wow :)

  • @mkengineering1387
    @mkengineering1387 2 роки тому

    🎈👌👌👌👌👌👌👍👍👍👍👍

  • @LeonardThomasHall
    @LeonardThomasHall 2 роки тому +6

    The math does not support the difference between the two. Poor programming would.

    • @InventTwig
      @InventTwig 2 роки тому

      I agree it's probably to donwith computation speed

    • @00bean00
      @00bean00 2 роки тому

      Ah, so poor programming is the reason Lisp won't run natively on Intel Hardware right?

    • @LeonardThomasHall
      @LeonardThomasHall 2 роки тому

      @@00bean00 ahh, not sure what you are trying to say here. But the difference between an Euler based implementation and a Quaternion based implementation is quiet subtle if done well. The most significant difference is the need to handle gimbal lock and the attitude trajectory can be made more efficient with less work using a Quaternion based system. I have no idea how this all relates to Lisp and Intel......

  • @artemryapolov1476
    @artemryapolov1476 4 роки тому

    Drone tamer

  • @ulassbingol
    @ulassbingol 5 років тому +11

    This music is too unprofessional

  • @electromechanicalmechatron1830
    @electromechanicalmechatron1830 6 років тому +4

    what's wrong with your hand dude

    • @menglin7432
      @menglin7432 3 роки тому +2

      Quadcopters are dangerous. Probably has nothing to do with the arm though

  • @Logan-kn3gt
    @Logan-kn3gt 7 років тому

    so...euler angles = shit?