WEBVTT

0:00:15.589 --> 0:00:20.331
<v A>Programming Throwdown Episode 56: Robotics. Take it away, Jason! Hey everybody, so...

0:00:21.259 --> 0:01:17.250
<v B>I have a new microphone. Super excited about that. You sound amazing. Thank you. There was a Reddit thread. It said what? Programming podcasts do you like on Learn Programming I Think subreddit? And a bunch of people said Programming Throwdown, which is awesome. Thank you guys so much. And of course, you know we have to look at all the comments and like any—anyone's brain goes like straight to the negative comments, and you kind of read those, and a bunch of people said, 'Oh, Patrick sounds pretty good, but Jason sounds like he got his, you know, microphone in a garage sale,' which I did. So I actually did literally have my microphone from a—from a thrift shop. So so I bought a new microphone. I followed Patrick's advice and got the same microphone as him did, and I'm really excited, really happy to have some new equipment. I even got a pop filter, so look out.

0:01:17.807 --> 0:01:19.394
<v A>Oh wait, now you've surpassed me! Oh.

0:01:20.069 --> 0:01:27.342
<v B>Oh, I thought you had a pop filter. No? Uh okay, look out. Now it's like what's that called? Yeah, Keep Up with the Joneses. The—

0:01:27.713 --> 0:01:36.707
<v A>Next thing we need to do is get those anechoic panels that we wrap around when we record so we don't get echoes and like room noise, and then we'll be professionals.

0:01:37.315 --> 0:01:43.829
<v B>Yeah, yeah, totally. That's the next step is those—those like corrugated gray foam things they have.

0:01:43.947 --> 0:01:45.449
<v A>Like little pyramids on them.

0:01:45.567 --> 0:01:46.495
<v B>Yeah, right. Right.

0:01:46.495 --> 0:01:48.200
<v A>Yeah, I think they're called—

0:01:51.034 --> 0:03:27.239
<v B>Anechoic. Hey, sounds good to me. Sounds awesome. So on to news. Um so yeah, this is pretty cool. I would have put it as my tool of the show, but I haven't used it yet. It's still also a bit early, but I think it's a great idea. It's called Marp—Markdown Presentation Writer. And the idea is it's this desktop app you download, and then you start writing Markdown, and it converts your Markdown into a PowerPoint presentation. And the reason why that is really cool is the PowerPoint presentation can be packaged as like a website, and in the Markdown you can have HTML. So in other words, like you could have a presentation where in the presentation are some charts that are dynamically generated, like the presentation could make a web request to, you know, your server and pull back some charts. I mean, in a way that's kind of bad because yes, the data could change and not represent what you wanted, but or I mean, that's maybe not the best example, but you could have a link to Google Maps, and you actually have the—the Google Maps, you know, iframe, and it's interactive. And so it's pretty cool. You know, I'm gonna try it out. I've always been looking for a better, you know, presentation software. It's kind of more lightweight and things like that. I'm that guy who just has all my presentations are just white background black text. So yeah, I'm gonna try this out, and if it's good, I might—I might double dip and make it my tool of the show in the future. That's cheating.

0:03:28.757 --> 0:03:30.428
<v B>Yeah, that's what we do. We—

0:03:30.917 --> 0:03:38.477
<v A>Cheat also I would hope there's a compiling step or whatever where it generates the PowerPoint and then it kind of freezes your data at that step. No?

0:03:39.810 --> 0:04:08.970
<v B>Oh well, I think I mean you could definitely do that. What you would do in that case is like you would have—you probably just take a screenshot of your data, you know? I mean, like or something like that. But it can generate this kind of website or it can export to PDF, which is about as good as you can get. I mean, exporting to like PowerPoint would be really hard, so I don't expect that's gonna happen anytime soon, but a PDF is pretty good. Okay, we'll

0:04:10.050 --> 0:05:12.893
<v A>Go try it out and report back. That's right. The next story I have was making its rounds: the Apollo Guidance Computer source code was posted to GitHub. Apparently, this has actually been out in the public several times before. I've never seen it before, but this is some of the code written to control the Apollo mission for the guidance system, and it was written in a custom assembly that they made. But the most interesting things, I guess, are notice the comments in the code that people wrote and probably assumed would not be written or at least would not be written. What is that? Fifty years later? Yeah, fifty-one years later. So things like 'Temporary: I hope I hope I hope like I hope that someone deletes this code one day.' Yeah, yeah. No, and there's just, you know, other kind of silly comments and quotes and I guess things that at the time maybe even weren't that significant, but later reading back it's kind of interesting to see what people chose.

0:05:14.513 --> 0:05:26.967
<v A>I guess if you were an author, people would look at this and say, 'What did they mean here? This is an allegory for what?' But it was probably the person just being goofy when they wrote it. Yeah, totally, but it's interesting.

0:05:26.967 --> 0:05:38.780
<v B>Sorry, what is the weirdest piece of code you've ever seen or like funniest? Or I mean, we've both worked at big companies which have giant code bases, and sometimes you're just diving through the code, you see something completely bizarre?

0:05:38.780 --> 0:05:53.916
<v A>I mean, I think the only one—and I've probably talked about it before—is the first time I came across some bit of code that had a big comment and said, 'Voodoo black magic starts here. Do not alter unless you want everything to crash.' That's awesome, but

0:05:54.810 --> 0:05:55.874
<v B>Other than that.

0:05:57.477 --> 0:05:59.890
<v A>I haven't seen very much funny code. The only

0:06:00.244 --> 0:06:13.035
<v B>One I saw is—I might have talked about this too in the past—but there was this comment that said like, 'I don't know why, but return one here,' and the next line was 'return zero.' What? Yeah. I fussed at someone.

0:06:14.183 --> 0:06:49.180
<v A>The other day, I read a comment—no, no, it was like a log statement—and I was like, 'Oh, this is not correct. Your code's not doing the right thing.' But in my mind, I like I saw the log comment was wrong, and I never bothered to actually read what the code was doing. I just assumed the code was wrong as well, but actually the code was correct, and they just like copy-and-pasted an erroneous log comment. I was like, 'Oops, should have read the code.' But it was fair, I guess, from my standpoint that if you had the like why would I keep reading if the comments aren't right?'

0:06:49.180 --> 0:07:18.274
<v B>Yeah, actually there's something that someone said to me that's really profound. It is—unless you're working on a project by yourself, any code you write will be witnessed by at least twice as many people. In other words, you're going to read it again one day, and someone else was going to read it again one day at least. So write code as if you expect it to be read many times.' And I thought that was kind of a profound statement.

0:07:19.742 --> 0:07:21.447
<v A>A lot of people still don't follow that.

0:07:22.020 --> 0:08:12.561
<v B>Though yeah. No, I mean we're all guilty of it at different times. So my news article is the Microsoft R client. I haven't tried this. It looks pretty cool. Basically, it's an R front end, and it works with big data. So there's various kind of like R operators that you can run on the data to do transformations, dot product, do things like that. But if you use this R library—let me see if I can find the name of the library—but yeah, if you use this one library, then it'll actually run on the cloud, so you could do a dot product of, you know, a billion, you know, a billion-sized vector with another billion-sized vector, and it'll just distribute everything.

0:08:12.696 --> 0:08:14.282
<v A>Revo Scale R. That's what.

0:08:15.092 --> 0:09:24.660
<v B>It is. Yep, this the Scale R technology and proprietary functions. So the deal is the R client is open source, the base like you know R distribution is obviously open source, but then if you call any of these Scale R functions that are owned by Microsoft, those are closed source. So if there's a bug in one of those, you know, you have to go chase down someone at Microsoft. But yeah, it seems pretty cool. I mean, there's a lot of people who use R—a lot of statisticians—and the idea that, you know, they could just kind of take what they've done and move it over to Big Data is kind of a cool idea. I mean, obviously you can't do the same things as you can do like you don't have the full power that you do in R because you don't have the same kind of data locality, right? So like if you're going to break the data up and it chunks each chunk all can only see, you know, the data that is assigned to that. That is assigned to it. So, you know, you can't do everything, but you can do a lot of things. And yeah, I thought this was pretty cool. I'm definitely going to be checking it out this week.

0:09:24.660 --> 0:09:27.920
<v A>Pokémon Go.

0:09:30.338 --> 0:09:31.030
<v B>Oh my gosh.

0:09:31.030 --> 0:09:36.329
<v A>i'm sorry i just don't even like so i'll tell you my experience

0:09:36.649 --> 0:09:53.794
<v B>with it i uh i downloaded it um i fought the the you know test enemy i think i picked squirtle and i fought squirtle i defeated him and so i have you know the like very first introductory pokemon um and that's it so i'm

0:09:53.794 --> 0:09:55.279
<v A>totally lacking um

0:09:55.279 --> 0:10:05.894
<v B>i definitely want to get into it but uh i haven't done it yet but it is insanely popular so you got a little bit further right no oh no so i

0:10:05.894 --> 0:10:20.119
<v A>kept telling myself i'm gonna download it and try it out because i have fond memories of pokemon when i when the original red and blue came out and i was i guess i don't remember how old i must have been at the time but a little on the older side so as

0:10:20.119 --> 0:10:23.832
<v B>like a game boy so yeah probably like nine or something but

0:10:23.832 --> 0:10:37.821
<v A>as like a first rpg it was something that was very good for me i guess um japanese rpgs weren't or at least not around people i knew weren't a big deal at that time and uh so i really enjoyed it but then it

0:10:39.323 --> 0:11:37.086
<v A>wasn't really a cultural thing at that point it wasn't until later that the cartoon show and stuff started to come out but by that time it was i was a little older and it was like more something my younger brother and his friends were into so then i still play i wanted to still play the game but uh you know i couldn't be into it and it's so now that i'm an adult right like you know whatever but but as a kid i guess i made the decision not to be quite quote unquote into it but i still do remember all the pokemon and i was always better at the game than my brother because i was older uh nice but no i keep telling myself i was going to download it but then i got freaked out because i read some article that was saying that it uses your google login and it the permissions it grants actually gives it access to like everything in your google account not just like read email or read your email contacts or your email address but like actually read all of your email and they're saying it's most likely that they're not using it but you know it could be a

0:11:37.086 --> 0:11:44.579
<v B>Problem if yeah, they actually just pushed—they posted a news story saying that they fixed that. Okay, so I will download.

0:11:44.579 --> 0:11:46.266
<v A>It yeah, I guess if

0:11:46.266 --> 0:12:55.352
<v B>there's an issue where like once you ask for something, you can't ask for less because that's kind of like giving the illusion that you weren't collecting it when you were. But given that this is already more popular than Twitter, I think like Google made an exception and like Google engineers like worked something out with them. But yeah, that's so it gets to the article. The article is just—I just cannot believe how popular and it only came out what a week ago, I think. Yeah, and it's just insanely popular. Like it's already more popular on Twitter. Nintendo stock went up seven billion dollars or something. It's just insane. And the article specifically talks about the augmented reality portion of it. So you didn't get to fight the first monster, right? No. Okay. So—or I guess the first Pokémon, but it does this thing where it—I don't even know how it works because they don't have 3D vision or anything. It must be based on like passive, you know, they passive movement. They try to do some kind of stereo vision thing, but

0:12:55.825 --> 0:12:56.940
<v A>it isn't that structure from

0:12:56.940 --> 0:13:34.114
<v B>motion. Yeah, yeah, that's right. So it figures out like again in our case we were at an ice cream shop and my wife and I were trying it out, and like Squirtle was just sitting on one of the benches in the ice cream shop and actually recognized like in 3D sort of what that represented, and he was just chilling there. And we just flicked a Pokémon Ball on him and caught him, and it's just amazing. So yeah, I definitely—so the article talks about how amazing augmented reality is and how it's the future and everything. I believe it. I think.

0:13:34.182 --> 0:13:50.314
<v A>It's I think it's interesting that from what I understand, it's pretty similar technology-wise to Ingress, the Niantic Labs game, but obviously this has far and away eclipsed anything that Ingress ever was as far as like

0:13:50.314 --> 0:13:51.664
<v B>the amount of

0:13:51.664 --> 0:13:54.212
<v A>people, the cultural awareness of it. Yeah.

0:13:55.849 --> 0:14:26.560
<v B>It started as an April Fool's joke in Google Maps. This is the article talks about this. And I don't even remember exactly what the profile—I mean, I remember seeing it at the time there was some April Fool's joke that like juxtaposed maps with Pokémon. I don't know if it replaced all the buildings of gyms, I don't know, but it was insanely popular, and then they realized that there's this huge, you know, Pokémon fan base that they could tap into.

0:14:28.367 --> 0:14:37.935
<v A>I will be downloading it. I will be playing it. I would probably show my kids how awesome it is, and they will think I'm an amazing person for being able to capture Pokémon.

0:14:38.543 --> 0:14:44.600
<v B>If we—if you don't see us if we don't have an episode next month, you'll know why we're running around trying to catch Pokémon. I saw

0:14:44.600 --> 0:14:50.319
<v A>articles devoted to selecting an external battery for your iPhone because it drains so much battery.

0:14:50.929 --> 0:14:54.034
<v B>Oh no. I guess a GPS? I have no idea, but

0:14:54.034 --> 0:15:00.852
<v A>It was just funny that everyone's trying to cash in on the, you know, clickbaiting by putting Pokémon Go in your

0:15:03.400 --> 0:15:11.600
<v B>Headline. That's awesome. Um, yeah. So, yeah, next episode we will definitely—we'll definitely talk about it more as we would have hopefully played it.

0:15:12.698 --> 0:15:13.913
<v A>By then book of

0:15:14.520 --> 0:16:40.459
<v B>The show, Book of the Show. My Book of the Show is the U.S. Puzzle Championship 2016, which just happened. You can go to this URL if you click on the show notes and you can download the puzzles for free. The contest is over, so you can't—you can't you can't compete this year, but I did compete from 2006 through 2010, and I wasn't like particularly, you know, that good. I think it was in like top 100 one year, but I didn't get to go to the World Championship or anything crazy like that. But it's super fun. You don't have to be a programmer, although you can actually use the computer to kind of cheat in the actual contest. They give you two and a half hours, so you kind of have to sort of solve these logic puzzles by hand because I mean, I guess you could cheat. You could write the—you could write a bunch of scaffolding code in such a way where you could quickly turn out a program, but as far as I know, nobody actually does that, and if you did that and went to the World Championship, they don't let you use a computer, so that'd be kind of weird. But you can actually use a computer to solve the puzzles like brute force it or whatever. It's kind of a fun exercise. You can also solve it yourself by using various kinds like Lagrangians, reductionist methods, and things like that, and logic. So what is an example?

0:16:40.634 --> 0:16:45.510
<v A>Question? Or what are the kinds of questions that they ask?

0:16:45.510 --> 0:17:18.619
<v B>Like Sudoku puzzles? Like—no, it's well, yeah, kind of. So you could think of it as you could think of Sudoku as like a logic puzzle, and so this is just sort of like an umbrella of which Sudoku, you know, could be one of the questions, right? Sure. They're basically variants on that theme. So there's some where you have a bunch of different weights and you have a bunch of different scales, and you have to make all the scales balance but use all the weights, for example, right? They're all—they're all variations of NP-hard problems, but they're not

0:17:18.619 --> 0:17:24.374
<v A>Like find an algorithm and then run it. It's just like solve an instance of the puzzle exactly.

0:17:24.846 --> 0:17:25.605
<v B>Okay, so they

0:17:25.673 --> 0:17:31.461
<v A>give you some rule set in an instance of a puzzle, and then you're supposed to solve that instance of the

0:17:32.254 --> 0:17:33.655
<v B>puzzle. Yeah, exactly. Okay, but

0:17:33.655 --> 0:17:36.389
<v A>They're not—they're not puzzles you would have

0:17:37.334 --> 0:18:28.347
<v B>Seen before, right? That's right. But yeah, it's the thing about it is like you can't brute force it, so you often have to find like some tricks that radically reduce the search space. And so if you have those tricks, then you could write the program pretty quickly. But if you have the trick, you don't need the program unless you have to solve like a thousand of these, right? So that's really what it's all about is like trying to understand the patterns and try to understand specifically what things cannot happen so that you don't have to think about those things. And then once you've got it narrowed down, then you just try all the possibilities. It's a lot of fun. I mean, I did it for a long time. I wish I could say I was good at it. I'm definitely better than like an average person, but I'm not anywhere near as good as like these world champions who are just crazy.

0:18:28.971 --> 0:18:30.119
<v A>That was a humble.

0:18:30.119 --> 0:18:37.088
<v B>Crazy in a good way. But yeah, it's true. But anyway, so this is...

0:18:37.240 --> 0:18:40.024
<v A>Really fun! You guys should definitely try it out.

0:18:40.040 --> 0:18:48.563
<v B>They also have solutions, so you can make sure you're on the right track and things like that. So definitely check it.

0:18:49.913 --> 0:18:50.959
<v A>Out sounds like homework.

0:18:53.035 --> 0:18:54.030
<v A>Yeah, that's...

0:18:55.110 --> 0:19:11.260
<v B>I think the reason why—okay, I think the reason why it's fun is it's like Sudoku. If you like Sudoku and you know you're tired of doing kind of the same puzzle just with different numbers, then this, this will blow your mind. But...

0:19:11.260 --> 0:19:39.559
<v A>I feel like a lot of the appeal of Sudoku—Sudoku—I don't know who it is figuring out those tricks and then getting to apply them over and over. And for me, you know, it eventually becomes boring. But you can kind of have your personal pattern or tricks, or you may even know tricks but choose not to use them just because you like doing it more casually. I feel like it would be difficult. I'll try it out and see. I feel like learning a rule set for a single question and answer is less.

0:19:41.078 --> 0:19:42.411
<v A>Interesting to me. Yeah, I...

0:19:43.204 --> 0:20:16.617
<v B>I think it's—I feel like there's two types of kind of satisfaction, and this is getting to like psychology or whatever, but there's people who get satisfaction from novelty. It's like, oh, I saw this thing I didn't see before. Like, oh, I went to Machu Picchu, and I'm just happy because I did it. And then there's people who are like, I played this guitar song more accurately than I did last time, and that makes me happy, right? And so the people who do Sudoku every week are in category two, and this is like category one. So it's like a different kind of satisfaction. Yeah.

0:20:19.148 --> 0:20:32.530
<v A>I think I'm more in—well, I just said category two, but I think I'm more category one. I typically do find enjoyment for the first little bit of something, so I guess that contradicts my statement. Yeah, well, I should try.

0:20:32.530 --> 0:20:35.939
<v B>This I'll report back. All right, so you're going

0:20:36.580 --> 0:20:39.752
<v A>to tell us about Mark, and I'm going to tell us about this. That's

0:20:40.174 --> 0:20:41.440
<v B>right. We have Homework Someone.

0:20:41.720 --> 0:20:58.720
<v A>Will remind us. My book of the show is Son of the Black Sword, which is a fantasy book by Larry Correia, and I've had him as an author for books I've picked before. Oh, actually, I think I accidentally picked the same author two shows in a row because I believe that's fine as long as

0:20:58.720 --> 0:20:59.682
<v B>it's too different.

0:20:59.840 --> 0:21:12.360
<v A>believe I had Hard Magic, which is a different series that he writes. That last time, so anyways, I'm obviously having some sort of thing with this author, and I listened to this book, Hard Not.

0:21:12.360 --> 0:21:15.021
<v B>sponsoring the podcast at all? And I'm just kidding. Yes.

0:21:15.494 --> 0:23:06.345
<v A>If you would like to contact us, yeah, and send us money. But I so I listened to Son of the Black Sword on my commute. I've really enjoyed it. It's a fantasy book, and sometimes traditional fantasy books get a little bit weird, the first one because they're kind of doing a lot of world-building, but I felt this book struck a really good balance of world-building and also having an interesting story that had some progression from start to end. Obviously, it didn't like tie everything up because it's a series, and it actually didn't have as much of an end as many books do, but it did have a you know, a clear trajectory, and I felt like there was on its own you could just read this story. Oh no, I'm trying to say you could read the story and be happy with where it is and not have to read the next one, but it kind of—I don't want to spoil anything, but that's not completely true. So anyways, check it out if you're interested in fantasy. The concepts I felt in it were pretty original to me. Sometimes I say that like, oh, this fantasy book had this idea that I thought was really cool. I was—I never thought about it that way before, and someone tells me, 'Oh no, that's actually from some older book,' and this author just kind of is rehashing it. So I won't say that this is original, but to me, some of the ideas that were in this book were kind of novel, and I found them interesting. So that's Son of the Black Sword by Larry Correia, and we'll have the link in the show notes. Or you know, we are sponsored by Audible, and if you go to audibletrial.com/programmingthrowdown, you can get a free one-month subscription Audible, which means you can download any books. You could download Son of the Black Sword, or there's many, many books on there. We've a whole host of books that we've recommended, or I guess mostly I've recommended Jason's book isn't on Audible U.S. Puzzle Championship 2016, although I

0:23:06.345 --> 0:23:13.686
<v B>did. I am halfway through Red Shirt. Oh yes, about the Star Trek, Star Trek thing. Yeah, that is an awesome book.

0:23:13.686 --> 0:23:15.419
<v A>Oh, you're enjoying it? Good. Yeah, it's

0:23:15.424 --> 0:23:34.639
<v B>very fun. Good. Yep. Um yeah, it's actually the I'm glad you didn't spoil it when you gave your review because um don't spoil it now. Yeah, yeah, I know, but I was totally not expecting what happened, and it was—it was really, you know, really awesome. I mean, it's like I'm really into it now.

0:23:34.640 --> 0:23:52.853
<v A>Okay. Yeah, it's really hard to do these because I feel a lot of a book should be a surprise, and I actually try to read as little as possible about the books, just enough to kind of know I'd be interested in before listening or reading them. And so I—I always feel awkward giving the review because I don't want to say too much.

0:23:52.853 --> 0:23:53.798
<v B>Like I didn't say anything.

0:23:53.798 --> 0:24:06.572
<v A>Specific about Son of the Black Sword? You have no idea what it's about other than it's probably a black sword and somebody who's a son. Um, but yeah, I just don't want to give any of the surprise away because that's like a lot of the awesomeness of reading.

0:24:07.872 --> 0:24:34.433
<v B>A book? Yeah, totally. So we're also on Patreon.com/ProgrammingThrowdown, and we'll have a link to that in the show notes as well. And that's where, you know, if you feel inclined to like give a donation each episode, we also post MP3s on Patreon. They have a pretty high bandwidth connection and all of that. So yeah, Patreon and Audible. Check it out. Yeah.

0:24:34.433 --> 0:24:37.300
<v A>and thank you to all of you have been doing both of those things we really

0:24:38.297 --> 0:24:47.055
<v B>appreciate it yeah absolutely um time for tool of the show my tool of the show uh given the whole theme of sort of robotics and kind of more this is

0:24:47.055 --> 0:24:49.180
<v A>a little bit of a stretch but it was a good idea

0:24:49.180 --> 0:25:25.497
<v B>Yeah, my Tool of the Show is... My I'm not going to say this right: Evoluent Vertical Mouse. And so I've had actually this um since actually since since you and I met, I've had one of these mice for work. I don't have one at home because this would be useless for gaming, but if you know sit at a computer doing programming for, you know, for a living or just for a lot, a lot of hours, this mouse is awesome. It's a vertical mouse, and so it's very hard to describe, but maybe no, I don't think it is. It's...

0:25:25.497 --> 0:25:39.655
<v A>If you put your hand straight out normally, you hold the mouse with your palm towards the desk. Instead, you hold it with your palm facing your keyboard if you're right-handed or left-handed with your palm facing your keyboard and then you make like a pincer motion with your thumb. Yeah.

0:25:39.874 --> 0:26:33.047
<v B>Like imagine if you're gonna shake someone's hand. Oh, there you go. That's kind of like what your hand is going to look like or feel like all day. And it's really, you know, it's one of these things like you might say, 'Well, who cares?' Right? But I actually noticed when when I had a right—when I switched to regular mouse after about a month, I kind of felt like the tension in the shoulder and things like that. And so this is, I think the the and I'm not like an ergonomics expert, I think, but what they say is, I guess when you tilt your hand, you know, palm down, you're cross the two bones in your forearm, and that causes stress especially if you do it for many hours. So so yeah, the Evoluent Vertical Mouse. It doesn't have to be that one that just happens to be the one I've always used. I'm sure any vertical mouse would be great, but yeah, yeah, check it.

0:26:34.043 --> 0:26:45.349
<v A>Out there's a whole host of ergonomic solutions. Weirdly, I did have one of these mice and it was still bothering me a little. And so the thing that worked for me was even just using a normal mouse but using it with my left hand even though I'm right-handed. Oh.

0:26:45.855 --> 0:26:53.348
<v B>I have a friend who, a co-worker who sits next to me, who does that. He has—he actually alternates. I do. I do somewhat as well. Yeah. I...

0:26:53.348 --> 0:27:16.120
<v A>Do have two mice plugged into my computer actually, but I find for some weird reason, I guess because I do a lot of other tasks in my right arm that using my left arm for my mouse works really well for me. But then people fuss at me because most people who use their mice with their left hand swap the buttons. So you—oh, I'm gonna get this wrong. Normally to right-click it's the, you know, right.

0:27:16.214 --> 0:27:21.327
<v B>button, but you make it the outside index. Your index finger should be the main click, right?

0:27:21.327 --> 0:27:32.127
<v A>I don't. I leave it; that is too confusing to me. Oh, so I use—I leave it in the normal orientation, so I use my middle finger to do the main clicking. Oh, wow, it's

0:27:32.802 --> 0:27:38.759
<v B>So yeah, I'm weird. You must be really adept at navigating traffic like your middle

0:27:40.632 --> 0:27:41.965
<v B>finger is just ready to.

0:27:41.965 --> 0:27:45.424
<v A>Go! I didn't even know what you were saying.

0:27:45.694 --> 0:27:47.500
<v B>I was trying to figure out the right

0:27:47.500 --> 0:28:41.027
<v A>way to say. All right. Moving on, that was not the right way to say that. Moving on, awkward joke. My tool of the show is a 3D printer. Trying to be in theme as well. If you get into hobby robotics, you'll definitely want to have a 3D printer, or it won't hurt to have one. And I got one. We talked about 3D printers a couple times on the show. Yeah, and I don't know if I've talked about mine, but I did end up building one from a kit. It's kind of a low-cost one, a version of one of the RepRap—RepRap Prusa i3 or Prusa i3. I don't actually know how you say that. And it's a—it's a variant of that. I'm enjoying it. It showed me a lot about that kind of stuff. I've had a good time. I printed a lot of things, some functional, some playful, and then kind of painted them. If you have little kids, it's kind of cool because they think anything you print—they think they call it the robot. So

0:28:41.027 --> 0:28:50.967
<v B>like, 'Daddy, I want to go downstairs and watch the robot.' And they just watch it kind of like zig and zag around. But then you do kind of get into these stages or I

0:28:50.967 --> 0:29:16.347
<v A>have a couple times where it requires a lot of—or because mine's a low-end one, I guess, or budget one, but I think the high-end ones do need this occasionally too. Needs like a lot of tuning to keep it in a good state. And so sometimes it gets like out of calibration or whatever, and you spend several like sessions where you kind of just want to go down and print something, but it's not working, and you're trying to like fix it. So you spend a fair amount of time doing

0:29:17.646 --> 0:29:21.224
<v B>that? Gotcha. Do you have one that you recommend because I've always wanted one?

0:29:21.375 --> 0:30:10.313
<v A>I mean, so the one I have has a specific set of problems that I felt were okay within my wheelhouse for me to save some money. So mine is the Folger Tech 2020 i3, which means that uses aluminum extrusion 20 millimeters by 20 millimeters, and it's the Prusa i3 variant. So it's relatively cheap, but the quality control isn't great, and the instructions, although adequate, you need to have been used to building kits of things—specifically hardware things—before or you'll probably be very confused. So like how to get it into kind of orthogonal conditions where all of the various pieces are aligned properly takes a fair bit of knowing how that should work, to know what to loosen and what to tighten and adjust, and

0:30:10.313 --> 0:30:13.215
<v B>can't even build IKEA furniture? Oh yeah. Then

0:30:13.215 --> 0:30:44.873
<v A>You do not want this one. Um, so then there are ones that are you know moving up the price scale, but like a lot of people recommend the LulzBot Taz. Um I've not used. I think they're at Taz 6 now. But that one seems pretty good, you know? You can look—there's a lot of communities on Reddit. The RepRap community is pretty big, and there's some a lot of clones from China and elsewhere that are varying levels of sophistication and goodness or badness, and it all depends on what you want to do with it and how hands-off or tinkering you want to be with.

0:30:46.172 --> 0:30:47.421
<v B>It gotcha, but in my mind,

0:30:47.421 --> 0:30:54.829
<v A>Half the fun is printing the upgrades for the machine. Like I've upgraded a lot of things on my machine, and that's I derive enjoyment from.

0:30:55.487 --> 0:30:59.335
<v B>That? Oh, I see. Like what's an example of an upgrade? You sure?

0:30:59.335 --> 0:32:00.996
<v A>So, oh, this is going to get really detailed and hard to explain in words, but there's the—in this style, the bed moves forward and backwards, but not left or right or up and down. So the okay piece of glass or PCB you know that you're printing on moves only forward and backwards. Then there's a set of screws that hang down from the top of the machine that the actual print head rides on and moves up and down, and then another motor to move it left and right. So that assembly can slide up and down on these screws, but the screws they ship with are this like cheap same thing you would use for like low-end bolts. They're not actually what you would typically use for a control system like that—a high quality screw. And so I switched out those screws to more high quality screws. They're called lead screws. Um, so that as it moves up, it does it more precisely, which means the prints are more even in each layer, and so you get a little less noise.

0:32:01.240 --> 0:32:02.987
<v B>Didn't 3D print the screw?

0:32:02.987 --> 0:32:27.878
<v A>No. So you buy the screw, but then how the screw connects to the side holder parts—I don't have the technical description, but like that needs to be re-3D printed because it uses a different nut than the original one. And so you 3D print that. I 3D printed like little feet that go under the bottom so that when it vibrates, it doesn't vibrate the table, so it's quieter. Um this.

0:32:28.580 --> 0:32:31.034
<v B>Is this sounds so fun? 3D printed?

0:32:31.034 --> 0:32:36.720
<v A>Like little holders to like you know route the cables. Um yeah, just like all sorts of little

0:32:37.260 --> 0:32:58.489
<v B>Things? Yeah. I mean, I've had so many like things I've wanted to 3D print, but I don't—I actually have access to a 3D printer now, but for a while I didn't have access to a 3D printer, and even like you know the Thomas the Train like wooden train tracks. Yeah, like if I had a 3D printer, I mean oh my gosh, like it would be so epic. Yeah. So

0:32:58.928 --> 0:33:29.742
<v A>I did print. Like there's a set of low polygon count Pokémon models that my kids love, so I've printed them. I don't even know how many now, like little Bulbasaur and Squirtles and Charmanders, so they love those, and themed with the Pokémon Go. Um and like I printed a lightsaber, so like the lightsaber hilt or whatever, and a bunch of pieces that was pretty cool. So I've printed a lot of things that kind of just work pretty seamlessly, and then I'm trying to get into kind of designing my own parts for various ideas that I have, so that's—that goes a little slower though.

0:33:32.847 --> 0:33:35.513
<v B>Very cool. All right. Talking about robotics? Robotics.

0:33:35.900 --> 0:33:44.423
<v A>So this will be a little different in the structure of how we talk about it because I didn't—we could talk about the history of robotics, but I don't know. Yeah.

0:33:44.423 --> 0:33:47.646
<v B>I mean, it's probably enormous and not that relevant, so.

0:33:47.865 --> 0:34:55.517
<v A>The reason why I find robotics interesting—and the little bit of work I've done with it from the hobbyist standpoint—is that it's a lot of systems that need to work together to kind of have a robot. And so we're going to kind of go through each of the or some of the various subsystems that make up a robot because a robot is different than just an application where it's a binary running on a computer. It is often many different applications; they need to do a variety of different things. And to be a roboticist, I guess you often have to know a huge spectrum of different areas of expertise because they all are needed for having a successful robot. So the first one that I—I guess everyone kind of thinks about, I'm not going to talk about since this is programming throwdown; we're going to talk about this as it applies to software. So we're not going to talk about things like mechanical design of the robot, but that is also a very interesting topic. Um so the first one is the things that move or control.

0:34:57.424 --> 0:36:29.359
<v A>Or interact with the world and the controls for them. So these are you know, you could think of what moves the robot. So most robots we think of move around the world in some way. So maybe it's wheels that are attached to motors, and those motors spin the wheels and move the robot forward, or you have a robot arm and it has actuators—little motors at each joint. It could be I'm trying to think of other things: treads for a tank-style robot. There's all sorts of different things about how do you move a robot? And then there's things about manipulating the world, like I have a little claw and I want to grasp the world, or I want to—I'm trying to think like things where you want to interact with something physically in your world versus just moving through it. And a lot of these have that in common: they're combined with what we're going to talk about next, sensors. But you have some sort of motor or an electromechanical muscle of some sort that's moving, and you need to control that. And so there's software that needs to be written to say if I want to move precisely from—you know, one millimeter forward, how do we do that? And there's kind of two approaches there, and there's a lot of software around this. But one is open loop; that's the easiest. So that is, I know that if I have a stepper motor which each time I kind of move the stepper motor forward, it moves a set number of degrees, so like 1.7 degrees forward. Um then this is.

0:36:29.359 --> 0:36:41.914
<v B>Like, I guess if you had a tire, yeah, and you know that if you rotate the tire 360 degrees, you know the radius of the tire, you can kind of guess pretty accurately how far you're going to.

0:36:41.948 --> 0:38:26.580
<v A>Go. So that's a great example. So if you're kind of like rolling forward on a tire, you wouldn't necessarily do that closed loop because there's a big problem which is as you roll forward the tire probably slips a little, and so at the end you don't exactly know how far forward you went. So even if you have an encoder on the wheel to see physically how much did the wheel move, you aren't able to measure like via the wheel itself; you aren't able to measure if it slipped at all. Okay? And so that—that would be kind of something you would do open loop most often. You would just kind of drive it and you would rely on some other sensor to tell you how far you went. But then you have closed loop. So closed loop is like a servo. So if you've ever used a servo of any sort before, you kind of tell it to go to a specific angle. Um so like I want to go to angle 90 and I want to go to angle 95, and it has circuitry inside of it that tries to keep it at that angle. So even if you go push on it, it'll try to go back to the set position. But there's software in a lot of these systems that does that; it's called closed loop. And this is where you get into stuff. If you've ever heard PID, which is like proportional integral differential or derivative control, so this is a way of keeping something at a set level. And this gets into control theory. And in closed loop, you're sending out a control signal for something to happen, and then you're measuring what happens back. And you could have all sorts of problems where you don't want to, but you're trying to go for a certain position and you overshoot it, and then you need to move back. And there's all sorts of math around how do you try to prevent overshoot? How do you try to prevent that like over time it stays very close to it. Um and so.

0:38:26.580 --> 0:38:33.779
<v B>Does this involve like calculating the gradient or something and like moving—moving like step-like adaptive gradient or something? Yeah. So this

0:38:33.914 --> 0:39:04.812
<v A>is like so there's different ways. So there's like, I said the PID loop. Other things you'll hear about sort of in this arena are like Kalman filters. Um start to come in can come into this. This isn't meant—we will probably later go into more topics. This is kind of giving you Google words that you can go search or maybe context if you've heard some of these words before, but this would be, you know, closed loop is trying to say how do I have a desired outcome and then how do I make sure I achieve that outcome in a good manner? Gotcha?

0:39:06.145 --> 0:39:13.160
<v B>That makes sense. So closed loop has to be something kind of simple like turning a rudder on a boat or.

0:39:13.160 --> 0:40:01.984
<v A>Yeah, holding a rudder at a specific position on the boat. Yeah, or holding a robot arm at a specific level, or even things like you know we were talking about before, like a 3D printer. So my 3D printer has like the nozzle that heats up the plastic you want to hold it at a very specific temperature, but that's not as simple as just setting an amount of current to flow through because as the room temperature changes, as plastic flows out—like cold plastic comes in and then hot plastic goes out—the temperature moves around a lot. And ideally you would like it to be very stable at a very specific temperature. And so there's a control loop where somebody in software is measuring from a thermometer the temperature of the piece of metal that is the nozzle and controlling the heater that heats up that piece of metal, and so there's actually a control loop running there to try to keep it at a very stable temperature. Okay?

0:40:02.760 --> 0:40:18.927
<v B>That makes sense. So do you have—it sounds like with well, with closed loop you just like someone else has kind of done it for you, but with open loop the kind of onus is on you? Like maybe you have a camera or something and you're the one who has to say I'm really close to the wall right now or something like?

0:40:19.382 --> 0:40:56.963
<v A>That. Yeah. So I mean open loop—so these are just yeah, it's kind of separate from actuators how do you control something? How do you move? And then these are various ways when you move things, kind of how are they moved, whether you do them in open loop or in a closed loop. Um so for things like sensors, there's a whole—a whole bunch of questions. So you could use a sensor to try to—you'll hear people say close the loop. So I moved, you know, I told my robot wheels to move forward, and we talked before about structure from motion, like I look at the camera and tried to guess how far forward did I move? To quote unquote, close the loop. So that even though I

0:40:56.963 --> 0:40:58.026
<v B>didn't measure anything.

0:40:58.026 --> 0:41:10.319
<v A>About the motor, I looked at the world around me and said the world shifted forward a foot. Therefore, like I know what I just did to the motor, if I do that again, I will most likely move forward one foot again.

0:41:12.353 --> 0:41:14.884
<v B>Oh, is that where the phrase 'closes the loop' came from?

0:41:15.019 --> 0:41:15.914
<v A>I—they're related. They're...

0:41:18.580 --> 0:41:20.318
<v A>Related. I don't know which one came first.

0:41:20.318 --> 0:41:27.060
<v B>That's interesting. Well, it's interesting. I never thought about, you know, every time I've said 'close the loop,' it's like, you know, talking to somebody or something. Yeah. So when you...

0:41:27.060 --> 0:41:36.130
<v A>Close the loop with a human, you did something and then something happened, and closing the loop means like getting feedback back so you know what to change next time. Yeah, that...

0:41:37.581 --> 0:41:50.828
<v B>makes sense. Yeah, it makes sense. So the camera—the camera gives you the feedback, could. Yeah, that yeah potentially could give you the feedback that then turns into more actions for the wheels that then changes the camera and so now you have a closed...

0:41:52.769 --> 0:43:51.855
<v A>loop. Yep. And so there's things like, you know, for sensors themselves. We'll talk about it in a second, but like you have a—often you'll have a camera and you want to point the camera in a specific direction. But if you think about, oh, like, you know, quadcopters are really popular now. These helicopters with four blades, but they kind of move and bounce around in the air. It would be ideal for some of them if you held the camera pointing at a very specific thing. And so how do you do that? You have a set of motors that are able to move the camera, but they need to monitor what the quadcopter is doing and kind of cancel that motion out. And so that's a closed-loop system—that gimbal system for trying to control that camera, and that is so that the sensor, the camera itself gets a good image. And so then there's a lot of work associated with sensors themselves. How? So we talked about a lot of things there for sensors, but someone still has to write the code to talk to these pieces of hardware and like read ultimately they're probably producing some electrical signal or the hardware itself is producing bytes that need to be read. But you need to interact with those pieces of hardware and make it into something that the rest of the system understands. So for a camera, that would be reading out a single frame off the camera; for an accelerometer, it would be, you know, configuring the range of sensitivity for the accelerometer and then reading out the current acceleration that you're experiencing. So there's a lot of work around how do you do that for the sensors? How do you read it in? How do you put it in a format that makes sense for the rest of your system? And then how do you do it at like a set interval, quickly enough so that you're not sometimes I read it a little early and sometimes I read it a little late because that can cause problems with some of the stuff we'll talk later. But a lot of things in a robotic system are assumed to be running at a very specific rate. So this is similar to like in a video game, you want it to run at whatever 60 frames per second, and so you want everything to kind of always be at that. And...

0:43:52.463 --> 0:44:15.885
<v A>if you had 60 frames in a second, but you had all 60 right at the beginning of the second, it would look very weird. So you actually want 60 evenly spaced frames, and so that's called jitter—how much time the time between frames, how often it does. And so when you're reading sensors, you're trying to kind of reduce jitter, make sure that the you're reading it at the set rate. There's a lot of work about that.

0:44:16.949 --> 0:46:01.759
<v B>as well. Gotcha. That makes sense. Yeah, a big part of robotics too is planning and autonomy. So one is—autonomy. So one is like teleoperated. This would be like I guess using a joystick and you know just when you press the trigger down, the helicopter blades turn faster or something like that. There's also just purely autonomous where you give it kind of very high-level instructions and someone's built all sorts of layers of—of I guess machine learning and different kinds of planning systems. So in other words, like the very top layer could say, 'You know, fly to this spot on a map and then fly back and land.' And so at that level you're—if you're doing any sort of machine learning there, you're probably not doing any machine learning there. It's probably a human putting in certain commands based on sorts of changes that they want to make in the world or things that they want to see in the world. So that's sort of like human-level decision making. Then when you go back—when you kind of go down in the stack, it would be things like there's usually some kind of state machine where it says, 'Okay, am I landing? Am I taking off? Am I flying to a destination? Am I, you know, do you know trying to take a picture or something?' I'm thinking of drones here, right. And at the bottom level are things like are kind of like a system for each of those states, like—you know, the drone is taking off. Here's sort of a bunch of logic to kind of handle the takeoff scenario and ditto for all the other kinds of scenarios.

0:46:03.565 --> 0:46:42.480
<v A>I think each of the different—if you think about subsystems in, for instance, like, you know, a quadcopter, you have something that's trying to keep the helicopter afloat, like don't crash. But then you have something else trying to say, 'You know, move forward.' So there's an interaction between like go forward and do it stably, like you don't want it, you know, kind of going crazy; you want it to go forward smoothly and deal with any kind of disturbances along that. And then as you said, there's something more which is like I'm trying to get from point A to point B, and so like what's the best path to get there?

0:46:42.480 --> 0:46:53.009
<v B>Another part of it is like supervised learning. And so what this is is, um, like what's a good example? Um, I guess this isn't.

0:46:53.009 --> 0:47:00.029
<v A>Should have done this as a tool of the show. I've been doing the Udacity Machine Learning class with Sebastian.

0:47:00.029 --> 0:47:02.526
<v B>Run the self-driving car one? Yeah.

0:47:02.526 --> 0:47:19.890
<v A>Yes. And he talks in there. So this is actually—I definitely recommend that. I've never really sat down and did a massively online class, but I finally did, and I did it with this one. And I cheated. I didn't really do the homework. I just like I just been watching all the videos. How are

0:47:20.211 --> 0:47:24.869
<v B>You going to do the puzzle contest if you can't even do the Udacity homework? Uh, so but I've

0:47:25.071 --> 0:48:32.605
<v A>been watching and I found it—you know, really a good, well-put-together series. Um, and so if you're interested in robotics, I definitely recommend it. And so the example they use there in supervised learning is that when you're driving an autonomous car, you want for instance to decide if the terrain you're currently driving on necessitates that you drive fast or slow. And so over time they collected a bunch of data when they were driving a car and looked at things like the accelerometer for how bumpy the road was, and I forget—they used something else as an example—uh, oh, the current gradient, like whether it was flat or steep or very steep. And so they recorded these various things while they were driving and produced a data set where the label was either they were driving fast or driving slow. And so supervised learning would be saying, giving that to a computer and then saying, 'Hey, next time I give you a current bumpiness and gradient, I want you to tell me if I should drive fast or slow.' But I give it a bunch of examples of what I did to supervise it and how to make that prediction.

0:48:33.449 --> 0:50:29.380
<v B>Right. And actually they did the same thing for AlphaGo, the world champion Go player. Um, they actually—you know, because if you imagine like in Go there could be actually many different ways to play really good Go, and trying to find all of them or trying to find one of them could be could be really, really hard. Uh, so what they did is they said let's take all of the games played by all of the world champions, and in the beginning when they're—when they just start learning instead of trying to play have the computer play Go against itself and get better that way, which is what they do later, but in the beginning they just say, 'Look, computer, this was a game played by two experts.' Um, the next time you see games like this, I want you to play as good as these experts do.' So, like in other words, take take these—this bank of games played by these experts and try to generalize it. And so this changes the objective function from, you know, 'Play the best possible game of Go' to just 'Do what these experts do,' which is much, much easier. And then that was sort of a scaffold. Once they have that, then the system is kind of already tuned to a certain spot of the search space. Um, so in other words, like to illustrate, like if all the experts in Go for some reason always place the first stone on the bottom left for some reason—like it's just a thing—then you can learn all sorts of cool strategies where you don't do that, but it's not going to help, especially if you're going second. So, uh, you might as well learn what the experts do and then optimize after that. And so the self-driving car is the same way. You can't just, you know, train a model and then have a self-driving car like go on version zero of the model just drive off a cliff, like, you know, be a disaster. So instead, you build this supervised model, and then you can even

0:50:29.380 --> 0:50:40.399
<v B>while you're driving, you know, see, 'Oh, what would the model do?' And if—and if you're going 45 and the model says I would go 130, 130 miles an hour, then, you know, something's like really busted.

0:50:41.547 --> 0:51:42.077
<v A>Yeah. And I think interesting, you talked about like levels, you know? First it's kind of remote control. Then you kind of move up. And if you think about like autonomous cars as an example—even though the end result you want a fully autonomous car where you just say, 'I want to go to the grocery store and it just takes you there,' you kind of as you're building up that system, you take it through various levels where initially you just want to test that you can kind of tell the car what to do and it does it. Then eventually you're kind of monitoring what it does, like allow it to do some stuff. So that would be like cruise control—like set the car in cruise control and it knows to just try to keep that speed. Then, you know, you're giving it a task: go the speed and stay in a lane. Then you're going like, 'Okay, now I want you to figure out how to change lanes on your own.' And then past that, it's like, 'I don't care how you do it. You pick the roads, you pick the lanes, you pick the speed. I just want to go from here to here.' And you kind of take it up through that level of sophistication, right? Yep.

0:51:44.254 --> 0:52:30.559
<v A>And that's something that we still haven't done with a lot of systems. Like we don't have a lot of fully autonomous systems. Even things like the drones you hear about being used for war aren't autonomous. And it's scary what will happen when they finally do go fully autonomous, but you don't tell them 'Protect this area,' or, you know, 'Go take this action.' They have some combination of humans telling them, you know, 'Fly this way,' and like, you know, get home, right? But like they aren't sitting in an area looking for something to do. We don't have robots that yet, or at least not commonplace where a robot kind of replaces a mall cop and there's just a robot, you know, sitting in the mall watching for bad behavior and then like setting off a siren if it sees someone doing something bad. Um yeah, exactly.

0:52:31.065 --> 0:53:34.650
<v B>I mean, there's this saying—there's this sort of like thought experiment, you know, if if a robot, if you have a robot made and the kids are like really hungry, what's to stop the robot made from like microwaving the cat? It's like it's like you need like all of those kind of really higher level things that involve sort of the fact that like you know different different—like the fact that like, uh, you know ants like have a different like level of feelings as as a as a cat. And so you could step on an ant; you can't step on a cat. Like these these things or you can't kill a cat. I guess these things are are like incredibly entrenched in like our psychology and like very difficult, and we haven't even like begun to, so it's to to sort of like crack um these problems. So yeah, as Patrick said, I mean because you're so much about 'Oh, you know, Skynet is coming,' things like that, and it's it's not like we're so far away from that. Yeah. Um and so

0:53:35.440 --> 0:54:06.220
<v A>That's where the machine learning I think comes in. Is we talked first about controls and motors, and then we talked about sensors. I mean these things are highly deterministic and highly straightforward part of robotics. And once you have them working, you can kind of have a remote-controlled robot, I guess. But the machine learning comes in when you start trying to say things which are a little more non-deterministic—there are many ways to accomplish it. And what Jason's indicating is exactly right: just because we have something which can do a relatively mundane task doesn't mean we're suddenly close to something that knows how to do all tasks.

0:54:06.220 --> 0:54:14.644
<v B>Yeah, exactly. Or even something that is self-aware, like that knows that it's doing a task and sort of what that means.

0:54:16.095 --> 0:55:23.160
<v A>Right. So then another something to consider with robotics is often you have—you may have many processors for a large robot in the system, all responsible for doing different things. Like one's responsible for collecting all the camera data, one's responsible for collecting the sensor data, another is responsible for route planning. And so all of these systems have to communicate with each other, and there needs to be—often they may not even be the same kinds of processors. Like some may be very small low-cost processors, some may be high-end fancy very good processors, and you need a common way for them to interact and communicate with each other. So that's something that as a robotist issue have to work on and debug. And then also sometimes you need a communication off of the robot. So how do you keep a log of what's happening? You call that telemetry. What if you want to talk to another robot, and the two robots should coordinate to do a task? Now you need a distributed algorithm for deciding like what to do with multiple robots. And this is where you get things like swarm robots and swarm intelligence, and that's another interesting exploration area of robotics.

0:55:23.160 --> 0:56:29.610
<v B>Yeah, I've seen a lot of—there was this paper that came out a long time. It's called Boids, and the whole idea was they studied a bunch of different birds. You know, this person was fascinated with how birds fly in like a V or different shapes. They're very geometric, and how difficult that must be from within the frame of reference of one of the birds to sort of understand how to orient itself. And what it found is if you have a few simple rules, you can actually get that kind of flocking kind of effect. I mean, the rules are very simple, like, you know, get a little bit away from the birds next to me but not too much away. It was kind of like a force-based, like a graph force-based system. So I think that that's a big part of it is understanding like when you have many different robots sort of how does that complex adaptive system work? And there's a lot of really interesting research.

0:56:30.218 --> 0:56:33.104
<v A>There. Yeah, so like emergent behavior and yeah.

0:56:33.374 --> 0:56:35.972
<v B>Right. Yeah, there's that's a—

0:56:35.972 --> 0:56:40.040
<v A>huge area of research and you know a very interesting thing to look at and understand.

0:56:40.040 --> 0:57:59.487
<v B>Yep. Another part of this is HCI—Human-Computer Interaction, and I think it's also called Human-Machine Interaction. And this is just about sort of how you interact with the machines around you. It's very—the name is very straightforward, but you know for example, you know the touchscreen is kind of one of these things that's gone in and out of vogue. I mean, I remember when there were touchscreen laptops, and then people realized or you know a lot of people realize it doesn't really make sense. And then there was the Newton where it was a phone like, you know, form factor, but it had a stylus. And now we have—we have the iPhone, you know, style, right? And so these are all just advances in HCI, and they can cause like radically different user behavior. Like if I have to pull out a stylus, then that adds friction to the experience. I might not do something quick like send a text message or check my email or something. And so it's just hugely important. And—it's kind of like that kind of gets right on the border of robotics because it involves a sensor and—and it involves kind of the outside world. Yeah, and I

0:58:01.309 --> 0:58:48.863
<v A>think the difference with robots than just like how do humans interact with machines is also robots move about in our world. It sounds a little weird, I guess, but humans perceive them out in the environment. And so you need to understand what are you trying? How do you want people to behave around the robot? Do you want them to ignore it? Do you want them to, you know, be friends with it? Right? These are questions that are still like very large open research projects. But things like the self-driving car—like what happens when you get into it and when you're sitting in it? Like how does it make you feel? That sounds really weird, but ultimately if you don't feel safe because of the way it's driving, even if the way it's driving is better than the way humans drive, you're probably gonna be really freaked out. So even

0:58:48.863 --> 0:58:51.782
<v B>if Elon Musk tells you everything's gonna be okay.

0:58:52.373 --> 0:59:12.825
<v A>so maybe they need like a little Elon Musk head to come up and say, 'Welcome to our car.' Right? But these are all things you have to think through if you have a machine out in the world. And then there was that movie about it, but I don't remember where the assistant on your phone and people kind of develop a bond with it and call it by name, and instead of saying it, they say he or she.

0:59:12.994 --> 0:59:18.765
<v B>Is it iRobot? Is that right? No, iRobot is a different one. Okay, I know what movie you're talking about, but I also forgot. I didn't

0:59:19.100 --> 1:00:00.740
<v A>watch it, but—yeah, basically this is a real thing that if people project emotions onto these or will how what are you wanting to evoke? And so this is things like when you call into a phone line for customer service, right? That they call that a robot. I didn't actually think about that until just now, but like I guess a phone answering robot. But they want you to efficiently get to where you are. And—but they need you to behave in a certain way to kind of get that. So they have to interact with you very specifically. And it's the same thing goes for robots: how should you put little eyes on the robot or not? What like people will react differently depending on what

1:00:00.740 --> 1:00:41.335
<v B>You do. So yeah, actually I saw something pretty awesome in the city, in San Francisco downtown San Francisco. I saw on a light pole this poster that said, you know, 'Gone Missing.' And it was like they took the template of, I guess if you lose your dog, most people just go into Google and type like 'I lost my dog,' and there's some Google Doc template because they all seem to look the same. And you know, it has little things where you could tear off the bottom and call the number. But it was a person's Roomba. Like I guess the battery ran out in their fence and the Roomba just went out of the backyard and went down the street or something. And it was like 'Lost Roomba? Like if you find him, please cuddle him.' Yeah, wait, that sounds

1:00:41.335 --> 1:00:43.005
<v A>Like it's just a joke. Um.

1:00:44.035 --> 1:00:52.827
<v B>I don't know. There was some—well, we'll see. We'll see. I think that, I think it was written in a funny way, but I think the person legit lost the Roomba.

1:00:54.447 --> 1:01:03.728
<v B>Yeah, I do know a lot of people call the Roomba like him or her. Like, or at least they have a name for the Roomba.

1:01:04.690 --> 1:01:57.407
<v A>So interesting. So then I was just to close out going to talk about various things where people hear about robotics. We already talked about self-driving cars, drones. You know, these are things, but also there's FIRST Robotics. So that, I think they have various degrees for middle school and high school students, and these are remote-controlled robots because at that level, I think there's some opportunity for them to perform some autonomous tasks, but um they're also remote controlled because autonomy is very hard. And then Robot Wars, which I've been watching, which is like I guess entertainment TV, and there are some of the systems we talk about, like control systems and stuff, but there isn't much sophistication in terms of autonomy, although a couple of the teams do talk about things that they've tried to make automatic. But there are also—oh, what is the name? The RoboCup? Is it where oh, Robo?

1:01:57.407 --> 1:01:58.268
<v B>Cup. Yeah, where?

1:01:58.268 --> 1:02:01.474
<v A>Robots play like a version of soccer, right? And they try to do

1:02:01.740 --> 1:02:38.481
<v B>autonomously. For people who don't know the RoboCup, the goal of the RoboCup is to have a fully autonomous robot team that can play the World Cup winners in 2050. And it's pretty audacious goal, but yeah, I mean they have—they tackle like every level of the problem. Has a competition like there's a competition for who can build the best like humanoid player, who can build the best like one-foot tall player. So on, so like there's a whole competition for who can build the best AI and like a pure virtual sandbox. Yeah, RoboCup is amazing, and it's

1:02:39.089 --> 1:02:57.820
<v A>an interesting problem, which is if the goal is simply to beat the World Cup team, do you have—like you still obviously probably have to obey the World Cup rules. So you can only have like 11 players, but do they have to be shaped like humans? I, you know, I don't—I don't know. Like some of the rules in soccer probably only make sense for humans.

1:02:58.394 --> 1:03:02.055
<v B>Yeah, they're shaped like ankle-destroying tiny robots, but even if you

1:03:03.034 --> 1:03:31.485
<v A>don't sell anything ridiculous like that. Like it just might be like very short stout barrels, right? Like maybe that turns out to be particularly optimal. But then now like the rules about using your hands or not like don't make a lot of sense. So I think the implication is to do it with humanoids, but it's actually a broader problem for just all of robotics. If you're designing a car assembling robot, it's all about function and very little about form. But if you're building something that's out there with people, you know, form starts to matter.

1:03:33.190 --> 1:04:51.422
<v B>A lot more. Yeah, right? It's actually like super interesting to read articles and other sources on sort of things which have taken like inspiration from the human form for no reason. Like the example they gave, which I don't know if I really agree with, they said like the drivers—the driver in a car sits on one side of the car, and I guess they were arguing it would be better to have the driver sit in the middle and have two people on either side, like have the car be a little bit wider. Like I don't know, I thought that's kind of weird. But their whole thing was like, oh, the human being is asymmetric on the inside because of your heart and other things, right? And symmetric on the outside. What? Yeah, they were trying to draw an analogy between the asymmetry of the inside of a human and the first designs of the car. And I don't know. Okay, yeah, that seemed pretty out there, but they had a number of other examples too, but I think it's kind of interesting, and I think over time people learn in the case of something that's purely functional, like a robot, you know, a car building robot or something, people eventually get over sort of their own human bias and learn like, oh, you actually don't need something that has an arm like a human or a human-looking hand. But if you're going

1:04:51.422 --> 1:05:16.009
<v A>To have a robot made in your house, it needs to open doors and cabinets. And obviously those things are meant for human hands to grasp. That's true. And so then you're kind of forcing the robot to have certain features which even if you don't otherwise intend, it needs to be sort of human-like height to be able to reach, for instance, tall cabinets have sort of human-like grippers so that it can manipulate things designed for humans to open, or you're forced.

1:05:16.364 --> 1:05:18.962
<v B>to like retrofit everything in your house for

1:05:18.962 --> 1:05:27.640
<v A>it wouldn't be good for both humans and robots. It would be good for either humans or robots unless the robots also look like humans or the humans look like the robots.

1:05:27.640 --> 1:05:37.913
<v B>Yeah, or maybe like the drawer is like a hybrid where it has a little hole that the robot can, you know, like stick something in the hole so that they have leverage. I don't know, but

1:05:37.913 --> 1:05:40.427
<v A>then it's then the adoption problem is hard.

1:05:41.102 --> 1:05:52.645
<v B>Yeah, I do think I'm surprised that by now there aren't self-cleaning toilets where like the toilet has just something in it that just you know like goes around the bowl and like cleans it. Just

1:05:52.645 --> 1:06:05.014
<v A>seems like it would be something that would break a lot though. And really like a toilet is a very simple piece of equipment. Like if you complicate it with adding like a self-cleaning function, I don't know.

1:06:07.427 --> 1:06:09.604
<v B>don't know. I mean, we're off of a software topic.

1:06:10.482 --> 1:06:14.780
<v A>Yeah, I mean, I don't know what the control system would be for determining when to clean a toilet.

1:06:16.304 --> 1:06:18.531
<v A>Yeah, I actually do. I just don't want to think about

1:06:18.649 --> 1:06:31.154
<v B>it. Well, it's kind of like a Roomba where if you clean, like the Roomba is not the best at the best vacuum. Like it's not better than a human at vacuuming accurately, but it just runs so many times that eventually it works. Okay?

1:06:32.639 --> 1:06:35.507
<v A>Well, that's all I've got for robotics for.

1:06:37.077 --> 1:07:11.552
<v B>Now cool. Yeah, um if you have any, if you've done any cool robotics work, um let us know. Post on Facebook. Um Facebook seems to be taking over in terms of number of people. Um I'm obviously going to keep posting the show on all of them: Facebook, Twitter, G+ uh and now LinkedIn. A few people asked me to post on LinkedIn, so I've done that. But yeah, if you, if you have a, you know, a toilet cleaning robot that you want to show everyone, post it on Facebook, and we could talk about it. All right? Well.

1:07:13.324 --> 1:07:14.354
<v A>Till next time. Catch.

1:07:15.282 --> 1:07:46.680
<v B>you guys later the intro music is axo by binar pilot programming throwdown is distributed under a creative commons attribution share alike 2.0 license you're free to share copy distribute transmit the work to remix adapt the work but you must provide attribution uh to uh patrick and i and uh share alike in kind processing

