YouTube2Text

Bird's Eye View_ Hardware - Part 3 — Transcript

by NPTEL-NOC IITM · 2,989 words · 477 segments · language en · Watch on YouTube

Full transcript

  1. 0:04[music]
  2. 0:16So, inertial measurement unit is correct
  3. 0:18answer
  4. 0:20if you know a little bit of mus but I'll
  5. 0:22cover it right now. So, don't worry if
  6. 0:24you don't know yet. But what is not
  7. 0:26usually a part of an MU? Yeah, correct.
  8. 0:28Cameras are not part of EMU. Usually the
  9. 0:30standard part of IMU is accelerometer,
  10. 0:32gyroscope and magnetometer. So let's go
  11. 0:34through them. So let's talk about the
  12. 0:37components and one of the most useful
  13. 0:39components is IMU which is inertial
  14. 0:42measurement unit. So IMUs have been
  15. 0:44around for a long time. They had a lot
  16. 0:46time a lot of time to evolve from these
  17. 0:49large devices to something small like
  18. 0:52this like on this picture just like
  19. 0:54screens evolved from large um tube TVs
  20. 0:59to phone screens that you carry in your
  21. 1:01pockets. You know the similar evolution
  22. 1:04happened to IMUs. So the purpose of IMU
  23. 1:07is to provide orientation only three
  24. 1:10degrees of freedom tracking and it often
  25. 1:14the the board IMU board consists of
  26. 1:16gyroscope, accelerometer and
  27. 1:18magnetometer. So here's a picture.
  28. 1:20They're pretty small. Um I forget which
  29. 1:24one of them is which but it doesn't
  30. 1:25matter. These three uh boxes here are uh
  31. 1:28the the the accelerometer, gyroscope and
  32. 1:31magnetometer.
  33. 1:33So, IMUs were designed for navigation
  34. 1:35originally. So, especially in aircraft,
  35. 1:37spacecrafts, military, torpedoes,
  36. 1:39rockets.
  37. 1:42So, if you flew, if you ever flew in an
  38. 1:44airplane, there was an enemy on board
  39. 1:46for sure. And it would be a large
  40. 1:48mechanical device because they have to
  41. 1:50be accurate. So, they're very expensive.
  42. 1:53They're really accurate. They're very
  43. 1:54well calibrated. However, other devices
  44. 1:58uh on the market go from the cost of
  45. 2:00just a dollar
  46. 2:03uh on on you can buy it on Amazon or
  47. 2:07wherever
  48. 2:08up to thousands of dollars or tens of
  49. 2:10thousands of dollars depending on their
  50. 2:12calibration. So this cheap um cheap IMUs
  51. 2:18um they um they appeared with the
  52. 2:22advances of the MEMS technology. So
  53. 2:24that's why we have to be grateful for
  54. 2:26this technology because it made it
  55. 2:28possible to have such small IMUs
  56. 2:30attached to inside of the smartphones
  57. 2:33but also attached to the headsets.
  58. 2:37Okay. So let's see
  59. 2:41here's a mechanical
  60. 2:43uh gyroscope. Let's think how they work
  61. 2:45so that we can see how we can use them
  62. 2:47for tracking.
  63. 2:50So this is an IMU.
  64. 2:53Oh, sorry. [music] This is a mechanical.
  65. 2:54This is a gyroscope. It consists of a
  66. 2:57metal wheel mounted on an axle. The
  67. 2:59wheel and axle spin freely secured in a
  68. 3:01metal frame. This simple device can
  69. 3:04behave in the most unexpected ways.
  70. 3:08The components of this simple mechanism
  71. 3:10are obvious and it doesn't seem to have
  72. 3:12any special capabilities.
  73. 3:15Try to stand it on end and it falls
  74. 3:17over.
  75. 3:20Try to suspend it like this and it
  76. 3:22drops.
  77. 3:24Apparently, it can't defy gravity.
  78. 3:28But spin the wheel and all that changes.
  79. 3:32A string provides a simple method to
  80. 3:34spin the wheel.
  81. 3:43The first thing I notice about the
  82. 3:45spinning gyroscope is that it resists
  83. 3:47attempts to change its position. A
  84. 3:50resistive force appears when I attempt
  85. 3:52to tilt or rotate the gyro.
  86. 3:55Now, when I stand it on the tabletop, it
  87. 3:57stays vertical. The spinning wheel is
  88. 4:00creating a force that holds the
  89. 4:01gyroscope upright.
  90. 4:04When the wheel stops, the force
  91. 4:06disappears and the gyroscope falls.
  92. 4:15So that's
  93. 4:15incredibly this force will support the
  94. 4:17gyroscope like this.
  95. 4:20It appears to be levitating.
  96. 4:24So now uh how they used in airplanes is
  97. 4:28right here.
  98. 4:30The gyroscopes will maintain a
  99. 4:32particular orientation in space is very
  100. 4:34useful in modern aircraft. An inertial
  101. 4:38guidance system uses spinning gyroscopes
  102. 4:40to monitor and control the orientation
  103. 4:42of the aircraft.
  104. 4:45The gyroscope is suspended in a special
  105. 4:47cage that allows it to maintain its
  106. 4:49orientation independent of the
  107. 4:51aircraft's position. [music]
  108. 4:53If the aircraft rolls, electric sensors
  109. 4:56and contacts connected to the gyro send
  110. 4:58information to the pilot about the
  111. 5:00aircraft's orientation.
  112. 5:13Okay. [music] So that's the principle,
  113. 5:15right? And here I have another video of
  114. 5:18a M's gyroscope and how it works. So the
  115. 5:20principle is very similar. Microructure
  116. 5:23of the gyroscope looks something like
  117. 5:25this. a mass that is constantly moving
  118. 5:28or oscillating and when an external
  119. 5:31angular rate will be applied a flexible
  120. 5:33part of the mass would move and make the
  121. 5:35perpendicular displacement.
  122. 5:38Okay. So what do gyroscopes measure?
  123. 5:43Uh gyroscopes measure 3D angular
  124. 5:46velocity in radians per second. So what
  125. 5:52can these measurements provide with
  126. 5:53respect to tracking? So if you know an
  127. 5:56instantaneous angular velocity, so how
  128. 5:59fast um the speed at which an object
  129. 6:02rotates, then you can integrate it from
  130. 6:05the last orientation. So say you're at
  131. 6:07orientation theta 1, you just multiply
  132. 6:09that instant velocity by the time over
  133. 6:12which you want to integrate to get the
  134. 6:14nest orientation. So this is process is
  135. 6:17called integration, right?
  136. 6:20And if you do this several times over
  137. 6:22and over, you can obtain very reliable
  138. 6:24estimations for a couple of seconds.
  139. 6:28If you integrate over very small
  140. 6:30periods, tiny periods of time for that
  141. 6:32instantaneous velocity.
  142. 6:34But then after this period of
  143. 6:36integration, drift happens. So drift
  144. 6:39happens due to noise, calibration
  145. 6:42problems. these cheap devices are not
  146. 6:44necessarily perfectly calibrated and
  147. 6:46accuracy with which you do the
  148. 6:47computations in the on the PC. So drift
  149. 6:52is when these little arrows after each
  150. 6:54iteration they add up to a larger area a
  151. 6:58larger error after many iterations. So
  152. 7:01if drift happens then you may lose
  153. 7:07you you you may not know anymore where
  154. 7:10straight ahead is or where straight up
  155. 7:12is. So the horizon may feel like it's
  156. 7:14tilted or even worse sometimes when you
  157. 7:18have this drift in your tracking system
  158. 7:20you may feel like your head is then
  159. 7:22spinning a roller coaster out of
  160. 7:23control. [snorts] So drift may feel
  161. 7:27extremely uncomfort uncomfortable and it
  162. 7:29should a be avoided at all costs.
  163. 7:33Fortunately there are other sensors to
  164. 7:36correct for the drift and that's where
  165. 7:37accelerometer and magnetometer will help
  166. 7:39us and cameras if you have cameras. But
  167. 7:42remember in our cardboards we don't have
  168. 7:45an external camera or any camera that we
  169. 7:47can use for correcting for this drift.
  170. 7:49So only accelerometer magnetometer can
  171. 7:52be used. However, what you what I want
  172. 7:55you to think of a gyro is that it's a
  173. 7:57sensor that is does the most heavy
  174. 8:00lifting out of all the sensors. So, it's
  175. 8:03used most frequently in uh tracking
  176. 8:06systems. And the reason is that it
  177. 8:07provides pretty accurate measurements
  178. 8:09for at up to a thousand so usually
  179. 8:12around,000 hertz and you can do this
  180. 8:15integration every time you get a
  181. 8:17measurement at such high frequency. Then
  182. 8:20you have to correct for track uh for
  183. 8:22drift. But you do this measurements all
  184. 8:24all the time. We don't use
  185. 8:26accelerometers
  186. 8:28as much or as reliably or magnetometers
  187. 8:31or cameras. For example, cameras they
  188. 8:33provide um measure pictures at a
  189. 8:37frequency of 60 Hz much slower than um
  190. 8:42gyroscopes. So gyroscopes are extremely
  191. 8:44useful but we have this drift problem.
  192. 8:46So let's see how we can avoid that.
  193. 8:49So there let's look at the another part
  194. 8:52of IMU which is accelerometer.
  195. 8:54So when you think of an accelerometer
  196. 8:56think of a weight on the string like
  197. 8:59this. So a mechanical accelerometer
  198. 9:03measures this deviation from this mass
  199. 9:06from this weight from the normal
  200. 9:08position
  201. 9:10uh where where it would be in a relaxed
  202. 9:12state. So if this acting force in in
  203. 9:15this direction then the spring contracts
  204. 9:17and if it's in the opposite direction
  205. 9:19the spring will expand right and this
  206. 9:21deviation will be proportional to the
  207. 9:23force and therefore acceleration
  208. 9:27okay so digital acceler accelerometers
  209. 9:30are not much different from mechanical
  210. 9:32accelerometers let's look at the video
  211. 9:34modern MEMS's chip let's take a look
  212. 9:36under the microscope
  213. 9:38this is a tiny resistor the lighter
  214. 9:41colored material is actually
  215. 9:43electrically conductive silicon. And
  216. 9:45this darker area that's been etched away
  217. 9:47doesn't conduct. This long winding
  218. 9:49electrical path forms a resistor very
  219. 9:52similar to how a long piece of wire
  220. 9:54would also have a significant
  221. 9:55resistance. So if you made an electrical
  222. 9:58connection between these two points,
  223. 9:59you'd have a microscopic resistor. Now,
  224. 10:02in order to understand how an
  225. 10:04accelerometer works, let's look at a
  226. 10:05MEMS's capacitor. It doesn't look much
  227. 10:08like a capacitor, does it? Well,
  228. 10:10remember that all a capacitor really is
  229. 10:12is two conductive plates that are
  230. 10:14electrically separated. Here are the two
  231. 10:17terminals of the capacitor. Over here,
  232. 10:19we have what's called a combed finger
  233. 10:21arrangement. The two structures are very
  234. 10:24close to each other, but they aren't
  235. 10:26quite touching. Let me highlight it for
  236. 10:28you. Now, it should be more obvious that
  237. 10:30you have parallel surfaces which form a
  238. 10:32capacitor. But this is no ordinary
  239. 10:35capacitor. It's a physical structure
  240. 10:37that can move. This thing over here is
  241. 10:39basically a tiny weight made out of
  242. 10:41silicon. And it's kind of like a
  243. 10:43suspended mass on the end of a spring.
  244. 10:45Movement, vibrations, and even gravity
  245. 10:47can cause this little mass to move
  246. 10:49around. And when it does, it shifts the
  247. 10:52entire combed finger structure. When the
  248. 10:54fingers move, the distance between the
  249. 10:56fingers changes. And when the distance
  250. 10:58between the fingers changes, you get a
  251. 11:00change in capacitance. So now we have an
  252. 11:03electromechanical system that can sense
  253. 11:05movement and turn it into a changing
  254. 11:07capacitance value. The next step would
  255. 11:10be to design circuitry that can sense
  256. 11:12the change in capacitance and convert it
  257. 11:14into useful voltages or serial data. But
  258. 11:17that's beyond the scope of this
  259. 11:18tutorial. A modern Okay. So,
  260. 11:24so now how would we use these
  261. 11:27accelerometers or these micro springs to
  262. 11:31measure the acceleration of an object
  263. 11:33due to its motion. So then we could um
  264. 11:37we could estimate position using the
  265. 11:40accelerometer position of the headset
  266. 11:42and therefore do positional tracking and
  267. 11:44then we would do positional tracking
  268. 11:46with accelerometer and orientation
  269. 11:47tracking with gyroscope.
  270. 11:50But that's impossible. So here are two
  271. 11:53problems with that. So one is that the
  272. 11:55accelerometer measures the vector sum of
  273. 11:58all accelerations including due to
  274. 12:01gravity. So it's very difficult to
  275. 12:04separate true linear acceleration of
  276. 12:06motion with respect to fixed earth from
  277. 12:10gravity away.
  278. 12:12So let's think about it. Imagine I have
  279. 12:14this mass on the spine, right? And let
  280. 12:17me swing it like this, right?
  281. 12:20the the the uh the curve that the mass
  282. 12:23would uh trace would be quite different
  283. 12:26if I spin it in different orientations
  284. 12:28because there's also gravity. So, it's
  285. 12:30not only the motion, it's not only the
  286. 12:32centrial forces, but it's also the
  287. 12:34gravity that pulls the object down at
  288. 12:37all times.
  289. 12:39Therefore,
  290. 12:41it's hard it's hard to separate them. At
  291. 12:43certain
  292. 12:45um times when there is not much motion,
  293. 12:48you would be able to separate the
  294. 12:49gravity from true acceleration due to
  295. 12:52motion. And those are very useful times.
  296. 12:55And that's exactly how the accelerometer
  297. 12:57is used for drift correction for the
  298. 13:00gyroscope.
  299. 13:02At those times when we can really grab
  300. 13:04the gravity away from motion, we can use
  301. 13:07that gravity vector to uh correct for
  302. 13:10the drift from the gyroscope and that
  303. 13:13way we could reconstruct where true up
  304. 13:16is because that's opposite from gravity.
  305. 13:18So that's how accelerometer is used.
  306. 13:22But there's another problem due to
  307. 13:25double integration. So even if we are
  308. 13:27able to separate at certain times
  309. 13:29gravity from true acceleration. Now if
  310. 13:32you take that true acceleration due to
  311. 13:33motion we would have to double integrate
  312. 13:36it to get the position double
  313. 13:38integration
  314. 13:40in has drift that is higher much higher
  315. 13:43than single integration of the gyro
  316. 13:46because it grows quadratically. So we
  317. 13:48can only integrate it double integrate
  318. 13:51it for a very very very few um amount of
  319. 13:55times and after that we would need
  320. 13:57another sensor to correct for that drift
  321. 14:00but we don't have any others we don't
  322. 14:02have anything else we would need a
  323. 14:05camera to correct for the drift from
  324. 14:07double integration of accelerometer and
  325. 14:09we don't have it in cardboards so once
  326. 14:11you introduce camera then you can do
  327. 14:13positional tracking however if you don't
  328. 14:16have another sensor answer for this
  329. 14:18drift correction due to double
  330. 14:20integration. Then you can only have
  331. 14:23reliable orientation orientation
  332. 14:25tracking because you can use a
  333. 14:28solarometer then to correct for the
  334. 14:30drift of where up is and you can use
  335. 14:33magnetometer
  336. 14:34for it's kind of you can extract this um
  337. 14:38horizontal uh axis of the magnetometer
  338. 14:41from the from the measurements that
  339. 14:43magnetometer gives you to correct for
  340. 14:45where straight ahead is. So that's
  341. 14:48that's two ways you could use
  342. 14:50magnetometer accelerometer to correct
  343. 14:53for drift accumulated from gyro
  344. 14:55integration and have a reliable 3° of
  345. 14:58freedom uh tracking system.
  346. 15:01Recent HMDs introduced by Meta and Apple
  347. 15:03are not much successful. No, they're
  348. 15:05not.
  349. 15:07[laughter]
  350. 15:08Well, we're waiting for 2027. That's
  351. 15:10what they say that they will be really
  352. 15:12cool this glasses kind of AR devices
  353. 15:15that we'll see that use this advanced
  354. 15:18optics and advanced displays that um
  355. 15:22hopefully will be as cheap as what we
  356. 15:24have now and um as good. I don't know. I
  357. 15:28I really cannot cannot comment on this
  358. 15:31because we don't know
  359. 15:34uh Flickr. Okay. So let me I have just a
  360. 15:38couple more slides and hopefully we can
  361. 15:39finish with that today. So cameras
  362. 15:41cameras are used for let's see
  363. 15:46for positional tracking because then
  364. 15:48they can be used for um drift correction
  365. 15:53from accelerometers. Why they can't be
  366. 15:56used in every frame for positional
  367. 15:58tracking? Because they're very slow. So
  368. 16:00they they are they give you image every
  369. 16:0216 milliseconds. So that's not good
  370. 16:04enough. uh that's quite a bit of a
  371. 16:06delay. So you cannot just use camera for
  372. 16:08positional tracking. You need to use
  373. 16:10accelerometer that is much more frequent
  374. 16:12measurements and then correct for drift
  375. 16:14every 60 milliseconds or with frequency
  376. 16:17of 60 Hz from using camera readings. So
  377. 16:22um that's what they used for and there's
  378. 16:25outside in tracking that was uh done in
  379. 16:28early versions of Oculus uh HMDs when
  380. 16:32you had an external camera somewhere on
  381. 16:35the desk and you had this infrared uh
  382. 16:38LEDs on your uh display that were easy
  383. 16:41to track. But now recently all of these
  384. 16:45um Oculus Quest all of the modern HMDs
  385. 16:48um they have this cameras on the headset
  386. 16:50itself and then they do natural features
  387. 16:53tracking from of the world around. So
  388. 16:56it's much more difficult computer vision
  389. 16:58problem but it's done successfully and
  390. 17:00we have quite good positional tracking
  391. 17:03degrees of freedom tracking on the
  392. 17:05devices that have cameras. But again
  393. 17:08remember that with cardboards we do not
  394. 17:10have cameras.
  395. 17:12So I have a question for you from the
  396. 17:15point of view of positional tracking
  397. 17:18in Quest 2 that do have cameras. What
  398. 17:21happens if there is no light for a
  399. 17:22camera? So if the lights are turned off
  400. 17:25in the room and some of you have Quest
  401. 17:27two so you may know what happens. So
  402. 17:30what happens if you turn off the light?
  403. 17:33It will still work. But does it do
  404. 17:36positional tracking?
  405. 17:39Okay. Then no infrared light. [laughter]
  406. 17:42What if there's no infrared lights in
  407. 17:43the room as well? So all lights are off,
  408. 17:46even infrared.
  409. 17:48Yeah, it it will limit to three degrees
  410. 17:50of freedom. So usually what I say, thank
  411. 17:52you. So some of you said it would fall
  412. 17:54back to 3° of freedom. So yeah, that's
  413. 17:56correct. So the thing is I don't know
  414. 17:58how particular applications or Quest 2
  415. 18:01implements it particularly now because
  416. 18:03there may be some updates um software
  417. 18:06updates and maybe it will change it
  418. 18:08different differently from uh update to
  419. 18:10update but I know what should be done.
  420. 18:13So there is always two choices either to
  421. 18:15black out and say okay camera doesn't
  422. 18:18detect any features so please turn on
  423. 18:20the lights so that there's nothing or
  424. 18:23another choice is to fall back to 3D
  425. 18:25degrees of freedom tracking just using
  426. 18:27IMUs and then you know integrate your
  427. 18:30gyro correct for up using accelerometer
  428. 18:32correct for straight ahead using
  429. 18:34magnetometer you have 3° of freedom
  430. 18:36tracking just like cardboard and that's
  431. 18:38okay and whatever meta does now is uh is
  432. 18:42one of these choice uses, but I don't
  433. 18:44know what it is. Now, what happens
  434. 18:48with positional and rotational tracking
  435. 18:51if you use your Quest 2 in a moving car
  436. 18:53or a flying airplane? Do you know? So,
  437. 18:56that's another question we have.
  438. 18:59We always have fun with this question
  439. 19:01because some students actually know they
  440. 19:02tried and some nothing and no something
  441. 19:06happens. Something happens.
  442. 19:10It's stable.
  443. 19:13No,
  444. 19:16I'm use work. Yeah, but what about
  445. 19:18cameras? So, the thing is since you're
  446. 19:21flying then your accelerometer will
  447. 19:24detect that and the integration of
  448. 19:26accelerometer will actually
  449. 19:31they'll it'll know that you're flying.
  450. 19:33So, it shouldn't be it shouldn't be um
  451. 19:36working in the airplanes because you'll
  452. 19:38be actually flying in your virtual
  453. 19:40reality experience unless it it unless
  454. 19:42it has been fixed somehow which I think
  455. 19:45is really difficult to fix because there
  456. 19:46is a standard tracking techniques.
  457. 19:49So, any of you tried it
  458. 19:53in an airplane? Because I had students
  459. 19:55who really tried it in a car
  460. 19:58and tried it in airplanes.
  461. 20:05Oh, maybe if you set if you if you
  462. 20:07disable positional tracking then maybe
  463. 20:10it would it would have no change but
  464. 20:13it's supposed to not work in the car but
  465. 20:16try it again and we can discuss it next
  466. 20:18time. Um okay
  467. 20:22now what happens in a if you use VR
  468. 20:24cardboard in a moving car flying
  469. 20:27airplane. So this is pos rotational
  470. 20:30tracking only and yes it will not be
  471. 20:34affected. This is no change correct. So
  472. 20:36this is correct for uh cardboards but
  473. 20:39for quest two
  474. 20:42unless something has been changed
  475. 20:45um it shouldn't work in when you're
  476. 20:47flying or driving in a car.
  477. 20:52Okay.

About this transcript

This page contains the full transcript of Bird's Eye View_ Hardware - Part 3 by NPTEL-NOC IITM, generated from the public captions YouTube serves with the video. The transcript has 2,989 words across 477 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 translate the transcript into 100+ languages.

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, translation to 100+ languages, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.