← Lex Fridman

Vijay Kumar: Flying Robots

Episode 2019-09-082019-09-08English

Guests: Vijay Kumar

Listen to this episode00:00 / 56:57
Reading settings
Reading preferences
Text size
Download in-depth read
Read offline

English · In-depth read · Current version

Downloads are not available yet.

§01Transcript · 00:00–09:55

00:00The following is a conversation with Vijay Kumar.

00:03He's one of the top roboticists in the world,

00:05a professor at the University of Pennsylvania,

00:08a dean of pen engineering, former director of Grasp Lab,

00:12or the General Robotics Automation Sensing

00:15and Perception Laboratory at Penn,

00:17that was established back in 1979, that's 40 years ago.

00:22Vijay is perhaps best known for his work

00:25in multi robot systems, robot swarms,

00:28and micro aerial vehicles,

00:30robots that elegantly cooperate in flight

00:34under all the uncertainty and challenges

00:36that the real world conditions present.

00:38This is the Artificial Intelligence Podcast.

00:41If you enjoy it, subscribe on YouTube,

00:44give it five stars on iTunes, support on Patreon,

00:47or simply connect with me on Twitter

00:49at Lex Friedman, spelled F R I D M A N.

00:53And now, here's my conversation with Vijay Kumar.

00:58What is the first robot you've ever built

01:01or were a part of building?

01:02Way back when I was in graduate school,

01:04I was part of a fairly big project

01:06that involved building a very large hexapod.

01:12It's weighed close to 7,000 pounds,

01:17and it was powered by hydraulic actuation,

01:21or it was actuated by hydraulics with 18 motors,

01:27hydraulic motors, each controlled by an Intel 8085 processor

01:34and an 8086 co processor.

01:38And so imagine this huge monster that had 18 joints,

01:44each controlled by an independent computer,

01:46and there was a 19th computer that actually did

01:49the coordination between these 18 joints.

01:52So I was part of this project,

01:53and my thesis work was how do you coordinate the 18 legs?

02:02And in particular, the pressures in the hydraulic cylinders

02:06to get efficient locomotion.

02:09It sounds like a giant mess.

02:11So how difficult is it to make all the motors communicate?

02:14Presumably, you have to send signals hundreds of times

02:17a second, or at least.

02:18So this was not my work,

02:19but the folks who worked on this wrote what I believe

02:23to be the first multiprocessor operating system.

02:26This was in the 80s, and you had to make sure

02:30that obviously messages got across

02:32from one joint to another.

02:34You have to remember the clock speeds on those computers

02:37were about half a megahertz.

02:39Right, the 80s.

02:42So not to romanticize the notion,

02:45but how did it make you feel to see that robot move?

02:51It was amazing.

02:52In hindsight, it looks like, well, we built this thing

02:55which really should have been much smaller.

02:57And of course, today's robots are much smaller.

02:59You look at Boston Dynamics or Ghost Robotics,

03:03a spinoff from Penn.

03:06But back then, you were stuck with the substrate you had,

03:10the compute you had, so things were unnecessarily big.

03:13But at the same time, and this is just human psychology,

03:18somehow bigger means grander.

03:21People never had the same appreciation

03:23for nanotechnology or nanodevices

03:26as they do for the Space Shuttle or the Boeing 747.

03:30Yeah, you've actually done quite a good job

03:32at illustrating that small is beautiful

03:36in terms of robotics.

03:37So what is on that topic is the most beautiful

03:42or elegant robot in motion that you've ever seen?

03:46Not to pick favorites or whatever,

03:47but something that just inspires you that you remember.

03:51Well, I think the thing that I'm most proud of

03:54that my students have done is really think about

03:57small UAVs that can maneuver in constrained spaces

04:00and in particular, their ability to coordinate

04:03with each other and form three dimensional patterns.

04:06So once you can do that,

04:08you can essentially create 3D objects in the sky

04:14and you can deform these objects on the fly.

04:17So in some sense, your toolbox of what you can create

04:21has suddenly got enhanced.

04:25And before that, we did the two dimensional version of this.

04:27So we had ground robots forming patterns and so on.

04:31So that was not as impressive, that was not as beautiful.

04:34But if you do it in 3D,

04:36suspended in midair, and you've got to go back to 2011

04:40when we did this, now it's actually pretty standard

04:43to do these things eight years later.

04:45But back then it was a big accomplishment.

04:47So the distributed cooperation

04:50is where beauty emerges in your eyes?

04:53Well, I think beauty to an engineer is very different

04:55from beauty to someone who's looking at robots

04:59from the outside, if you will.

05:01But what I meant there, so before we said that grand,

05:04so before we said that grand is associated with size.

05:10And another way of thinking about this

05:13is just the physical shape

05:15and the idea that you can get physical shapes in midair

05:18and have them deform, that's beautiful.

05:21But the individual components,

05:23the agility is beautiful too, right?

05:24That is true too.

05:25So then how quickly can you actually manipulate

05:28these three dimensional shapes

05:29and the individual components?

05:31Yes, you're right.

05:32But by the way, you said UAV, unmanned aerial vehicle.

05:36What's a good term for drones, UAVs, quad copters?

05:41Is there a term that's being standardized?

05:44I don't know if there is.

05:45Everybody wants to use the word drones.

05:47And I've often said this, drones to me is a pejorative word.

05:51It signifies something that's dumb,

05:53that's pre programmed, that does one little thing

05:56and robots are anything but drones.

05:58So I actually don't like that word,

06:00but that's what everybody uses.

06:02You could call it unpiloted.

06:04Unpiloted.

06:05But even unpiloted could be radio controlled,

06:08could be remotely controlled in many different ways.

06:11And I think the right word is,

06:12thinking about it as an aerial robot.

06:15You also say agile, autonomous, aerial robot, right?

06:19Yeah, so agility is an attribute, but they don't have to be.

06:23So what biological system,

06:24because you've also drawn a lot of inspiration with those.

06:27I've seen bees and ants that you've talked about.

06:30What living creatures have you found to be most inspiring

06:35as an engineer, instructive in your work in robotics?

06:38To me, so ants are really quite incredible creatures, right?

06:43So you, I mean, the individuals arguably are very simple

06:47in how they're built and yet they're incredibly resilient

06:52as a population.

06:53And as individuals, they're incredibly robust.

06:56So, if you take an ant, it's six legs,

07:00you remove one leg, it still works just fine.

07:04And it moves along.

07:05And I don't know that he even realizes it's lost a leg.

07:09So that's the robustness at the individual ant level.

07:13But then you look about this instinct

07:15for self preservation of the colonies

07:17and they adapt in so many amazing ways.

07:20You know, transcending gaps by just chaining themselves

07:26together when you have a flood,

07:29being able to recruit other teammates

07:32to carry big morsels of food,

07:35and then going out in different directions looking for food,

07:38and then being able to demonstrate consensus,

07:43even though they don't communicate directly with each other

07:47the way we communicate with each other.

07:49In some sense, they also know how to do democracy,

07:51probably better than what we do.

07:53Yeah, somehow it's even democracy is emergent.

07:57It seems like all of the phenomena that we see

07:59is all emergent.

08:00It seems like there's no centralized communicator.

08:03There is, so I think a lot is made about that word,

08:06emergent, and it means lots of things to different people.

08:09But you're absolutely right.

08:10I think as an engineer, you think about

08:13what element, elemental behaviors

08:17were primitives you could synthesize

08:21so that the whole looks incredibly powerful,

08:25incredibly synergistic,

08:26the whole definitely being greater than some of the parts,

08:29and ants are living proof of that.

08:32So when you see these beautiful swarms

08:34where there's biological systems of robots,

08:38do you sometimes think of them

08:40as a single individual living intelligent organism?

08:44So it's the same as thinking of our human beings

08:47are human civilization as one organism,

08:51or do you still, as an engineer,

08:52think about the individual components

08:54and all the engineering

08:55that went into the individual components?

08:57Well, that's very interesting.

08:58So again, philosophically as engineers,

09:01what we wanna do is to go beyond

09:05the individual components, the individual units,

09:08and think about it as a unit, as a cohesive unit,

09:11without worrying about the individual components.

09:15If you start obsessing about

09:17the individual building blocks and what they do,

09:23you inevitably will find it hard to scale up.

09:27Just mathematically,

09:29just think about individual things you wanna model,

09:31and if you want to have 10 of those,

09:34then you essentially are taking Cartesian products

09:36of 10 things, and that makes it really complicated.

09:39Then to do any kind of synthesis or design

09:41in that high dimension space is really hard.

09:44So the right way to do this

09:45is to think about the individuals in a clever way

09:49so that at the higher level,

09:51when you look at lots and lots of them,

09:53abstractly, you can think of them

§02Transcript · 09:55–19:48

09:55in some low dimensional space.

09:57So what does that involve?

09:58For the individual, do you have to try to make

10:02the way they see the world as local as possible?

10:05And the other thing,

10:06do you just have to make them robust to collisions?

10:09Like you said with the ants,

10:10if something fails, the whole swarm doesn't fail.

10:15Right, I think as engineers, we do this.

10:17I mean, you think about, we build planes,

10:19or we build iPhones,

10:22and we know that by taking individual components,

10:26well engineered components with well specified interfaces

10:30that behave in a predictable way,

10:31you can build complex systems.

10:34So that's ingrained, I would claim,

10:36in most engineers thinking,

10:39and it's true for computer scientists as well.

10:41I think what's different here is that you want

10:44the individuals to be robust in some sense,

10:49as we do in these other settings,

10:52but you also want some degree of resiliency

10:54for the population.

10:56And so you really want them to be able to reestablish

11:02communication with their neighbors.

11:03You want them to rethink their strategy for group behavior.

11:08You want them to reorganize.

11:12And that's where I think a lot of the challenges lie.

11:15So just at a high level,

11:18what does it take for a bunch of,

11:22what should we call them, flying robots,

11:24to create a formation?

11:26Just for people who are not familiar

11:28with robotics in general, how much information is needed?

11:32How do you even make it happen

11:35without a centralized controller?

11:39So, I mean, there are a couple of different ways

11:41of looking at this.

11:43If you are a purist,

11:45you think of it as a way of recreating what nature does.

11:53So nature forms groups for several reasons,

11:58but mostly it's because of this instinct

12:02that organisms have of preserving their colonies,

12:05their population, which means what?

12:09You need shelter, you need food, you need to procreate,

12:12and that's basically it.

12:14So the kinds of interactions you see are all organic.

12:18They're all local.

12:20And the only information that they share,

12:24and mostly it's indirectly, is to, again,

12:27preserve the herd or the flock,

12:30or the swarm, and either by looking for new sources of food

12:37or looking for new shelters, right?

12:39Right.

12:41As engineers, when we build swarms, we have a mission.

12:46And when you think of a mission, and it involves mobility,

12:52most often it's described in some kind

12:55of a global coordinate system.

12:56As a human, as an operator, as a commander,

12:59or as a collaborator, I have my coordinate system,

13:03and I want the robots to be consistent with that.

13:07So I might think of it slightly differently.

13:11I might want the robots to recognize that coordinate system,

13:15which means not only do they have to think locally

13:17in terms of who their immediate neighbors are,

13:19but they have to be cognizant

13:20of what the global environment is.

13:24They have to be cognizant of what the global environment

13:27looks like.

13:28So if I say, surround this building

13:31and protect this from intruders,

13:33well, they're immediately in a building centered

13:35coordinate system, and I have to tell them

13:37where the building is.

13:38And they're globally collaborating

13:40on the map of that building.

13:41They're maintaining some kind of global,

13:44not just in the frame of the building,

13:45but there's information that's ultimately being built up

13:49explicitly as opposed to kind of implicitly,

13:53like nature might.

13:54Correct, correct.

13:55So in some sense, nature is very, very sophisticated,

13:57but the tasks that nature solves or needs to solve

14:01are very different from the kind of engineered tasks,

14:05artificial tasks that we are forced to address.

14:09And again, there's nothing preventing us

14:12from solving these other problems,

14:15but ultimately it's about impact.

14:16You want these swarms to do something useful.

14:19And so you're kind of driven into this very unnatural,

14:24if you will.

14:25Unnatural, meaning not like how nature does, setting.

14:29And it's probably a little bit more expensive

14:31to do it the way nature does,

14:33because nature is less sensitive

14:37to the loss of the individual.

14:39And cost wise in robotics,

14:42I think you're more sensitive to losing individuals.

14:45I think that's true, although if you look at the price

14:49to performance ratio of robotic components,

14:51it's coming down dramatically, right?

14:54It continues to come down.

14:56So I think we're asymptotically approaching the point

14:58where we would get, yeah,

14:59the cost of individuals would really become insignificant.

15:05So let's step back at a high level view,

15:07the impossible question of what kind of, as an overview,

15:12what kind of autonomous flying vehicles

15:14are there in general?

15:16I think the ones that receive a lot of notoriety

15:19are obviously the military vehicles.

15:22Military vehicles are controlled by a base station,

15:26but have a lot of human supervision.

15:29But they have limited autonomy,

15:31which is the ability to go from point A to point B.

15:34And even the more sophisticated now,

15:37sophisticated vehicles can do autonomous takeoff

15:40and landing.

15:41And those usually have wings and they're heavy.

15:44Usually they're wings,

15:45but then there's nothing preventing us from doing this

15:47for helicopters as well.

15:49There are many military organizations

15:52that have autonomous helicopters in the same vein.

15:56And by the way, you look at autopilots and airplanes

16:00and it's actually very similar.

16:02In fact, one interesting question we can ask is,

16:07if you look at all the air safety violations,

16:12all the crashes that occurred,

16:14would they have happened if the plane were truly autonomous?

16:18And I think you'll find that in many of the cases,

16:21because of pilot error, we made silly decisions.

16:24And so in some sense, even in air traffic,

16:26commercial air traffic, there's a lot of applications,

16:29although we only see autonomy being enabled

16:33at very high altitudes when the plane is an autopilot.

16:38The plane is an autopilot.

16:41There's still a role for the human

16:42and that kind of autonomy is, you're kind of implying,

16:47I don't know what the right word is,

16:48but it's a little dumber than it could be.

16:53Right, so in the lab, of course,

16:55we can afford to be a lot more aggressive.

16:59And the question we try to ask is,

17:04can we make robots that will be able to make decisions

17:10without any kind of external infrastructure?

17:13So what does that mean?

17:14So the most common piece of infrastructure

17:16that airplanes use today is GPS.

17:20GPS is also the most brittle form of information.

17:26If you have driven in a city, try to use GPS navigation,

17:30in tall buildings, you immediately lose GPS.

17:32And so that's not a very sophisticated way

17:36of building autonomy.

17:37I think the second piece of infrastructure

17:39they rely on is communications.

17:41Again, it's very easy to jam communications.

17:47In fact, if you use wifi, you know that wifi signals

17:51drop out, cell signals drop out.

17:53So to rely on something like that is not good.

17:58The third form of infrastructure we use,

18:01and I hate to call it infrastructure,

18:02but it is that, in the sense of robots, is people.

18:06So you could rely on somebody to pilot you.

18:09And so the question you wanna ask is,

18:11if there are no pilots, there's no communications

18:14with any base station, if there's no knowledge of position,

18:18and if there's no a priori map,

18:21a priori knowledge of what the environment looks like,

18:24a priori model of what might happen in the future,

18:28can robots navigate?

18:29So that is true autonomy.

18:31So that's true autonomy, and we're talking about,

18:34you mentioned like military application of drones.

18:36Okay, so what else is there?

18:38You talk about agile, autonomous flying robots,

18:42aerial robots, so that's a different kind of,

18:45it's not winged, it's not big, at least it's small.

18:48So I use the word agility mostly,

18:50or at least we're motivated to do agile robots,

18:53mostly because robots can operate

18:58and should be operating in constrained environments.

19:02And if you want to operate the way a global hawk operates,

19:06I mean, the kinds of conditions in which you operate

19:09are very, very restrictive.

19:11If you wanna go inside a building,

19:13for example, for search and rescue,

19:15or to locate an active shooter,

19:18or you wanna navigate under the canopy in an orchard

19:22to look at health of plants,

19:23or to look for, to count fruits,

19:28to measure the tree trunks.

19:31These are things we do, by the way.

19:33There's some cool agriculture stuff you've shown

19:35in the past, it's really awesome.

19:37So in those kinds of settings, you do need that agility.

19:40Agility does not necessarily mean

19:42you break records for the 100 meters dash.

19:45What it really means is you see the unexpected

§03Transcript · 19:48–29:36

19:48and you're able to maneuver in a safe way,

19:51and in a way that gets you the most information

19:55about the thing you're trying to do.

19:57By the way, you may be the only person

20:00who, in a TED Talk, has used a math equation,

20:04which is amazing, people should go see one of your TED Talks.

20:07Actually, it's very interesting,

20:08because the TED curator, Chris Anderson,

20:12told me, you can't show math.

20:15And I thought about it, but that's who I am.

20:18I mean, that's our work.

20:20And so I felt compelled to give the audience a taste

20:25for at least some math.

20:27So on that point, simply, what does it take

20:32to make a thing with four motors fly, a quadcopter,

20:37one of these little flying robots?

20:41How hard is it to make it fly?

20:43How do you coordinate the four motors?

20:46How do you convert those motors into actual movement?

20:52So this is an interesting question.

20:54We've been trying to do this since 2000.

20:58It is a commentary on the sensors

21:00that were available back then,

21:02the computers that were available back then.

21:05And a number of things happened between 2000 and 2007.

21:11One is the advances in computing,

21:14which is, so we all know about Moore's Law,

21:16but I think 2007 was a tipping point,

21:19the year of the iPhone, the year of the cloud.

21:22Lots of things happened in 2007.

21:25But going back even further,

21:27inertial measurement units as a sensor really matured.

21:31Again, lots of reasons for that.

21:33Certainly, there's a lot of federal funding,

21:35particularly DARPA in the US,

21:38but they didn't anticipate this boom in IMUs.

21:42But if you look, subsequently what happened

21:46is that every car manufacturer had to put an airbag in,

21:50which meant you had to have an accelerometer on board.

21:52And so that drove down the price to performance ratio.

21:55Wow, I should know this.

21:56That's very interesting.

21:57That's very interesting, the connection there.

21:59And that's why research is very,

22:01it's very hard to predict the outcomes.

22:04And again, the federal government spent a ton of money

22:07on things that they thought were useful for resonators,

22:12but it ended up enabling these small UAVs, which is great,

22:16because I could have never raised that much money

22:18and sold this project,

22:20hey, we want to build these small UAVs.

22:22Can you actually fund the development of low cost IMUs?

22:25So why do you need an IMU on an IMU?

22:27So I'll come back to that.

22:31So in 2007, 2008, we were able to build these.

22:33And then the question you're asking was a good one.

22:35How do you coordinate the motors to develop this?

22:40But over the last 10 years, everything is commoditized.

22:43A high school kid today can pick up

22:46a Raspberry Pi kit and build this.

22:50All the low levels functionality is all automated.

22:54But basically at some level,

22:56you have to drive the motors at the right RPMs,

23:01the right velocity,

23:04in order to generate the right amount of thrust,

23:07in order to position it and orient it in a way

23:10that you need to in order to fly.

23:13The feedback that you get is from onboard sensors,

23:16and the IMU is an important part of it.

23:18The IMU tells you what the acceleration is,

23:23as well as what the angular velocity is.

23:26And those are important pieces of information.

23:30In addition to that, you need some kind of local position

23:34or velocity information.

23:37For example, when we walk,

23:39we implicitly have this information

23:41because we kind of know what our stride length is.

23:46We also are looking at images fly past our retina,

23:51if you will, and so we can estimate velocity.

23:54We also have accelerometers in our head,

23:56and we're able to integrate all these pieces of information

23:59to determine where we are as we walk.

24:02And so robots have to do something very similar.

24:04You need an IMU, you need some kind of a camera

24:08or other sensor that's measuring velocity,

24:12and then you need some kind of a global reference frame

24:15if you really want to think about doing something

24:19in a world coordinate system.

24:21And so how do you estimate your position

24:23with respect to that global reference frame?

24:25That's important as well.

24:26So coordinating the RPMs of the four motors

24:29is what allows you to, first of all, fly and hover,

24:32and then you can change the orientation

24:35and the velocity and so on.

24:37Exactly, exactly.

24:38So it's a bunch of degrees of freedom

24:40that you're complaining about.

24:41There's six degrees of freedom,

24:42but you only have four inputs, the four motors.

24:44And it turns out to be a remarkably versatile configuration.

24:50You think at first, well, I only have four motors,

24:53how do I go sideways?

24:55But it's not too hard to say, well, if I tilt myself,

24:57I can go sideways, and then you have four motors

25:00pointing up, how do I rotate in place

25:03about a vertical axis?

25:05Well, you rotate them at different speeds

25:07and that generates reaction moments

25:09and that allows you to turn.

25:11So it's actually a pretty, it's an optimal configuration

25:14from an engineer standpoint.

25:18It's very simple, very cleverly done, and very versatile.

25:23So if you could step back to a time,

25:27so I've always known flying robots as,

25:31to me, it was natural that a quadcopter should fly.

25:35But when you first started working with it,

25:38how surprised are you that you can make,

25:42do so much with the four motors?

25:45How surprising is it that you can make this thing fly,

25:47first of all, that you can make it hover,

25:49that you can add control to it?

25:52Firstly, this is not, the four motor configuration

25:55is not ours.

25:56You can, it has at least a hundred year history.

26:00And various people, various people try to get quadrotors

26:04to fly without much success.

26:08As I said, we've been working on this since 2000.

26:10Our first designs were, well, this is way too complicated.

26:14Why not we try to get an omnidirectional flying robot?

26:18So our early designs, we had eight rotors.

26:21And so these eight rotors were arranged uniformly

26:26on a sphere, if you will.

26:28So you can imagine a symmetric configuration.

26:30And so you should be able to fly anywhere.

26:33But the real challenge we had is the strength to weight ratio

26:36is not enough.

26:37And of course, we didn't have the sensors and so on.

26:40So everybody knew, or at least the people

26:43who worked with rotorcrafts knew,

26:44four rotors will get it done.

26:47So that was not our idea.

26:49But it took a while before we could actually do

26:52the onboard sensing and the computation that was needed

26:56for the kinds of agile maneuvering that we wanted to do

27:01in our little aerial robots.

27:03And that only happened between 2007 and 2009 in our lab.

27:07Yeah, and you have to send the signal

27:09maybe a hundred times a second.

27:12So the compute there, everything has to come down in price.

27:15And what are the steps of getting from point A to point B?

27:21So we just talked about like local control.

27:25But if all the kind of cool dancing in the air

27:30that I've seen you show, how do you make it happen?

27:34How do you make a trajectory?

27:37First of all, okay, figure out a trajectory.

27:40So plan a trajectory.

27:41And then how do you make that trajectory happen?

27:44Yeah, I think planning is a very fundamental problem

27:47in robotics.

27:48I think 10 years ago it was an esoteric thing,

27:50but today with self driving cars,

27:53everybody can understand this basic idea

27:55that a car sees a whole bunch of things

27:57and it has to keep a lane or maybe make a right turn

28:00or switch lanes.

28:01It has to plan a trajectory.

28:02It has to be safe.

28:03It has to be efficient.

28:04So everybody's familiar with that.

28:06That's kind of the first step that you have to think about

28:10when you say autonomy.

28:14And so for us, it's about finding smooth motions,

28:19motions that are safe.

28:21So we think about these two things.

28:22One is optimality, one is safety.

28:24Clearly you cannot compromise safety.

28:28So you're looking for safe, optimal motions.

28:31The other thing you have to think about is

28:34can you actually compute a reasonable trajectory

28:38in a small amount of time?

28:40Cause you have a time budget.

28:42So the optimal becomes suboptimal,

28:45but in our lab we focus on synthesizing smooth trajectory

28:51that satisfy all the constraints.

28:53In other words, don't violate any safety constraints

28:58and is as efficient as possible.

29:02And when I say efficient,

29:04it could mean I want to get from point A to point B

29:06as quickly as possible,

29:08or I want to get to it as gracefully as possible,

29:12or I want to consume as little energy as possible.

29:15But always staying within the safety constraints.

29:18But yes, always finding a safe trajectory.

29:22So there's a lot of excitement and progress

29:25in the field of machine learning

29:27and reinforcement learning

29:29and the neural network variant of that

29:32with deep reinforcement learning.

29:33Do you see a role of machine learning

§04Transcript · 29:36–38:35

29:36in, so a lot of the success of flying robots

29:40did not rely on machine learning,

29:42except for maybe a little bit of the perception

29:45on the computer vision side.

29:46On the control side and the planning,

29:48do you see there's a role in the future

29:50for machine learning?

29:51So let me disagree a little bit with you.

29:53I think we never perhaps called out in my work,

29:56called out learning,

29:57but even this very simple idea of being able to fly

30:00through a constrained space.

30:02The first time you try it, you'll invariably,

30:05you might get it wrong if the task is challenging.

30:08And the reason is to get it perfectly right,

30:12you have to model everything in the environment.

30:15And flying is notoriously hard to model.

30:19There are aerodynamic effects that we constantly discover.

30:26Even just before I was talking to you,

30:29I was talking to a student about how blades flap

30:33when they fly.

30:35And that ends up changing how a rotorcraft

30:40is accelerated in the angular direction.

30:43Does he use like micro flaps or something?

30:46It's not micro flaps.

30:47So we assume that each blade is rigid,

30:49but actually it flaps a little bit.

30:51It bends.

30:52Interesting, yeah.

30:53And so the models rely on the fact,

30:56on the assumption that they're not rigid.

30:58On the assumption that they're actually rigid,

31:00but that's not true.

31:02If you're flying really quickly,

31:03these effects become significant.

31:06If you're flying close to the ground,

31:09you get pushed off by the ground, right?

31:12Something which every pilot knows when he tries to land

31:14or she tries to land, this is called a ground effect.

31:18Something very few pilots think about

31:21is what happens when you go close to a ceiling

31:23or you get sucked into a ceiling.

31:25There are very few aircrafts

31:26that fly close to any kind of ceiling.

31:29Likewise, when you go close to a wall,

31:33there are these wall effects.

31:35And if you've gone on a train

31:37and you pass another train that's traveling

31:39in the opposite direction, you feel the buffeting.

31:42And so these kinds of microclimates

31:45affect our UAV significantly.

31:47So if you want...

31:48And they're impossible to model, essentially.

31:50I wouldn't say they're impossible to model,

31:52but the level of sophistication you would need

31:54in the model and the software would be tremendous.

32:00Plus, to get everything right would be awfully tedious.

32:02So the way we do this is over time,

32:05we figure out how to adapt to these conditions.

32:10So early on, we use the form of learning

32:13that we call iterative learning.

32:15So this idea, if you want to perform a task,

32:18there are a few things that you need to change

32:22and iterate over a few parameters

32:24that over time you can figure out.

32:29So I could call it policy gradient reinforcement learning,

32:33but actually it was just iterative learning.

32:34Iterative learning.

32:36And so this was there way back.

32:37I think what's interesting is,

32:39if you look at autonomous vehicles today,

32:43learning occurs, could occur in two pieces.

32:45One is perception, understanding the world.

32:47Second is action, taking actions.

32:50Everything that I've seen that is successful

32:52is on the perception side of things.

32:54So in computer vision,

32:55we've made amazing strides in the last 10 years.

32:57So recognizing objects, actually detecting objects,

33:01classifying them and tagging them in some sense,

33:06annotating them.

33:07This is all done through machine learning.

33:09On the action side, on the other hand,

33:12I don't know of any examples

33:13where there are fielded systems

33:15where we actually learn

33:17the right behavior.

33:20Outside of single demonstration is successful.

33:22In the laboratory, this is the holy grail.

33:24Can you do end to end learning?

33:26Can you go from pixels to motor currents?

33:30This is really, really hard.

33:32And I think if you go forward,

33:35the right way to think about these things

33:37is data driven approaches,

33:40learning based approaches,

33:42in concert with model based approaches,

33:45which is the traditional way of doing things.

33:47So I think there's a piece,

33:48there's a role for each of these methodologies.

33:51So what do you think,

33:52just jumping out on topic

33:53since you mentioned autonomous vehicles,

33:56what do you think are the limits on the perception side?

33:58So I've talked to Elon Musk

34:01and there on the perception side,

34:03they're using primarily computer vision

34:05to perceive the environment.

34:08In your work with,

34:09because you work with the real world a lot

34:12and the physical world,

34:13what are the limits of computer vision?

34:15Do you think we can solve autonomous vehicles

34:19on the perception side,

34:20focusing on vision alone and machine learning?

34:24So, we also have a spinoff company,

34:27Exxon Technologies that works underground in mines.

34:31So you go into mines, they're dark, they're dirty.

34:36You fly in a dirty area,

34:38there's stuff you kick up from by the propellers,

34:41the downwash kicks up dust.

34:42I challenge you to get a computer vision algorithm

34:45to work there.

34:46So we use LIDARs in that setting.

34:51Indoors and even outdoors when we fly through fields,

34:55I think there's a lot of potential

34:57for just solving the problem using computer vision alone.

35:01But I think the bigger question is,

35:02can you actually solve

35:06or can you actually identify all the corner cases

35:09using a single sensing modality and using learning alone?

35:13So what's your intuition there?

35:15So look, if you have a corner case

35:17and your algorithm doesn't work,

35:20your instinct is to go get data about the corner case

35:23and patch it up, learn how to deal with that corner case.

35:27But at some point, this is gonna saturate,

35:32this approach is not viable.

35:34So today, computer vision algorithms can detect

35:3890% of the objects or can detect objects 90% of the time,

35:41classify them 90% of the time.

35:43Cats on the internet probably can do 95%, I don't know.

35:47But to get from 90% to 99%, you need a lot more data.

35:52And then I tell you, well, that's not enough

35:54because I have a safety critical application,

35:56I wanna go from 99% to 99.9%.

36:00That's even more data.

36:01So I think if you look at wanting accuracy on the X axis

36:09and look at the amount of data on the Y axis,

36:14I believe that curve is an exponential curve.

36:16Wow, okay, it's even hard if it's linear.

36:19It's hard if it's linear, totally,

36:20but I think it's exponential.

36:22And the other thing you have to think about

36:24is that this process is a very, very power hungry process

36:29to run data farms or servers.

36:32Power, do you mean literally power?

36:34Literally power, literally power.

36:36So in 2014, five years ago, and I don't have more recent data,

36:412% of US electricity consumption was from data farms.

36:48So we think about this as an information science

36:52and information processing problem.

36:54Actually, it is an energy processing problem.

36:57And so unless we figured out better ways of doing this,

37:00I don't think this is viable.

37:02So talking about driving, which is a safety critical application

37:06and some aspect of flight is safety critical,

37:10maybe philosophical question, maybe an engineering one,

37:12what problem do you think is harder to solve,

37:15autonomous driving or autonomous flight?

37:18That's a really interesting question.

37:19I think autonomous flight has several advantages

37:25that autonomous driving doesn't have.

37:29So look, if I want to go from point A to point B,

37:32I have a very, very safe trajectory.

37:34Go vertically up to a maximum altitude,

37:36fly horizontally to just about the destination,

37:39and then come down vertically.

37:42This is preprogrammed.

37:45The equivalent of that is very hard to find

37:48in the self driving car world because you're on the ground,

37:51you're in a two dimensional surface,

37:53and the trajectories on the two dimensional surface

37:56are more likely to encounter obstacles.

38:00I mean this in an intuitive sense, but mathematically true.

38:03That's mathematically as well, that's true.

38:06There's other option on the 2G space of platooning,

38:10or because there's so many obstacles,

38:11you can connect with those obstacles

38:13and all these kind of options.

38:14Sure, but those exist in the three dimensional space as well.

38:16So they do.

38:17So the question also implies how difficult are obstacles

38:21in the three dimensional space in flight?

38:23So that's the downside.

38:25I think in three dimensional space,

38:26you're modeling three dimensional world,

38:29not just because you want to avoid it,

38:31but you want to reason about it,

38:33and you want to work in the three dimensional environment,

§05Transcript · 38:35–48:13

38:35and that's significantly harder.

38:37So that's one disadvantage.

38:38I think the second disadvantage is of course,

38:41anytime you fly, you have to put up

38:43with the peculiarities of aerodynamics

38:46and their complicated environments.

38:48How do you negotiate that?

38:49So that's always a problem.

38:51Do you see a time in the future where there is,

38:55you mentioned there's agriculture applications.

38:58So there's a lot of applications of flying robots,

39:01but do you see a time in the future

39:03where there's tens of thousands,

39:05or maybe hundreds of thousands of delivery drones

39:08that fill the sky, delivery flying robots?

39:12I think there's a lot of potential

39:14for the last mile delivery.

39:15And so in crowded cities, I don't know,

39:19if you go to a place like Hong Kong,

39:21just crossing the river can take half an hour,

39:24and while a drone can just do it in five minutes at most.

39:29I think you look at delivery of supplies to remote villages.

39:35I work with a nonprofit called Weave Robotics.

39:38So they work in the Peruvian Amazon,

39:40where the only highways that are available

39:44are the only highways or rivers.

39:47And to get from point A to point B may take five hours,

39:52while with a drone, you can get there in 30 minutes.

39:56So just delivering drugs,

39:59retrieving samples for testing vaccines,

40:05I think there's huge potential here.

40:07So I think the challenges are not technological,

40:09but the challenge is economical.

40:12The one thing I'll tell you that nobody thinks about

40:15is the fact that we've not made huge strides

40:18in battery technology.

40:20Yes, it's true, batteries are becoming less expensive

40:23because we have these mega factories that are coming up,

40:26but they're all based on lithium based technologies.

40:28And if you look at the energy density

40:31and the power density,

40:33those are two fundamentally limiting numbers.

40:38So power density is important

40:39because for a UAV to take off vertically into the air,

40:42which most drones do, they don't have a runway,

40:46you consume roughly 200 watts per kilo at the small size.

40:51That's a lot, right?

40:53In contrast, the human brain consumes less than 80 watts,

40:57the whole of the human brain.

40:59So just imagine just lifting yourself into the air

41:03is like two or three light bulbs,

41:06which makes no sense to me.

41:07Yeah, so you're going to have to at scale

41:10solve the energy problem then,

41:12charging the batteries, storing the energy and so on.

41:18And then the storage is the second problem,

41:20but storage limits the range.

41:22But you have to remember that you have to burn

41:28a lot of it per given time.

41:31So the burning is another problem.

41:32Which is a power question.

41:34Yes, and do you think just your intuition,

41:38there are breakthroughs in batteries on the horizon?

41:44How hard is that problem?

41:46Look, there are a lot of companies

41:47that are promising flying cars that are autonomous

41:53and that are clean.

41:59I think they're over promising.

42:01The autonomy piece is doable.

42:04The clean piece, I don't think so.

42:08There's another company that I work with called JetOptra.

42:11They make small jet engines.

42:15And they can get up to 50 miles an hour very easily

42:18and lift 50 kilos.

42:19But they're jet engines, they're efficient,

42:23they're a little louder than electric vehicles,

42:26but they can build flying cars.

42:28So your sense is that there's a lot of pieces

42:32that have come together.

42:33So on this crazy question,

42:37if you look at companies like Kitty Hawk,

42:39working on electric, so the clean,

42:43talking to Sebastian Thrun, right?

42:45It's a crazy dream, you know?

42:48But you work with flight a lot.

42:52You've mentioned before that manned flights

42:55or carrying a human body is very difficult to do.

43:01So how crazy is flying cars?

43:04Do you think there'll be a day

43:05when we have vertical takeoff and landing vehicles

43:11that are sufficiently affordable

43:14that we're going to see a huge amount of them?

43:17And they would look like something like we dream of

43:19when we think about flying cars.

43:21Yeah, like the Jetsons.

43:22The Jetsons, yeah.

43:23So look, there are a lot of smart people working on this

43:25and you never say something is not possible

43:29when you have people like Sebastian Thrun working on it.

43:32So I totally think it's viable.

43:35I question, again, the electric piece.

43:38The electric piece, yeah.

43:39And again, for short distances, you can do it.

43:41And there's no reason to suggest

43:43that these all just have to be rotorcrafts.

43:45You take off vertically,

43:46but then you morph into a forward flight.

43:49I think there are a lot of interesting designs.

43:51The question to me is, are these economically viable?

43:56And if you agree to do this with fossil fuels,

43:59it instantly immediately becomes viable.

44:01That's a real challenge.

44:03Do you think it's possible for robots and humans

44:06to collaborate successfully on tasks?

44:08So a lot of robotics folks that I talk to and work with,

44:13I mean, humans just add a giant mess to the picture.

44:18So it's best to remove them from consideration

44:20when solving specific tasks.

44:22It's very difficult to model.

44:23There's just a source of uncertainty.

44:26In your work with these agile flying robots,

44:32do you think there's a role for collaboration with humans?

44:35Or is it best to model tasks in a way

44:38that doesn't have a human in the picture?

44:43Well, I don't think we should ever think about robots

44:46without human in the picture.

44:48Ultimately, robots are there because we want them

44:50to solve problems for humans.

44:54But there's no general solution to this problem.

44:58I think if you look at human interaction

45:00and how humans interact with robots,

45:02you know, we think of these in sort of three different ways.

45:05One is the human commanding the robot.

45:08The second is the human collaborating with the robot.

45:12So for example, we work on how a robot

45:15can actually pick up things with a human and carry things.

45:18That's like true collaboration.

45:20And third, we think about humans as bystanders,

45:25self driving cars, what's the human's role

45:27and how do self driving cars

45:30acknowledge the presence of humans?

45:32So I think all of these things are different scenarios.

45:35It depends on what kind of humans, what kind of task.

45:39And I think it's very difficult to say

45:41that there's a general theory that we all have for this.

45:45But at the same time, it's also silly to say

45:48that we should think about robots independent of humans.

45:52So to me, human robot interaction

45:55is almost a mandatory aspect of everything we do.

45:59Yes, but to which degree, so your thoughts,

46:02if we jump to autonomous vehicles, for example,

46:05there's a big debate between what's called

46:08level two and level four.

46:10So semi autonomous and autonomous vehicles.

46:13And so the Tesla approach currently at least

46:16has a lot of collaboration between human and machine.

46:18So the human is supposed to actively supervise

46:22the operation of the robot.

46:23Part of the safety definition of how safe a robot is

46:29in that case is how effective is the human in monitoring it.

46:32Do you think that's ultimately not a good approach

46:37in sort of having a human in the picture,

46:42not as a bystander or part of the infrastructure,

46:47but really as part of what's required

46:50to make the system safe?

46:51This is harder than it sounds.

46:53I think, you know, if you, I mean,

46:58I'm sure you've driven before in highways and so on.

47:01It's really very hard to have to relinquish control

47:06to a machine and then take over when needed.

47:10So I think Tesla's approach is interesting

47:12because it allows you to periodically establish

47:14some kind of contact with the car.

47:18Toyota, on the other hand, is thinking about

47:20shared autonomy or collaborative autonomy as a paradigm.

47:24If I may argue, these are very, very simple ways

47:27of human robot collaboration,

47:29because the task is pretty boring.

47:31You sit in a vehicle, you go from point A to point B.

47:35I think the more interesting thing to me is,

47:37for example, search and rescue.

47:38I've got a human first responder, robot first responders.

47:43I gotta do something.

47:45It's important.

47:46I have to do it in two minutes.

47:47The building is burning.

47:49There's been an explosion.

47:50It's collapsed.

47:51How do I do it?

47:52I think to me, those are the interesting things

47:54where it's very, very unstructured.

47:57And what's the role of the human?

47:58What's the role of the robot?

48:00Clearly, there's lots of interesting challenges

48:02and there's a field.

48:03I think we're gonna make a lot of progress in this area.

48:05Yeah, it's an exciting form of collaboration.

48:07You're right.

48:08In autonomous driving, the main enemy

48:11is just boredom of the human.

§06Transcript · 48:13–56:46

48:13Yes.

48:13As opposed to in rescue operations,

48:15it's literally life and death.

48:18And the collaboration enables

48:22the effective completion of the mission.

48:23So it's exciting.

48:24In some sense, we're also doing this.

48:27You think about the human driving a car

48:30and almost invariably, the human's trying

48:33to estimate the state of the car,

48:35they estimate the state of the environment and so on.

48:37But what if the car were to estimate the state of the human?

48:40So for example, I'm sure you have a smartphone

48:41and the smartphone tries to figure out what you're doing

48:44and send you reminders and oftentimes telling you

48:48to drive to a certain place,

48:49although you have no intention of going there

48:51because it thinks that that's where you should be

48:53because of some Gmail calendar entry

48:57or something like that.

48:58And it's trying to constantly figure out who you are,

49:01what you're doing.

49:02If a car were to do that,

49:04maybe that would make the driver safer

49:06because the car is trying to figure out

49:08is the driver paying attention,

49:09looking at his or her eyes,

49:12looking at circadian movements.

49:14So I think the potential is there,

49:16but from the reverse side,

49:18it's not robot modeling, but it's human modeling.

49:21It's more on the human, right.

49:22And I think the robots can do a very good job

49:25of modeling humans if you really think about the framework

49:29that you have a human sitting in a cockpit,

49:32surrounded by sensors, all staring at him,

49:35in addition to be staring outside,

49:37but also staring at him.

49:39I think there's a real synergy there.

49:40Yeah, I love that problem

49:42because it's the new 21st century form of psychology,

49:45actually AI enabled psychology.

49:48A lot of people have sci fi inspired fears

49:51of walking robots like those from Boston Dynamics.

49:54If you just look at shows on Netflix and so on,

49:56or flying robots like those you work with,

49:59how would you, how do you think about those fears?

50:03How would you alleviate those fears?

50:05Do you have inklings, echoes of those same concerns?

50:09You know, anytime we develop a technology

50:11meaning to have positive impact in the world,

50:14there's always the worry that,

50:17you know, somebody could subvert those technologies

50:21and use it in an adversarial setting.

50:23And robotics is no exception, right?

50:25So I think it's very easy to weaponize robots.

50:29I think we talk about swarms.

50:31One thing I worry a lot about is,

50:33so, you know, for us to get swarms to work

50:35and do something reliably, it's really hard.

50:38But suppose I have this challenge

50:42of trying to destroy something,

50:44and I have a swarm of robots,

50:45where only one out of the swarm

50:47needs to get to its destination.

50:48So that suddenly becomes a lot more doable.

50:52And so I worry about, you know,

50:54this general idea of using autonomy

50:56with lots and lots of agents.

51:00I mean, having said that, look,

51:01a lot of this technology is not very mature.

51:03My favorite saying is that

51:06if somebody had to develop this technology,

51:10wouldn't you rather the good guys do it?

51:12So the good guys have a good understanding

51:13of the technology, so they can figure out

51:15how this technology is being used in a bad way,

51:18or could be used in a bad way and try to defend against it.

51:21So we think a lot about that.

51:22So we have, we're doing research

51:25on how to defend against swarms, for example.

51:28That's interesting.

51:29There's in fact a report by the National Academies

51:32on counter UAS technologies.

51:36This is a real threat,

51:38but we're also thinking about how to defend against this

51:40and knowing how swarms work.

51:42Knowing how autonomy works is, I think, very important.

51:47So it's not just politicians?

51:49Do you think engineers have a role in this discussion?

51:51Absolutely.

51:52I think the days where politicians

51:55can be agnostic to technology are gone.

51:59I think every politician needs to be

52:03literate in technology.

52:05And I often say technology is the new liberal art.

52:09Understanding how technology will change your life,

52:12I think is important.

52:14And every human being needs to understand that.

52:18And maybe we can elect some engineers

52:20to office as well on the other side.

52:22What are the biggest open problems in robotics?

52:24And you said we're in the early days in some sense.

52:27What are the problems we would like to solve in robotics?

52:31I think there are lots of problems, right?

52:32But I would phrase it in the following way.

52:36If you look at the robots we're building,

52:39they're still very much tailored towards

52:43doing specific tasks and specific settings.

52:46I think the question of how do you get them to operate

52:49in much broader settings

52:53where things can change in unstructured environments

52:58is up in the air.

52:59So think of self driving cars.

53:02Today, we can build a self driving car in a parking lot.

53:05We can do level five autonomy in a parking lot.

53:10But can you do a level five autonomy

53:13in the streets of Napoli in Italy or Mumbai in India?

53:16No.

53:17So in some sense, when we think about robotics,

53:22we have to think about where they're functioning,

53:25what kind of environment, what kind of a task.

53:27We have no understanding

53:29of how to put both those things together.

53:32So we're in the very early days

53:34of applying it to the physical world.

53:35And I was just in Naples actually.

53:38And there's levels of difficulty and complexity

53:42depending on which area you're applying it to.

53:45I think so.

53:46And we don't have a systematic way of understanding that.

53:51Everybody says, just because a computer

53:53can now beat a human at any board game,

53:56we certainly know something about intelligence.

53:59That's not true.

54:01A computer board game is very, very structured.

54:04It is the equivalent of working in a Henry Ford factory

54:08where things, parts come, you assemble, move on.

54:11It's a very, very, very structured setting.

54:14That's the easiest thing.

54:15And we know how to do that.

54:18So you've done a lot of incredible work

54:20at the UPenn, University of Pennsylvania, GraspLab.

54:23You're now Dean of Engineering at UPenn.

54:26What advice do you have for a new bright eyed undergrad

54:31interested in robotics or AI or engineering?

54:34Well, I think there's really three things.

54:36One is you have to get used to the idea

54:40that the world will not be the same in five years

54:42or four years whenever you graduate, right?

54:45Which is really hard to do.

54:46So this thing about predicting the future,

54:48every one of us needs to be trying

54:50to predict the future always.

54:53Not because you'll be any good at it,

54:54but by thinking about it,

54:56I think you sharpen your senses and you become smarter.

55:00So that's number one.

55:02Number two, it's a corollary of the first piece,

55:05which is you really don't know what's gonna be important.

55:09So this idea that I'm gonna specialize in something

55:12which will allow me to go in a particular direction,

55:15it may be interesting,

55:16but it's important also to have this breadth

55:18so you have this jumping off point.

55:22I think the third thing,

55:23and this is where I think Penn excels.

55:25I mean, we teach engineering,

55:27but it's always in the context of the liberal arts.

55:29It's always in the context of society.

55:32As engineers, we cannot afford to lose sight of that.

55:35So I think that's important.

55:37But I think one thing that people underestimate

55:39when they do robotics

55:40is the importance of mathematical foundations,

55:43the importance of representations.

55:47Not everything can just be solved

55:50by looking for Ross packages on the internet

55:52or to find a deep neural network that works.

55:56I think the representation question is key,

55:59even to machine learning,

56:00where if you ever hope to achieve or get to explainable AI,

56:05somehow there need to be representations

56:07that you can understand.

56:09So if you wanna do robotics,

56:11you should also do mathematics.

56:12And you said liberal arts, a little literature.

56:16If you wanna build a robot,

56:17it should be reading Dostoyevsky.

56:19I agree with that.

56:20Very good.

56:21So Vijay, thank you so much for talking today.

56:23It was an honor.

56:24Thank you.

56:25It was just a very exciting conversation.

56:26Thank you.

— A LITTLE MORE TO THINK ABOUT. —