Princeton Intro to Robotics (Fall 2026) | Lecture 4: Quadrotor Dynamics — Transcript
Full transcript
- 0:13So we're going to continue our
- 0:14discussion of motion planning. Uh so
- 0:16maybe just as a quick reminder in the
- 0:18the past uh two lectures uh we focused
- 0:21on this problem of geometric motion
- 0:22planning. So how do you get your robot
- 0:25to plan some path from configuration A
- 0:27to configuration B uh without colliding
- 0:29with any obstacles that are in the
- 0:31environment? Uh so the plan for the next
- 0:34uh couple of lectures is to start
- 0:36thinking about the dynamics of the
- 0:38robot. Uh which so far is something that
- 0:41we've ignored. uh and I guess
- 0:43specifically uh there are two challenges
- 0:46uh with the kind of geometric motion
- 0:48planning techniques that we've discussed
- 0:50so far uh that we want to start
- 0:52addressing. Uh the first one is what's
- 0:54known as dynamic feasibility. Uh so
- 0:57basically not all motion plans that come
- 1:00out of AAR or the RT algorithm which we
- 1:02looked at in the last lecture uh are
- 1:05actually physically executable uh by
- 1:08whatever robot you you happen to have.
- 1:11Uh and maybe just as a as a sort of
- 1:13quick uh uh check to to see if everyone
- 1:17understands what we mean by this um
- 1:19let's try to think about a a motion plan
- 1:22let's say that comes out of RT or or
- 1:24some other algorithm uh that is not
- 1:26actually dynamically feasible that's not
- 1:29physically executable uh by a drone. So
- 1:32let's say yeah I brought the the drone
- 1:34that we're going to be using uh for this
- 1:36course along today. uh you'll have a
- 1:38chance to uh start using it uh in the
- 1:41upcoming assignment which will be which
- 1:43will go out uh tomorrow. Uh but yeah, I
- 1:46guess for for now, let's just think
- 1:47about some some simple let's say motion
- 1:49plan uh that is not actually physically
- 1:53executable by by the robot. Thoughts on
- 1:55this?
- 1:57Go ahead.
- 1:57>> Maybe something that has a lot of really
- 1:59tight turns that the drone can't can't
- 2:01really achieve.
- 2:02>> Yep. Yeah. So, uh kind of very very
- 2:04agile motions. Maybe it it might be uh
- 2:07like there might be a certain minimum
- 2:08amount of like curvature. Um yeah, I
- 2:11guess other thoughts. Yeah,
- 2:13>> one frame like fully to the right max
- 2:16velocity and then right and one more
- 2:18time stand fully to the left max
- 2:20velocity.
- 2:21>> That's right. Yeah. So some something
- 2:22where it's actually a sharp curve may
- 2:25not be physically feasible. Go ahead.
- 2:28Maybe like a a crevice has to go through
- 2:30where it have to orient sideways, but
- 2:33then it can't orient sideways because
- 2:34it's thrust pointing like into the wall.
- 2:36>> Yep. Okay. Good. Yeah. Yeah. Uh there's
- 2:38actually a super simple example as well.
- 2:41I'm curious if anyone Yeah.
- 2:44>> translation.
- 2:45>> Good. Yeah. So just configuration A is
- 2:49uh horizontal. So just kind of flat uh
- 2:51and then perfectly translating uh along
- 2:55the same uh Z height. Uh so that's not
- 2:58physically uh feasible. Uh and I guess
- 3:01the the reason is that the the
- 3:02propellers are are producing thrust uh
- 3:05which is always perpendicular uh to the
- 3:07the body of the drone. Uh so there's no
- 3:09way to apply a force that is kind of
- 3:12purely horizontal if the drone is in
- 3:14this uh horizontal configuration. So
- 3:16there's no way to kind of have pure
- 3:18translation uh sideways. Uh so yeah, I
- 3:21guess that that's one challenge that
- 3:22we're going to start thinking about. How
- 3:24do we take into account uh dynamic
- 3:26feasibility when we're doing motion
- 3:27planning? Uh and then the second
- 3:29challenge is that uh even if your plan
- 3:32happens to be feasible uh for the
- 3:34particular dynamics model uh that you
- 3:36have uh that dynamics model may not be
- 3:39perfect like there's all sorts of like
- 3:41aerodynamic effects that are pretty
- 3:42complicated to take into account uh that
- 3:45we're going to mostly ignore. Um or
- 3:48there might be external disturbances.
- 3:49So, if you're flying outdoors, there
- 3:51might be a wind gust uh and that is kind
- 3:53of unpredictable and it might take you
- 3:55off the the planned uh motion that your
- 3:57drone is trying to to follow. Um so,
- 4:00yeah, I guess how do we account for for
- 4:02both of these factors? Uh that's what
- 4:04we're going to focus on for the the next
- 4:05few lectures. Um so, today's lecture and
- 4:08the next two lectures, we'll focus on
- 4:09the first part of this uh dynamic
- 4:11feasibility. uh and then beyond that
- 4:13we're going to start thinking about how
- 4:14we can use techniques from feedback
- 4:16control uh to address the errors and
- 4:19disturbances that your uh drone might
- 4:21encounter. Okay. So yeah uh the goal for
- 4:24today actually is just to to think about
- 4:26the dynamics uh like just how do we
- 4:28describe the dynamics of the drone. Um
- 4:31so there are entire courses devoted to
- 4:33to dynamics. I know some of you took MA
- 4:35206 where we spend basically like 23
- 4:38lectures like the 23rd lecture is a full
- 4:40derivation of equations of motion for
- 4:42the quadrotor. Uh so obviously this is
- 4:44going to be a a kind of a much quicker
- 4:46overview. Uh the goal today is just to
- 4:48give you a sense for what um the
- 4:51equations that describe the dynamics of
- 4:52a drone look like. Uh so I'll do this on
- 4:55the blackboard and then I'll I'll switch
- 4:57back. Yeah. So I'll I'll start off with
- 5:00uh a simplified
- 5:02version of the quadrotor
- 5:05uh which we've already encountered. This
- 5:07is the planer quadrotor.
- 5:13Um and yeah, I guess just to remind you
- 5:15of the setup here,
- 5:18uh this is a a version of the quadrotor
- 5:21that just lives in the plane. So just
- 5:22imagine that you're kind of looking at
- 5:24it uh from front on uh and all the
- 5:27motions are constrained uh to to one
- 5:30plane.
- 5:32Um so the cartoon kind of version of
- 5:35this system looks like this. So you have
- 5:38two propellers.
- 5:41So it's really a birotor rather than a
- 5:43quadrotor, but we're going to call it
- 5:44the the planer quadrotor. Uh and it's a
- 5:46three degree of freedom system. So
- 5:48there's a x and a y coordinate uh that
- 5:51describes let's say the center of mass
- 5:54of this planer quadrotor. Uh and then
- 5:56there's also an orientation.
- 6:03Um yeah so three three dos three
- 6:06independent ways that the system can
- 6:07move three coordinates that we need to
- 6:09specify the configuration of the drone.
- 6:12Uh and then there are also two
- 6:16control inputs, two things that the the
- 6:19drone can directly impact. Uh so these
- 6:22are the thrust forces. I'm going to call
- 6:24them f_sub_1 and f_sub_2. Uh for now,
- 6:26just imagine that the drone has the
- 6:28ability to kind of directly control
- 6:31whatever thrust it wants to produce.
- 6:33I'll say a little bit more about exactly
- 6:35how that works. Uh in practice what's
- 6:37happening is that the uh thing that the
- 6:39drone directly controls is the propeller
- 6:41speed. Uh and there's a nice
- 6:43relationship between the the speed of
- 6:45the propeller uh and the thrust that
- 6:47gets produced. But I I'll say more about
- 6:48that uh later in the in the lecture. Um
- 6:52so what I want to do is just kind of
- 6:54sketch out the dynamics of this system.
- 6:57So this three degree of three degree of
- 6:59freedom system. Uh how do we describe
- 7:01its dynamics? How do we get its
- 7:03equations of motion?
- 7:14Um and yeah, I guess typically the the
- 7:16way you do this is through Newton's
- 7:18laws. So Newton's second law in
- 7:20particular.
- 7:25Um so we can analyze the forces uh that
- 7:29are being applied on the the center of
- 7:31mass of the system or the the total
- 7:33forces that are being applied on the
- 7:35system. Uh so equate that to mass times
- 7:38the acceleration.
- 7:40Uh and if we do that uh we get some
- 7:43equations. So along the x-axis uh we
- 7:46have x dot. So the second time
- 7:48derivative of x uh equals um f_sub_1
- 7:54plus f_sub_2
- 7:57uh cossine theta
- 8:02uh divided by uh m. Okay, let me get the
- 8:06the signs correct here. Sorry, this
- 8:07should be negative
- 8:14uh negative f_sub_1 plus f_sub_2 and
- 8:16then sin theta.
- 8:20Uh and then y dot
- 8:24is
- 8:28uh f_sub_1 plus f_sub_2 cossine theta
- 8:32uh divided by m minus g. Uh so these are
- 8:38two equations that describe uh that give
- 8:41you kind of dynamics for the center of
- 8:42mass of the the drone. And again just
- 8:44just a quick sketch of where these come
- 8:46from. Uh so we're equating the mass of
- 8:49the drone little m times the
- 8:51acceleration let's say in the x
- 8:53direction. So that's m * x dot uh that
- 8:56equals the the forces uh the total
- 8:58forces that are being applied uh along
- 9:01the x direction uh on the on the drone.
- 9:04Um and I guess a quick maybe sanity
- 9:06check. Let's say f_sub_1 and f_sub_2 are
- 9:08both positive. Uh so the drone is uh
- 9:11applying some positive thrust force. Um
- 9:14we would expect in that sort of
- 9:17configuration where theta is positive uh
- 9:19we would expect the force to be in the
- 9:21negative direction. Maybe just convince
- 9:23yourself uh if the arrows are pointing
- 9:25that way theta is is positive uh the
- 9:28component of the forces along the x
- 9:29direction is in in is in the negative
- 9:32direction. Uh so that checks out. So if
- 9:34theta is some small let's say positive
- 9:36constant sine of theta is positive and
- 9:39we have a negative sign over here. Um
- 9:42and then yeah I guess we can do some
- 9:43kind of basic sanity checking here as
- 9:45well. Uh let's say if theta is zero uh
- 9:48then cosine of theta is one. Uh so in
- 9:51that configuration the drone is purely
- 9:53horizontal in the vertical direction. Uh
- 9:56the total thrust force should be f_sub_1
- 9:58plus f_sub_2. Um and then we have a
- 10:01negative gravitational constant. Yeah. I
- 10:04guess questions on on this where it
- 10:07comes from or or what it means.
- 10:11Okay. Uh and then the the last um
- 10:14equation
- 10:16describes uh dynamics for the the third
- 10:19degree of freedom uh which is the the
- 10:21orientation. Uh and this one
- 10:30uh basically relates the um
- 10:36uh the second derivative of of theta. So
- 10:39theta dot uh to the moment uh that's
- 10:42being applied on the on the drone. Uh
- 10:44and then also the moment of inertia. So
- 10:46this I term is the moment of inertia of
- 10:49the drone
- 10:56uh which is a a physical parameter of
- 10:58the drone. It basically captures how the
- 11:00the mass of the drone is spread out uh
- 11:02in its body. It's something that you can
- 11:04either kind of physically measure using
- 11:05some experiments uh or if you have a a
- 11:08CAD model of the drone u you can kind of
- 11:11estimate uh the moment of inertia from
- 11:13from the the CAD model. Uh so yeah I
- 11:16guess these are the the equations uh for
- 11:18the
- 11:20uh for the planer quadro order.
- 11:25And yeah, maybe I can just label these 1
- 11:27A,
- 11:291 B, 1 C.
- 11:35Um, and I might just to kind of simplify
- 11:38things just define some quantities.
- 11:46Um, so I'm going to define U1
- 11:50uh to be the total thrust force. So just
- 11:53f_sub_1 plus f_sub_2
- 11:56uh and I'll define u2 to be the total
- 11:59moment the torque uh which is f_sub_2
- 12:03minus f_sub_1
- 12:06multiplied by l uh and I should have
- 12:08said l here is also a physical parameter
- 12:11which is the the length
- 12:13uh of the moment arm. So it's the
- 12:16distance from the center of mass uh to
- 12:18one of the the propellers. Uh so that's
- 12:20this constant over here. uh so this is
- 12:23the the force times the the distance
- 12:25which is the the moment.
- 12:27Okay. So yeah, if I define these, then I
- 12:29can rewrite uh these equations as x dot
- 12:36uh equals negative u1
- 12:40um sin theta / m.
- 12:45Uh and then y dot
- 12:48uh is positive u1 cosine theta
- 12:54divided by m minus g.
- 12:58Uh and then finally theta dot
- 13:01uh is u2 which is f_sub_2 - f_sub_1
- 13:06l / i.
- 13:09So I've just rewritten in a slightly
- 13:12more compact form
- 13:15uh these these equations. Yeah, I guess
- 13:17questions on this.
- 13:22Okay, so yeah, I guess one thing to to
- 13:24notice here is that these are second
- 13:26order differential equations.
- 13:39uh and in general whenever you're
- 13:41applying Newton's second law you're
- 13:42going to end up with uh second order
- 13:44differential equations because of the
- 13:46acceleration term. So acceleration is
- 13:48second derivative of positions. Uh so
- 13:50you always get uh second order
- 13:51differential equations. Second order
- 13:53meaning that uh you have double time
- 13:55derivatives like double dots for x, y
- 13:58and uh and theta. uh and one thing
- 14:01that's going to be very useful uh for
- 14:03the next uh few lectures uh is taking
- 14:06these second order differential
- 14:07equations and converting them uh to a
- 14:10first order form. Uh so first order
- 14:12differential equations. Uh maybe just a
- 14:14quick show of hands. How many people
- 14:15know how to do this? Like just taking
- 14:17these equations which are second order
- 14:19uh and converting it to to a system of
- 14:21first order uh diffic.
- 14:24Okay, I guess everyone who's taken 206
- 14:26should should be familiar with this. uh
- 14:29but uh but I'll I'll go through the the
- 14:31process uh as a as a reminder uh also in
- 14:35principle you've seen it in in some
- 14:37difficq or calculus course but I think
- 14:39it's useful to to go through it uh and
- 14:42either kind of remind yourself of of how
- 14:43it works uh or just kind of learn how to
- 14:46do it. It's relatively simple once you
- 14:48get the hang of it. Uh it's something
- 14:49that we're going to do a few times uh in
- 14:52the course and it's just kind of useful
- 14:53to uh to see it uh kind of worked out.
- 14:57Um
- 14:59so yeah I guess what the the trick here
- 15:02so going from second uh to first order
- 15:05is to introduce some auxiliary variables
- 15:08uh just to define some some new
- 15:10variables. So I'm going to define
- 15:15uh vx. So v subscript x.
- 15:20Uh I'm going to define that to be x dot.
- 15:23Uh and the equal with a little triangle
- 15:26on top is the definition. So I'm just
- 15:28giving this a new name x dot. I'm just
- 15:29calling it vx. And then similarly
- 15:34vy is going to be y dot.
- 15:38uh and omega is going to be theta dot.
- 15:43So these are just definitions.
- 15:46Uh but what I can do with this is I can
- 15:49write
- 15:51uh x
- 15:53double dot or sorry I can write vx
- 15:59uh dot. So the time derivative of vx
- 16:03uh is then x dot. So it's the time
- 16:05dative of x dot which is which is x dot
- 16:10uh which from that equation up there is
- 16:14negative u1 sin theta
- 16:18uh divided by m.
- 16:22Uh and then similarly v y dot
- 16:28uh is by this definition it's the time
- 16:31derivative of y dot uh which is y dot
- 16:37uh which from this equation is u1 cosine
- 16:41theta
- 16:43uh divided by m minus g
- 16:48uh and then finally omega dot
- 16:52is theta dot
- 16:55uh which is just u2 / i
- 17:04uh and yeah basically what this uh
- 17:05allows us to to do uh is think of these
- 17:09second order differential equations uh
- 17:12in first order form. So we now have
- 17:16uh six first order differential
- 17:18equations.
- 17:20Uh so we have x dot is vx y dot is vy uh
- 17:25theta dot is is omega uh and then vx dot
- 17:29is this vy dot is is this uh and omega
- 17:31dot is is this so it's six
- 17:37uh first order uh differential equations
- 17:40like combining these So
- 17:55uh and that's sort of a general thing.
- 17:57So if you start off with n second order
- 18:00differential equations, uh you go
- 18:01through this conversion process, uh
- 18:03you're always going to end up with 2n
- 18:05first order uh differential equations.
- 18:08Um and yeah I guess maybe just to to
- 18:10pause here the the trick was to just
- 18:13read or to define uh these new
- 18:16variables. Uh so giving the time
- 18:18derivatives x dot y dot theta dot. Uh we
- 18:21just give them new names like new
- 18:23variables associated with them. I call
- 18:24them vx, vy and n omega. Uh so that
- 18:28gives you three first order differential
- 18:30equations. You take the derivatives of
- 18:33those. Um and then from these equations
- 18:36which we got from Newton's second law uh
- 18:38you get the the other three first order
- 18:41equations. Uh maybe I can just kind of
- 18:43write this down in a in a compact form.
- 18:46We can define
- 18:50the state of the system.
- 19:00Uh the planer quadrant over here I'm
- 19:02going to call that x
- 19:04with a bar. Uh and the the bar kind of
- 19:08notation here
- 19:11uh we're going to use to to denote
- 19:12vectors in the in the course.
- 19:15Uh so anything with a a bar is going to
- 19:17be a vector quantity. Um so this state
- 19:19vector which I'm going to call XAR
- 19:22uh is the concatenation of six things.
- 19:26So it's X
- 19:28Y theta
- 19:30uh and then X dot
- 19:32Y dot
- 19:34and theta dot.
- 19:38Uh and then we can also define the
- 19:40control inputs
- 19:42it over here.
- 19:48So the control input vector
- 19:54I'll call that u bar
- 19:56uh is going to be u1 and u2
- 20:01uh where u1 again is the total thrust uh
- 20:04which we defined up there and u2 is the
- 20:06the total uh moment
- 20:08uh and yeah basically what what this
- 20:10notation allows us to do is We can write
- 20:14down equations
- 20:17like all of these equations over here
- 20:19which are first order form. Um we can
- 20:22kind of combine them. So x dot the time
- 20:24derivative of the state vector uh which
- 20:26is d / dt
- 20:29of x
- 20:32uh is equal to
- 20:37uh so x dot is is vx
- 20:41y dot is v y theta dot is omega. So
- 20:45that's these three equations that I'm
- 20:48kind of writing over here.
- 20:50uh and then
- 20:52uh x doty dot theta dot actually I
- 20:54should have maybe I'll uh just uh stick
- 20:59with my notation
- 21:03I'll write this as vx
- 21:06v y and omega
- 21:10uh so vx dot
- 21:13uh we got from over here so negative u1
- 21:16sin theta
- 21:20divided by m. Uh v y dot uh is u1
- 21:27cosine theta / m minus g. Uh and then
- 21:31omega dot which is the same as theta dot
- 21:33is u2 / i.
- 21:40Um and yeah I guess these are uh this is
- 21:42our system of first order differential
- 21:44equations. So first order because on the
- 21:46left hand side we have a single dot not
- 21:48a double dot. Uh and yeah I guess on the
- 21:50right hand side we just have things that
- 21:53involve our state variables our control
- 21:55inputs and some physical constants like
- 21:58the inertia and the mass of the the
- 22:00system. Yeah I guess questions on on
- 22:02this process of conversion I guess. Does
- 22:04that ring a bell? Maybe raise your hand
- 22:06again if if you've seen this before. Uh
- 22:08okay most of you good. Uh yeah questions
- 22:10on the process. I'm happy to to walk
- 22:12through it. uh because it is something
- 22:14that's that's kind of just generally
- 22:16useful not just in this course but uh if
- 22:18you take control theory or other courses
- 22:20uh it's good to be comfortable with
- 22:21this. Yeah, I'll pause for a minute. See
- 22:23if there are questions.
- 22:29Okay. So I guess the sort of upshot of
- 22:33this uh is that we have our final
- 22:36equations of motion
- 22:44uh which end up looking like this.
- 22:47So if you look at these equations on the
- 22:49left hand side we have the time
- 22:50derivative of the state. So that's x
- 22:52dot. Uh on the right hand side we have
- 22:54some function uh of the state variables
- 22:58and the control input uh variables. Uh
- 23:01and the these this form of of equations
- 23:05uh is sort of a a general form
- 23:18that any equations of motion will take.
- 23:21So the derivative of the state uh is
- 23:23some function of the state uh and
- 23:26control inputs. Uh and basically what
- 23:28this allows us to to do is uh we can
- 23:32predict what the system will do. Uh so
- 23:34if at some initial time uh I tell you
- 23:36what the state of the system is. So I
- 23:39give you for the planer quadrotor I give
- 23:41you the configuration
- 23:42uh which is the x y and theta. I give
- 23:45you the initial speeds vx vy uh and and
- 23:49omega. uh and let's say I tell you what
- 23:51control inputs the drone is going to
- 23:53apply over some time horizon uh then
- 23:57this differential equation or the system
- 23:58of differential equations allows you
- 23:59allow you to predict uh exactly what the
- 24:02state will be uh at any given future uh
- 24:05point in time. uh and that's basically
- 24:08the the kind of starting point uh for
- 24:10doing motion planning uh in a way that
- 24:12accounts for the dynamics of the system
- 24:14or to do feedback control uh to to
- 24:17correct for uh errors. Um I haven't
- 24:20really kind of uh given a sort of
- 24:22thorough justification for why we're
- 24:24going from second order to first order.
- 24:27Uh again, if you've seen if you've taken
- 24:29MA 206 or some dynamics class uh then uh
- 24:32you've gone through this process many
- 24:34times. you've kind of plugged in these
- 24:35first order equations into mat lab or or
- 24:37python um to predict what your system
- 24:40will do. Um I'll we'll kind of have a a
- 24:44more thorough justification for why this
- 24:46is useful in in future lectures. Uh for
- 24:49now just just take it as given. It's
- 24:50something that that will be useful uh
- 24:53when we think more about dynamics and
- 24:55and control. Okay. Uh maybe just one
- 24:58more piece of terminology.
- 25:01Uh so I said this is a state. This is
- 25:03the control input. Uh these three
- 25:06variables are known as configuration
- 25:08variables.
- 25:18Uh so we encountered this in the context
- 25:21of geometric motion planning when we
- 25:22were thinking about configuration space.
- 25:24Uh for the planer quadrotor these three
- 25:26variables uh correspond to the three
- 25:28degrees of freedom of the the planer
- 25:30quadrotor. uh and if I tell you these
- 25:33numbers, if I give you these scalers, uh
- 25:35then that perfectly defines the
- 25:37configuration uh that the planer
- 25:38quadrotor is in. So that's why we call
- 25:40these uh configuration variables.
- 25:43Okay. So yeah, I guess that's a quick
- 25:45kind of sketch of uh equations of motion
- 25:48uh for the planer quadrotor.
- 25:52Uh I also want to sketch the equations
- 25:56for the full 3D quadrotor. Uh I'm not
- 25:59going to go into kind of detail here uh
- 26:02and write down the full equations. Uh in
- 26:04the notes which I posted on canvas uh I
- 26:06have a pointer to a reference uh that
- 26:08has the the full equations written out.
- 26:10Uh I guess the goal for this course is
- 26:12just to understand the general structure
- 26:15of equations of motion like the fact
- 26:16that they're always going to have this
- 26:19form x dot equals f ofxq.
- 26:22uh and then once you're kind of given
- 26:24those equations uh making use of them uh
- 26:27I don't expect you to be able to derive
- 26:28equations of motion uh in this course
- 26:31again if you're an MA student you should
- 26:32be able to do it but uh there's no
- 26:34expectation that that you can uh in this
- 26:36course so for this course we're just
- 26:37going to assume that maybe one of your
- 26:39MAE friends has kind of derived
- 26:41equations of motion for you uh we write
- 26:43them down in this general kind of first
- 26:45order form uh and then we're just going
- 26:47to use them for motion planning or
- 26:48feedback control Okay. So, yeah, let's
- 26:52start thinking a bit about the 3D
- 26:54quadrotor.
- 27:03Um, so yeah, I guess the the first
- 27:05question uh as usual is is just how many
- 27:07degrees of freedom
- 27:11uh does this system have? So, we
- 27:13discussed this in a previous lecture.
- 27:14So, there's six degrees of freedom. Uh
- 27:18so three degrees of freedom
- 27:19corresponding to the translation of the
- 27:21the drone. Uh so three coordinates that
- 27:24you need to specify the center of mass
- 27:26uh location. Uh and then three degrees
- 27:29of freedom for the orientation of the
- 27:31the drone. Um,
- 27:34so yeah, what I want to do next is just
- 27:36give you a quick
- 27:42uh description of how we describe the
- 27:46orientation of the the drone which uh in
- 27:49this class we're going to do using oiler
- 27:51angles. Uh maybe another quick show of
- 27:54hands. How many of you have seen oiler
- 27:55angles before? Okay, a number of you.
- 27:57Okay, so yeah, hopefully this will be a
- 27:58recap for for most people. Um yeah, I
- 28:02guess the way angles work uh is you
- 28:06attach
- 28:08um some frame uh so some directions uh
- 28:14we'll write it like this. So we have
- 28:17three directions let's say
- 28:22ex ey and ez
- 28:26uh these are our inertial directions. So
- 28:30some reference frame let's say attached
- 28:31to the room uh that you're you're
- 28:33working in. Uh and then you have some
- 28:41uh some direction some frame that's
- 28:43attached to the the body of the the
- 28:45drone. So its origin is at the center of
- 28:48mass of the the drone. So I'll call it O
- 28:49prime. Uh and we have three directions
- 28:52here. So uh bx
- 28:57uh which is sort of the forward
- 28:59direction
- 29:03uh b y
- 29:07which is the left direction
- 29:11uh and then bzz which is up.
- 29:19Um and yeah, this these axes are
- 29:22attached to the the body of the the
- 29:24drone. Um so for our drone, uh if you
- 29:27look carefully,
- 29:29uh there's a little kind of uh nub, uh
- 29:32which denotes the the forward uh
- 29:34direction. Um so that direction is going
- 29:36to be positive x. Uh so forward is is
- 29:39positive x. Uh left is positive y and
- 29:44then z is up. Uh so that forms a
- 29:46right-handed uh coordinate system. Uh
- 29:49that's the convention that we're going
- 29:50to use throughout uh for the course. So
- 29:52in particular for the lab that goes out
- 29:53tomorrow. Uh that's the the coordinate
- 29:56system that we we're going to be using.
- 29:57So you'll have a chance to implement the
- 29:59RT algorithm. Uh for the RT algorithm, X
- 30:01is going to be forward, Y is going to be
- 30:04left, and then yeah, I guess Z is just
- 30:05going to be up. Um yeah, that's that's
- 30:07the convention that that we'll follow.
- 30:10Um so yeah let's say we've defined these
- 30:12axes uh that are attached to the the
- 30:15body of the drone. Uh these axes will
- 30:17move around uh as the the drone moves
- 30:20and and tilts. Um so the way our angles
- 30:24work like the way we define uh
- 30:27orientations
- 30:40uh is a basically a three-step uh
- 30:43process. Uh so the first step
- 30:48is you rotate
- 30:51actually there's a zero step which is
- 30:54like align
- 30:57the body frame
- 31:03with the inertial frame.
- 31:13Uh so just start off with the the drone
- 31:15kind of aligned with the inertial axis.
- 31:17So bx is ex y is ey. Bz is ez. And then
- 31:23the first step is to to rotate uh the
- 31:25the body frame. Uh which I'm going to
- 31:28call b. Uh so yeah the body frame is is
- 31:32b.
- 31:34Uh so rotate B about EX
- 31:44uh with some angle
- 31:47uh which I'm going to call five. Uh so
- 31:50this angle is called the roll angle.
- 31:55Um so maybe just going back to the the
- 31:57drone over here. Uh so again forward
- 32:01uh is the the positive x direction. Uh
- 32:05so we always when we apply rotations we
- 32:07always apply it with the right hand
- 32:09rule. So you point the the thumb along
- 32:11that direction uh and then you rotate uh
- 32:13kind of clockwise. Um so the first step
- 32:15here is to to do the rotation about the
- 32:18the positive x direction. Uh so that's
- 32:20this angle over here. Uh so that that's
- 32:23step one. Uh and then step two is to
- 32:26rotate about the ey
- 32:43which I'm going to call theta. Uh and
- 32:45this will be the pitch.
- 32:50Uh and then the third step
- 32:56is to rotate B
- 33:00uh about
- 33:02EZ the Z inertial direction uh by
- 33:06another angle uh which I'm going to call
- 33:08S. So this is going to be Y
- 33:14uh and yeah maybe I can just visualize
- 33:16this again. Uh so again if you want to
- 33:18describe some arbitrary orientation that
- 33:21the the drone is in uh you first start
- 33:23off with the drone being aligned to the
- 33:26inertial axis uh you then rotate about
- 33:28the positive x direction. So that's this
- 33:31that's role uh then you rotate about the
- 33:34positive y direction. So that's sort of
- 33:37the left inertial direction. uh if we do
- 33:40a uh again apply the the right hand rule
- 33:43uh positive pitch by this convention uh
- 33:45is kind of pitching down uh and then the
- 33:48last step is rotate about the ez
- 33:51direction again right hand rule uh so we
- 33:53go this way yeah I guess does that make
- 33:56sense questions on the steps yeah
- 33:59question
- 34:00>> yeah of course yeah yeah so uh forward
- 34:03is is positive uh positive x um so
- 34:06that's this direction over
- 34:08Uh so the first step is uh rotate about
- 34:11that axis by some angle phi. Uh so
- 34:15that's this rotation. Uh and then the
- 34:18second one is uh rotate uh again using
- 34:21the right hand rule uh about ey. Ey is
- 34:24the the left sort of inertial axis which
- 34:26is this way. Um so again right hand rule
- 34:30uh means you go this way. Uh so that's
- 34:32positive theta. Uh and then the third
- 34:34direction is you uh rotate about
- 34:37positive EZ which is the vertical axis
- 34:40in the room. So that's going to be this
- 34:42way. Uh and yeah, I guess that the key
- 34:44result uh behind all angles is that any
- 34:48arbitrary orientation of the drone like
- 34:50no matter what sort of random
- 34:52configuration your drone is in uh you
- 34:54can always describe that orientation uh
- 34:57using these three numbers. Um so
- 34:59whatever kind of configuration of the
- 35:01drone or orientation of the drone you
- 35:02give me uh I can give you three numbers
- 35:055 theta s uh such that if I go through
- 35:07this uh sequence of rotations uh then I
- 35:10will get to the arbitrary orientation
- 35:13that you specified and we can do this
- 35:15for for any uh rotation. Um these
- 35:19numbers are not necessarily unique. So
- 35:21there might be uh two sets of pi theta
- 35:24si that describe the same physical
- 35:25orientation. uh that's not something
- 35:27we're going to sort of bother with in
- 35:29this course. There are more
- 35:30sophisticated uh ways of uh describing
- 35:32orientations using quitterians for
- 35:34example. Uh yeah, I guess for for this
- 35:36course we'll just keep it simple, use
- 35:38our angles. Uh and yeah, this is the
- 35:41process by which we're going to describe
- 35:42orientations for the the drone. Uh maybe
- 35:46just one quick note. uh what I've
- 35:49described over here is what's known as
- 35:51the space
- 35:55uh one two three or maybe XYZ
- 36:02uh convention.
- 36:10Uh it turns out that there are many many
- 36:12conventions that that you could use. Um
- 36:15the name here comes from the fact that
- 36:18uh we're doing the rotations about the
- 36:20inertial axis. So ex ey ez. So that's
- 36:24the the space part. Uh there's a whole
- 36:27kind of different set of conventions
- 36:28which are body conventions. Uh meaning
- 36:31that you uh always rotate about the the
- 36:35new sort of intermediate axes uh that
- 36:37the body frames are in. So when you do
- 36:39the the first rotation uh you get some
- 36:41new frame some new bx b y bz uh and then
- 36:45you rotate about one of those directions
- 36:47you get another new frame and then you
- 36:49rotate about one of those new
- 36:50directions. Uh so those are called like
- 36:52body something something something
- 36:54conventions. Uh we're not going to use
- 36:56them in in this class just to kind of
- 36:58keep things uh simple. Uh we're going to
- 37:00stick to the space 123 convention. Even
- 37:03within the space conventions or the body
- 37:05conventions, there's multiple choices
- 37:07that that you have. Uh here we're
- 37:10choosing to do EX followed by EY
- 37:13followed by EZ. Uh you could do the
- 37:16opposite. You could do EZ followed by EY
- 37:19followed by EX. Uh or you could do sort
- 37:22of 31213.
- 37:24There's many permutations. Uh some of
- 37:27them are are not valid. Like if I of
- 37:28course do 111 like that's a sort of
- 37:30useless convention. Uh but uh there's a
- 37:34bunch of like non-trivial conventions
- 37:35that are all kind of equally valid. Uh
- 37:38and depending on the particular uh
- 37:40domain uh that you happen to be working
- 37:42in, whether it's like aerospace or
- 37:43something else, uh people like different
- 37:46conventions just for purely historical
- 37:48and maybe convenience reasons. Uh but
- 37:51again, as I mentioned, we're going to
- 37:52just kind of forget about all the
- 37:54different conventions. Uh for the
- 37:56purpose of this course, we're just going
- 37:57to stick to this particular oiler angle
- 38:00convention. of space meaning that we do
- 38:02the rotations about the inertial axis 1
- 38:062 3 meaning that we first do the
- 38:08rotation about x uh then the rotation
- 38:10about y uh and then the rotation about z
- 38:14okay yeah questions let me pause here
- 38:16and see if there are questions I guess
- 38:17if you haven't seen order angles or if
- 38:18you have yeah go ahead
- 38:20>> is there advantages to using body fix
- 38:21frames in the sense that like it enables
- 38:23you to define it relative to your
- 38:25controller like inputs because your
- 38:27forces are also like yeah your engines
- 38:29are defined So there are there are some
- 38:31benefits uh particularly on the sensing
- 38:34side. Uh you might it might be sort of
- 38:36easier to to make some measurements like
- 38:38in the in the body frame. Uh but yeah
- 38:40you can kind of go back and forth like
- 38:42if I give you one convention uh and you
- 38:44want to do the conversion to another
- 38:46convention you can yeah you can do that
- 38:48that conversion. Uh but yeah I guess in
- 38:50practice using multiple conventions
- 38:52causes a lot of headache and confusion.
- 38:55Uh yeah, I remember in grad school I was
- 38:57trying to get a model for a fixed wing
- 38:59airplane. Uh and I wasted about like
- 39:02three months one one summer uh because I
- 39:04was using some particular convention
- 39:06that I thought the motion capture system
- 39:08was giving me. Yeah, it turned out the
- 39:10motion capture was system was giving me
- 39:11some other convention uh and I didn't
- 39:13realize it and yeah I I knew to look for
- 39:15it and I still made the mistake. Uh and
- 39:17yeah, it's just like a super common uh
- 39:19error. Um like thinking that you're
- 39:22using one convention and then somehow
- 39:24ending up using equations for the other
- 39:26convention. Um just for convenience
- 39:28purposes here, we're just going to just
- 39:30use this one particular convention. In
- 39:33some sense, the simplest one like doing
- 39:35the rotations about the inertial frames
- 39:36and just one, two, three. Yep. But but
- 39:39there are good reasons and also bad
- 39:41reasons I guess to to use other
- 39:42conventions. Yeah. Other questions?
- 39:47Okay, cool. So, yeah, I guess that's how
- 39:49we describe u orientations for our 3D
- 39:52drone. Uh, so that gives us a reason for
- 39:55why we have six degrees of freedom. Uh,
- 39:57so three coordinates to specify the
- 39:59translational location of the drone. So,
- 40:01the center of mass of the drone. Uh, and
- 40:03then these three coordinates, the aller
- 40:05angles uh to describe the orientation of
- 40:08the the drone.
- 40:10All right.
- 40:23Um so with that we can write down the
- 40:26state
- 40:32of the 3D
- 40:38uh drone quadrotor.
- 40:44Uh maybe just a quick check how many
- 40:48dimensions will the state vector for the
- 40:513D quadrotor have.
- 40:54So we defined the state for the planer
- 40:56quadrotor up there.
- 41:03Go ahead in the front. Yeah. 12. Yeah.
- 41:05Maybe uh just give a quick explanation.
- 41:08because there's six degrees of freedom,
- 41:11we're going to put the velocity.
- 41:13>> Perfect. Yeah. So when you when you
- 41:15apply Newton's second law, you're going
- 41:16to end up with uh six second order
- 41:19differential equations. Um so
- 41:21corresponding to each of the degrees of
- 41:23freedom, six degrees of freedom. Uh when
- 41:25we go through this conversion from
- 41:26second order to first order, uh you're
- 41:28always going to double the number of
- 41:30equations you end up with. So six second
- 41:32order differential equations is going to
- 41:34mean 12 first order differential
- 41:36equations. So that's the state of the
- 41:38quadrotor uh or that that's the
- 41:40dimensionality of the state. Um and yeah
- 41:43I guess the state vector itself you have
- 41:45some flexibility in in uh in the way you
- 41:49define it. Uh the typical definition is
- 41:53x
- 41:55y z. So the center of mass location
- 42:04say coom m center of mass
- 42:07uh and then 5 theta s which is the oiler
- 42:11angles
- 42:18oiler angles according to whatever
- 42:20convention you picked which again will
- 42:22be the space 1 to3 convention for this
- 42:24course. Uh and then you can have the the
- 42:27sort of uh speed terms like the time
- 42:29derivative terms. So x dot
- 42:33um maybe I'll I'll I'll stick to that
- 42:35same notation. So vx
- 42:38v y vz.
- 42:42So these are uh x dot
- 42:46y dot z dot.
- 42:50uh and then something to do with the
- 42:53time derivatives of the oiler angles. Uh
- 42:56so we could choose these last three uh
- 42:59variables in the in the state to be fi
- 43:01dot theta dot dot. That's a kind of
- 43:03perfectly valid uh definition of the the
- 43:06state. uh in practice it turns out that
- 43:08it's a little bit more convenient
- 43:11uh to work with
- 43:14uh PQ and R which are
- 43:18these define the angular velocity of the
- 43:20drone.
- 43:31Um yeah, they sort of have to do with
- 43:34like how quickly the the drone is uh um
- 43:38its orientation is changing along these
- 43:40different axes exe or or like the the
- 43:43body axes. Um using this definition
- 43:47instead of fa side dot just makes the
- 43:50equations a little bit more kind of
- 43:51compact and easier to work with. Um but
- 43:54you can go back and forth. So if I give
- 43:56you uh phi do theta dot dot dot dot dot
- 43:58dot dot dot dot dot dots dot so the time
- 43:59derivatives of the angles and I give you
- 44:01the angles then you can compute pq and r
- 44:04and then similarly you can kind of
- 44:06basically go from pq and r and the other
- 44:09angles to phi do theta dot side dot. So
- 44:11in in theory you can kind of switch back
- 44:14and forth uh between uh maybe I'll just
- 44:17write it over here. So you can switch
- 44:18back and forth between the oiler angle
- 44:21rates. So fi dot
- 44:24theta dot si dot
- 44:29uh and pq and r which is the angular
- 44:31velocity vector.
- 44:37Okay. So yeah this is the the state. So
- 44:3912 uh dimensions kind of as as expected.
- 44:42Uh and then we also have the control
- 44:44input
- 44:46vector.
- 45:10Um, so the control inputs, the things
- 45:12that the the drone kind of directly
- 45:13controls, uh, are the thrust forces for
- 45:16each of the the propellers. Uh, so these
- 45:19are f_sub_1,
- 45:22f_sub_2, f_sub_3, f_sub_4.
- 45:27Um so these are each of these is a
- 45:29scalar just the amount of thrust uh that
- 45:32each propeller four propellers is is
- 45:34producing. Uh it turns out again just
- 45:36for for some sort of convenience reasons
- 45:39uh it's useful to define the control
- 45:43input in a slightly different way. Uh so
- 45:47U is usually defined as
- 45:50F
- 45:51total uh the total thrust uh and then
- 45:55three moments M1, M2,
- 45:59M3.
- 46:02Uh so that
- 46:04F total is just the summation of the
- 46:07four thrust forces
- 46:12plus F4.
- 46:14uh and then m1 m2 m3 this is the these
- 46:17are the moments so the torqus produced
- 46:20about each axis so moment about
- 46:26uh the bx direction uh the moment about
- 46:29the b y direction
- 46:33and then the moment about the bz
- 46:34direction
- 46:38uh which you can compute from f1 f2 f3
- 46:41f4 uh and also the the geometry of the
- 46:43the drone
- 46:45Um yeah, I'm sort of just uh going
- 46:47through things at a at a relatively high
- 46:48level here. My main goal is to uh to
- 46:51just emphasize that at the end like once
- 46:55you derive the equations of motion uh
- 46:57you go through this process of
- 46:59converting from second order to first
- 47:01order. Uh you're again going to end up
- 47:03with equations that have this general
- 47:06form that we saw for the planer
- 47:09quadrotor.
- 47:14uh which is I'll just write it here.
- 47:17Um so you'll get equations of motion
- 47:29uh which are x dot
- 47:31equals some function of x and u.
- 47:39Uh and again I'm not going through the
- 47:40writing down the the full kind of
- 47:41explicit equations for the the 3D
- 47:43quoter. They're a little bit messy.
- 47:45They're kind of long. uh but what I want
- 47:48to kind of just convey for the the
- 47:49purpose of this course is you go through
- 47:52uh the derivation with Newton's second
- 47:54law uh and you're just going to get
- 47:57equations that have this general form
- 47:58right so the time derivative of your
- 48:00state uh defined in this way in in that
- 48:02way uh is some function of the state and
- 48:05the control input um and this
- 48:08differential equation or the system of
- 48:10first order differential equations uh
- 48:12allows you to predict uh exactly what
- 48:15the state of the drone will at any
- 48:16future time given the initial state and
- 48:19the control inputs that your drone is
- 48:21going to to apply. Yeah, I guess
- 48:23questions on uh on any of this. Go
- 48:26ahead.
- 48:27>> Uh is M3 a function of the forces or is
- 48:30it more of a function of like drag on
- 48:32the
- 48:32>> good. Okay, so that that was actually
- 48:34going to be the the very next uh thing I
- 48:35I wanted to to talk about. Um so I
- 48:39mentioned right at the beginning that
- 48:40there's some relationship between kind
- 48:42of forces uh like these thrust forces uh
- 48:46and what the drone actually controls. So
- 48:48what's actually being controlled uh is
- 48:50not kind of directly the force uh you're
- 48:53applying some current on the motor uh
- 48:55and that controls the uh the speed the
- 48:57rotational speed uh of each propeller.
- 49:01Um yeah, it turns out there's a nice
- 49:03relationship between the rotational
- 49:05speed uh and the thrust and also the the
- 49:07moment uh that you're referring to. So
- 49:09I'm going to just quickly sketch that
- 49:11out. So this is often referred to as a
- 49:14motor model
- 49:16in the context of kind of drone uh
- 49:19dynamics.
- 49:20Uh and the the nice relationship is that
- 49:23the thrust force
- 49:25on any motor. So I here is indexing the
- 49:28the four motors. Uh the thrust force is
- 49:32equal to some constant
- 49:36uh times omega I squared. Uh so I here
- 49:44is 1 2 3 4. So four propellers.
- 49:49uh f_subi is the thrust
- 49:55uh from propeller i.
- 50:03Uh and then omega I is the rotational
- 50:06speed
- 50:13uh squared
- 50:17rotational speed of the propeller.
- 50:24Uh and then this thing is called the
- 50:26thrust coefficient.
- 50:36Uh so this thrust coefficient KF uh has
- 50:39to do basically with the geometry of the
- 50:41propeller. Um so you could imagine if
- 50:44you have a kind of large propeller uh
- 50:46the thrust coefficient might be larger
- 50:47or depending on exactly what the pitch
- 50:49of the the blades looks like. Uh that
- 50:51determines what this constant is. Uh but
- 50:55this is something that we have to
- 50:56typically measure empirically. uh like
- 50:59you could have some kind of
- 51:00computational fluid dynamics model uh of
- 51:03the uh the propeller and its geometry
- 51:06and and try to figure out what this is.
- 51:08Uh but in practice it's kind of much
- 51:10more convenient to to just empirically
- 51:12measure what this is for your particular
- 51:14drone. Uh maybe thoughts on how you
- 51:16would measure it. So let's say I gave
- 51:18you this drone uh and then we want to
- 51:20measure this thrust coefficient. Uh
- 51:22that's something actually Kian who's
- 51:24sitting at the at the back uh we had to
- 51:25redo this because we had new drones uh
- 51:27this year. So we had to do this
- 51:29experiment to figure out uh what's the
- 51:31thrust coefficient which is something
- 51:32that we'll use uh in later assignments.
- 51:35Um yeah I guess thoughts on how you
- 51:37might measure this thrust coefficient
- 51:39for for a particular drone
- 51:43>> like some experiments we could we could
- 51:45do.
- 51:47>> Yep. Go ahead.
- 51:54>> Yeah. Good. I guess how would you record
- 51:55the thrust from the propeller?
- 51:58Uh you could see compare that to like
- 52:02gravity and see how fast the drone
- 52:04moves.
- 52:05>> You could do that. Uh so that's
- 52:06reasonable. I guess you would need some
- 52:08motion capture system or or some way to
- 52:10to estimate the position of the drone.
- 52:12Um which might get get noisy, but but
- 52:15that's a perfectly reasonable idea. I
- 52:16guess other thoughts.
- 52:17>> You just said steady state with like
- 52:18var.
- 52:19>> Uh you could put different weights
- 52:20underneath. Uh then you have to get a
- 52:22bunch of weights and kind of tie it and
- 52:25get it to steady state. also reasonable
- 52:26but just a bunch of work. We want to be
- 52:28as lazy as possible. Go ahead. Yeah.
- 52:30>> Could you just tie it to a scale and
- 52:32>> Yeah, you could tie it to a scale and
- 52:33and just measure the uh the forces. Um
- 52:36yeah, I guess what what we do is uh what
- 52:39we did for for this course is uh just
- 52:41use a weighing scale uh and just uh flip
- 52:43the the drone uh so that way it's
- 52:46pressing down on the the weighing scale
- 52:48uh and you can directly measure the
- 52:49thrust just from a kind of digital
- 52:51scale. Uh there's one complication here
- 52:53which is that if you uh flip it and you
- 52:56place it on the uh on the wing scale, uh
- 53:00there's a propw wash effect. Uh so the
- 53:02propellers are blowing air onto the wing
- 53:04scale. That air is coming back and kind
- 53:06of creating lift for the drone. Uh so
- 53:08you'll actually get incorrect
- 53:09measurements if you just directly place
- 53:11it on the wing scale. Uh so what you
- 53:13need to do is like raise it up high like
- 53:14on one of those like chemistry stand
- 53:16things and that way there's no prop
- 53:18wash, propeller wash effect. Um, so
- 53:21yeah, that that's an experiment you can
- 53:22do. So just kind of flip it, put it on a
- 53:24wing scale. Uh, on the x- axis,
- 53:28measure omega i squared. On the y-axis,
- 53:32measure the thrust.
- 53:34Uh, yeah, I guess take into account the
- 53:36fact that there are four motors. So
- 53:37there's four times the thrust that's
- 53:39being produced total. And then just
- 53:42sweep through a bunch of values on the
- 53:44x-axis. You'll get a nice kind of neat
- 53:46curve or neat uh line. uh and the the
- 53:50slope of that line is the uh the thrust
- 53:52coefficient. Okay, so going back to yeah
- 53:55I guess the the question that was asked
- 53:57about uh the moment um yeah maybe I'll
- 54:01I'll pose this as another question. So,
- 54:03so far we've only talked about the
- 54:05thrust force uh that the propellers are.
- 54:07Oh, sorry. Question. Go ahead. I'm
- 54:08sorry.
- 54:09>> This requires us to assume that all the
- 54:10motors are basically identical, right?
- 54:12>> Yes. Which is not going to be perfect.
- 54:14Uh and and this model by the way itself
- 54:16is not perfect like it's just an
- 54:18aggregate kind of aerodynamics model. Uh
- 54:20but it's good enough for a lot of the uh
- 54:22the basic things that you might want to
- 54:24do with a drone. Yep. Okay. Okay. So I
- 54:26guess question uh for for you to think
- 54:28about is uh how does the drone so we
- 54:31said that the drone cannot translate
- 54:33horizontally like there's no way for the
- 54:35drone to apply a force in the kind of
- 54:38purely horizontal direction. Uh but it
- 54:40is possible for the drone to yaw in
- 54:42place like just change the orientation
- 54:45about the zaxis.
- 54:48Uh, I guess any thoughts on how this is
- 54:50possible? Like how how's it possible for
- 54:51the drone to just kind of go like this?
- 54:57>> Go ahead. Yeah.
- 54:59>> Uh, you can have the rotors spinning in
- 55:01opposite directions.
- 55:02>> Yeah.
- 55:02>> And if uh you slow down to like the the
- 55:06rotors that are spinning in a specific
- 55:08direction, then you have higher drag
- 55:10force. That's
- 55:12>> the Yeah, that's exactly right. So, uh,
- 55:15I think it's easiest to visualize this
- 55:17with a kind of top view of the the
- 55:19drone.
- 55:31Uh, so if you look at the the drone from
- 55:33the the top
- 55:39um, so it has this shape. These are the
- 55:41the propellers.
- 55:45Um so adjacent motors or propellers
- 55:48actually spin in opposite directions. So
- 55:51this one spins clockwise.
- 55:54Uh this one spins counterclockwise. CCW.
- 55:58Uh this one will spin clockwise.
- 56:02Uh and then this one will spin
- 56:04counterclockwise.
- 56:07Uh so any adjacent pair of propellers if
- 56:10you look at the the drone spinning um
- 56:14uh these will be spinning in in opposite
- 56:16directions. Uh and basically what
- 56:18happens is that there's a aerodynamic
- 56:20drag.
- 56:26So this comes from Newton's third law.
- 56:29Uh so the drone is applying some moment
- 56:31on the on the air. The air is applying a
- 56:33moment kind of in the opposite
- 56:34direction. Um so there's an aerodynamic
- 56:37drag due to the the spinning of the the
- 56:38propeller. Uh so each of these
- 56:41propellers is is producing some some
- 56:43aerodynamic drag. Uh and then if you
- 56:46basically control um the the speeds of
- 56:49the the propellers, uh you can create a
- 56:52drag. Let's say you want the drone to
- 56:53spin clockwise. Uh then you increase
- 56:56these two motors. Uh you decrease these
- 56:59ones uh and then that's going to cause
- 57:01your uh drone to to go in one direction.
- 57:04And if you kind of do the opposite then
- 57:05it's going to yaw in the in the opposite
- 57:07direction. Uh and there's a similar
- 57:10relationship here. So the aerodynamic
- 57:11drag I'll call it mi
- 57:15arrow
- 57:17uh is equal to some other coefficient.
- 57:20This is called the moment coefficient
- 57:30uh times again omega i^ 2 where omega i
- 57:34is the same as before. It's the
- 57:35rotational speed of a of a propeller.
- 57:38Um, so maybe your hand, uh, okay, so
- 57:43there's a question about like how,
- 57:47yeah, if you haven't thought about this
- 57:48before, uh, it's a little bit
- 57:49counterintuitive. Like, if if one of my
- 57:51propellers is spinning clockwise, the
- 57:53other spinning counterclockwise,
- 57:55uh, why isn't one of them producing like
- 57:57negative thrust?
- 58:00That's what you might might expect. Go
- 58:01ahead. Yeah,
- 58:03>> you could change the pitch.
- 58:05>> Yeah, exactly. So if you if you look at
- 58:06the the drones, I guess you'll have a
- 58:08chance in the the next assignment, uh
- 58:10the the pitch, so the the way the uh the
- 58:13blades are oriented uh is flipped. Um so
- 58:16if you're uh propellers are spinning
- 58:18this way or that way, uh you make sure
- 58:21that that the the pitch like the the way
- 58:23the the rotors are angled, the blades
- 58:25are angled, uh flips accordingly. So
- 58:27you're always producing positive thrust.
- 58:28Uh so you're not doing some kind of
- 58:29weird thing by producing negative
- 58:31thrust. Okay, questions on this.
- 58:37All right, so yeah, I think that's
- 58:39mostly kind of what I had uh in terms of
- 58:41the dynamics of the drone. So,
- 58:43understanding the motor model, uh
- 58:45understanding the state, the control
- 58:46input, uh the fact that you get
- 58:48equations like this, um if you want to
- 58:51see the equations written out, again, I
- 58:52have a pointer uh to a reference in the
- 58:55in the notes. Uh and there's a bit more
- 58:57discussion about how to get these
- 58:58equations in the in the notes as well.
- 59:00Uh what I want to do I think we have
- 59:01about 15 uh minutes or so. Uh I want to
- 59:04say a little bit about the the next uh
- 59:06lab and and some of the logistics. So
- 59:07it's going to go out tomorrow. Uh it'll
- 59:09be due uh the weddness day after.
- 59:14Okay. So uh I mentioned this in the the
- 59:16very first uh lecture. Um we have two
- 59:19lab spaces uh that that that we were
- 59:22able to to get uh this year. Um, so I
- 59:25always kind of cap the the course based
- 59:27on how much lab space we're able to to
- 59:29acquire any given year. Uh, this year 72
- 59:31students total, like 60 in the 345
- 59:34version, 12 in the in the grad version.
- 59:36Uh, one of the spaces is G109. This is
- 59:39in the the G-wing. I mean, both are in
- 59:41the Equad. Uh, this is in the G-wing uh
- 59:43of the Equad. Uh, and this is what it
- 59:46looks like. There's two netted spaces.
- 59:48Uh, yeah, each space is sort of
- 59:51separated by this kind of middle
- 59:52netting. Uh, and there's a bunch of
- 59:54drones and and other stuff uh in in the
- 59:57space. So, this is G109. Uh, and then we
- 59:59have a slightly smaller space in the
- 1:00:01F-wing. Uh, this is the the C's uh
- 1:00:05robotics lab. Um, I guess quick show of
- 1:00:07fans if you don't know where it is.
- 1:00:10Okay. It's like basically if you enter
- 1:00:11the Equad uh it's just on the left
- 1:00:13there's a a large robotics lab. Part of
- 1:00:16that space we're we're using for for
- 1:00:17teaching this here. Uh it's basically
- 1:00:19right by the Equad cafe. um uh another
- 1:00:22kind of net zone some some uh space for
- 1:00:25uh seating uh for for students. Um so
- 1:00:28the the very first lab uh which is going
- 1:00:30to be the the one that goes out uh
- 1:00:32tomorrow uh is to implement the RT
- 1:00:35algorithm uh which we discussed in the
- 1:00:37the previous lecture uh to plan a
- 1:00:40collision free trajectory for the the
- 1:00:42drone. Uh and we're going to make sort
- 1:00:44of all the the assumptions that we've
- 1:00:46made so far for the RT algorithm. uh
- 1:00:49we're going to assume that there's a map
- 1:00:50of the environment that's provided to
- 1:00:52the algorithm. Uh here we're going to
- 1:00:54use the sort of simplest possible
- 1:00:56mapping algorithm which is U. So you're
- 1:00:58going to just measure uh where the
- 1:01:00obstacles are. There's a a tape measure
- 1:01:02uh in the in the room. Uh just measure
- 1:01:04out where the obstacles are, measure the
- 1:01:06radius of the obstacles. Uh that's going
- 1:01:08to be the map. Obviously, we're going to
- 1:01:10have more sophisticated ways of mapping
- 1:01:12later on in the course. Uh but for the
- 1:01:14purpose of this lab, just kind of
- 1:01:15measure where they are. uh that defines
- 1:01:17what the environment looks like. Uh
- 1:01:19apply the RT algorithm. Uh that will
- 1:01:21give you some collision free path from
- 1:01:23the starting location which is marked
- 1:01:26with a X uh to the end box. Like the
- 1:01:29goal is just to land anywhere in that
- 1:01:31final box. Um we're going to assume that
- 1:01:35the drone can follow whatever path uh
- 1:01:38the RT algorithm came up with. Uh so for
- 1:01:40this lab, we're we're not going to think
- 1:01:42about the dynamics. We're just going to
- 1:01:43assume that the drone has a good enough
- 1:01:45built-in controller uh to follow kind of
- 1:01:48whatever trajectory that RT came up
- 1:01:50with. Um, and yeah, I guess this is what
- 1:01:53it should oops look like in practice.
- 1:01:56All right, I guess you can imagine what
- 1:01:57it looks like. Sorry. It takes off,
- 1:02:00avoids the obstacles, gets to the the
- 1:02:02landing zone. Uh, and because we're
- 1:02:03using the RT algorithm, it's not going
- 1:02:05to be optimal. So, there's a bunch of
- 1:02:06kind of wacky stuff that it does in the
- 1:02:08middle. Uh, we're not going to try to
- 1:02:10optimize it. The goal is just to see it
- 1:02:11in practice.
- 1:02:12uh and and to just get some kind of
- 1:02:14familiarity working with the the drone.
- 1:02:16Um yeah, just kind of figuring out how
- 1:02:19to connect to it, how to control it,
- 1:02:21give it like way points, and just see
- 1:02:22the RT algorithm work in practice. Okay.
- 1:02:26Uh so I guess when you show up at one of
- 1:02:28the the lab spaces, uh there's four
- 1:02:30drones in in G 109 that are in the
- 1:02:33space. Uh there's three drones in the
- 1:02:35the C's robotics lab. Um so yeah, you
- 1:02:38show up, you kind of pick up one of them
- 1:02:39that's available. Uh we've kept a bunch
- 1:02:42of spare parts uh so propellers uh extra
- 1:02:45motors uh these prop guards like
- 1:02:47propeller guards uh as well uh which are
- 1:02:50new on on this brushless uh drone uh and
- 1:02:53then measuring tape uh in each space for
- 1:02:55creating this map of the environment uh
- 1:02:57and then safety glasses uh as well. Um,
- 1:03:01and yeah, I guess some kind of logistics
- 1:03:03for for using the the different lab
- 1:03:05spaces. Uh, because of the size of the
- 1:03:08course, like it doesn't really make
- 1:03:09sense to have a lab hour. Like we would
- 1:03:11not all kind of 72 of us like fit uh at
- 1:03:14at at any given time. So you can use the
- 1:03:16the lab spacesh anytime you want. Uh so
- 1:03:18weekdays, weekends,
- 1:03:20um anyone who's completed the at least
- 1:03:23the online uh safety training uh which
- 1:03:26hopefully should be everyone at this
- 1:03:28point uh can access the space. Uh
- 1:03:30ideally you've completed the the
- 1:03:31inperson version as well, but sometimes
- 1:03:33there's just issues with scheduling. Uh
- 1:03:35maybe quick show of hands if you've
- 1:03:37completed both the online and the
- 1:03:38inerson training. Okay, most of you.
- 1:03:41Okay, actually not not as many as I
- 1:03:42would have thought. Maybe show of hands
- 1:03:43if you haven't complete have have
- 1:03:45completed the online portion. Okay. All
- 1:03:48right. I guess I I see some people who
- 1:03:49haven't. So by tomorrow, please complete
- 1:03:51the the online portion of the uh the EHS
- 1:03:54training. Um yeah, that's required just
- 1:03:57kind of for using any lab space
- 1:03:59basically in the in the EU quad. Um so
- 1:04:02occupancy kind of suggestions or or
- 1:04:04guidelines. Um in the past like the very
- 1:04:08first time uh that I taught this course,
- 1:04:10this was back in 2019, uh we had a a
- 1:04:13signup sheet. Uh so each team would sign
- 1:04:16up uh before they they showed up. Uh we
- 1:04:19gave up on it within like two weeks uh
- 1:04:21because what would happen is people
- 1:04:23would sign up like 5 minutes uh before
- 1:04:25showing up to the space and it was
- 1:04:27basically as good as not having a signup
- 1:04:28sheet. Uh what we found to work well
- 1:04:30kind of throughout the years is a much
- 1:04:32more like organic uh way of organizing
- 1:04:34yourself. Um so you you come to the
- 1:04:36space, there's going to be some other
- 1:04:37teams maybe that are in the space. Uh
- 1:04:39just take turns uh like test something
- 1:04:42out. uh most likely it's not going to
- 1:04:44work well. Kind of go back out of the
- 1:04:46the netted area, debug uh with your
- 1:04:48teammates uh and then just take turns.
- 1:04:50Yeah, that turns that turns out to work
- 1:04:52much better than some kind of signup
- 1:04:54sheet or something more organized.
- 1:04:56People are busy at different times, so
- 1:04:57it just kind of naturally works out. Um
- 1:04:59there's going to be some times where
- 1:05:00it's busy, but but kind of overall I
- 1:05:02think it it's uh it's pretty good. Um we
- 1:05:05also have a a thread uh that I created
- 1:05:07this morning uh on at discussion. Uh if
- 1:05:10there are issues with any particular
- 1:05:12drone like the drones are going to be
- 1:05:13numbered uh just post on the thread uh
- 1:05:17and then use whatever kind of other
- 1:05:19available uh drones there are in the
- 1:05:20space. Uh that way you're not wasting
- 1:05:22any time like we'll look at the thread.
- 1:05:25Uh John Po who helps out with the the
- 1:05:27course uh is going to try to fix the
- 1:05:29drones. Uh we have a bunch of
- 1:05:30replacement parts. Um, yeah. So, let
- 1:05:33let's try to do this. Just kind of be
- 1:05:35proactive. Like, if there is an issue,
- 1:05:37uh, just post on that thread so we know
- 1:05:38to fix it. Uh, the situation I want to
- 1:05:41avoid is there's a bunch of broken
- 1:05:43drones and then people kind of show up
- 1:05:45to the lab and they're all broken and we
- 1:05:46don't know that they're broken, so we
- 1:05:47have no way to to fix it. Yeah.
- 1:05:49Questions on any of these logistics?
- 1:05:53Okay. Uh, yeah, last couple of things.
- 1:05:57Uh, so safety is obviously super
- 1:05:59important. Uh the drones are pretty
- 1:06:02lightweight uh and the propellers are
- 1:06:04are small and there are prop guards. Uh
- 1:06:06so the chances of uh a kind of severe
- 1:06:09injury are are low, but it's still
- 1:06:10possible. I think the thing I worry
- 1:06:12about the most is um like the propeller
- 1:06:14kind of either like breaks off or
- 1:06:16somehow you're like in the net uh netted
- 1:06:19area and the the drone comes and hits
- 1:06:20your eye. Like that's the main thing. Uh
- 1:06:23it's not too u like the propellers are
- 1:06:25like not strong enough that they're
- 1:06:26going to physically injure you
- 1:06:28otherwise. It's mostly the the eyes uh
- 1:06:30that I'm concerned about. We'll have a
- 1:06:31bunch of safety glasses uh in the the
- 1:06:34space. Uh if you feel like you need more
- 1:06:37uh just let me know. We'll we'll try to
- 1:06:38get we'll try to have enough but but if
- 1:06:40that's an issue, let me know. Uh and
- 1:06:42then obviously stand outside the netted
- 1:06:45area. Uh like that's why we have the the
- 1:06:47nets. Uh when the drone is operating
- 1:06:49like don't stand inside with the the
- 1:06:51drone. just put the drone in uh run your
- 1:06:54code, see it fly or crash uh and then
- 1:06:57pick it up.
- 1:06:59Uh and then also, yeah, I guess please
- 1:07:00treat the the drones with uh with care.
- 1:07:03So, we're using it as a shared resource.
- 1:07:05Um so, all the teams will be using uh
- 1:07:07the same seven or eight uh drones. Uh
- 1:07:10there's a non-trivial operating cost uh
- 1:07:12for the the course. uh these drones in
- 1:07:14particular, the new ones with the
- 1:07:16brushless motors. If you combine all the
- 1:07:18parts uh like the uh the drone itself,
- 1:07:21there's a optical flow camera, uh the
- 1:07:23propellers, the motors, uh there's a
- 1:07:25extra camera that we're going to add uh
- 1:07:28towards the end of the course. Uh all of
- 1:07:30it per drone is about like $600. Uh so
- 1:07:33if they break, it's uh yeah, it just
- 1:07:35takes some some cost uh to try to
- 1:07:37replace these. Uh and we bought kind of
- 1:07:40entirely new drones, like a whole new
- 1:07:42fleet of drones. Uh this year, uh in the
- 1:07:45past, we've had some teams kind of not
- 1:07:47be super careful uh with the drone. So
- 1:07:49last year, we had two different teams uh
- 1:07:51who stepped on the drones [laughter] and
- 1:07:53just kind of crush them. Uh please do
- 1:07:56not step on the on the drones. Uh yeah,
- 1:07:58just just treat them with care like as
- 1:08:00if they're your own. uh it's going to
- 1:08:02make things much uh much much smoother
- 1:08:04in terms of just making sure that
- 1:08:06they're reliable uh throughout the
- 1:08:08semester and usable by everyone. Um
- 1:08:11yeah, questions on the logistics.
- 1:08:17All right. Yeah, it should be fun. So,
- 1:08:19I'll I'll post an announcement tomorrow
- 1:08:20and I'll see you next time. Thanks.
About this transcript
This page contains the full transcript of Princeton Intro to Robotics (Fall 2026) | Lecture 4: Quadrotor Dynamics by Introduction to Robotics @ Princeton, generated from the public captions YouTube serves with the video. The transcript has 10,656 words across 1,535 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.
What you can do with it
Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to choose a caption track available on the video.
Free YouTube transcript tool
YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, caption language selection, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.