1 00:00:00,000 --> 00:00:05,940 Good morning! My name is Katie Levinson and this is all the ways you are doing robots wrong. 2 00:00:14,520 --> 00:00:21,140 I can't operate a computer. Too much hangover. All right. So who am I? I have done four 3 00:00:21,140 --> 00:00:25,200 years of competitive robotics. I've done six seasons of coaching. Five of them were 4 00:00:25,200 --> 00:00:29,620 first year teams and first year teams have extra excitement with retardation. Two years 5 00:00:29,620 --> 00:00:35,380 at NASA. You can read. Fuck this. I am currently the director of development at Hacker Dojo, 6 00:00:35,500 --> 00:00:39,700 which is kind of being shut down by the city of Mountain View because they are anti-awesome. 7 00:00:41,260 --> 00:00:46,980 So if you would care, like, to help us in reopening our building, we'd really appreciate 8 00:00:46,980 --> 00:00:51,560 that. And my phone makes a cha-ching noise whenever you donate at hackerdojo.com slash 9 00:00:51,560 --> 00:00:56,900 Kickstarter and I will drink when that happens. So I'm sorry. 10 00:00:59,620 --> 00:01:05,680 And if I can find more alcohol I would love to give you a shot, too. And then my best 11 00:01:05,680 --> 00:01:10,220 qualification is the experience of doing shit wrong. I'm sure, as you know, all DEF CON speakers 12 00:01:10,220 --> 00:01:17,340 are only accepted if they are exceptionally qualified. And I feel like I've done my homework 13 00:01:17,340 --> 00:01:25,560 in this department. Speaking of which, this is the trip to Vegas. And this is why. This is a 14 00:01:25,560 --> 00:01:29,600 photo of my grandma in 1937. She was 19 and graduating from Rice University. She was a 15 00:01:29,620 --> 00:01:37,180 for math. And she's going to die really soon. So I figured I'd, you know, kind of do a nice 16 00:01:37,180 --> 00:01:43,500 thing. She's, yeah. And I got a lot of shit last year for doing a talk in a dress. And so this 17 00:01:43,500 --> 00:01:54,800 year I wore a fancier dress. But I'd like to take a second to remind this community. The 18 00:01:54,800 --> 00:01:59,100 reason I do this is to remind this community what we spent so many years teaching our bosses 19 00:01:59,100 --> 00:02:05,840 and our, like, you know, feds and all of those people is that it doesn't matter how you dress or 20 00:02:05,840 --> 00:02:09,680 do your hair or what you do on the weekends. What matters is you are fucking good at your job. 21 00:02:10,440 --> 00:02:16,740 And the rest of it is all water under the bridge. So that will be the end of my stupid idealism 22 00:02:16,740 --> 00:02:21,960 for the day. If you have a question, come on up and ask it. I'd like this to be a nice kind of 23 00:02:21,960 --> 00:02:27,600 casual, light talk. And if we run out of time, I will have to ignore you and then you can 24 00:02:27,600 --> 00:02:28,580 hassle me in Q&A. 25 00:02:30,300 --> 00:02:34,580 But we're going to go through a lot of topic really fast. And so it would be easier if you 26 00:02:34,580 --> 00:02:39,540 just stop me and ask your question. And there are a lot of bright lights preventing me from 27 00:02:39,540 --> 00:02:44,440 seeing that far into the audience. So please feel free to shout. I may regret saying that. 28 00:02:44,860 --> 00:02:50,540 All right. Outline. Input is hard. Output is hard. I fucked up last year. And here are some 29 00:02:50,540 --> 00:02:58,640 bad ideas. Input is hard. All right. The infrared. Infrared is a type of sensor you use on 30 00:02:59,100 --> 00:03:04,540 robots. It works with a laser. Lasers are sick. So basically you send out an infrared signal and 31 00:03:04,540 --> 00:03:13,480 it bounces back off the target and comes back and you measure that distance. And pew, pew. So it's 32 00:03:13,480 --> 00:03:17,800 really bad with mirrors. Because mirrors are reflective and shiny and things don't bounce 33 00:03:17,800 --> 00:03:26,360 quite right and you get kind of vague, weird shit. And these are the fucking bane of your 34 00:03:26,360 --> 00:03:33,420 existence. Because most cameras have an infrared sensor which determines the focusing length of 35 00:03:33,420 --> 00:03:37,800 the camera. And so I can't tell you how many teams I've seen that like, you know, all those 36 00:03:37,800 --> 00:03:40,980 little news clips are like, oh, it works great when the camera is not rolling. It literally 37 00:03:40,980 --> 00:03:44,720 works when the camera is not rolling because the camera is bathing the robot in infrared 38 00:03:44,720 --> 00:03:56,340 light. So, yeah. Bad. This is actually a problem that I think is really, really bad. And 39 00:03:56,360 --> 00:04:05,920 it's a problem for normal cameras as well. The solution is, yeah! Sunglasses. Yes. Thank 40 00:04:05,920 --> 00:04:11,480 you, sir. So you can put sunglasses on your robot and it will filter out the infrared light. 41 00:04:11,640 --> 00:04:18,960 And that's fucking phenomenal. And so that's great. Don't do it on your infrared sensor or 42 00:04:18,960 --> 00:04:24,800 you're going to detect the back of your glasses. And the great thing about this is it's not 43 00:04:24,800 --> 00:04:29,340 entirely obvious because infrared sensors have a minimum distance. And then, like, past that, 44 00:04:29,440 --> 00:04:34,740 it's like, fuck all. So it's going to come out as like, oh, you're about 200 meters away. And 45 00:04:34,740 --> 00:04:39,280 you're like, what, can you not see the wall? What the hell? So read the specs of your infrared 46 00:04:39,280 --> 00:04:44,180 sensors and put it in the range that it's supposed to detect. Rocket science. I know, right? 47 00:04:45,540 --> 00:04:49,900 This is an ultrasonic range finder that's being ‑‑ this little thing that looks like a ‑‑ 48 00:04:50,420 --> 00:04:54,780 people always identify it as the robot's head. Basically, noise control. It's a device that 49 00:04:54,780 --> 00:04:59,280 comes out of one and bounces off the wall and comes back into the other. And this works kind of 50 00:04:59,280 --> 00:05:06,520 like sonar. It's pretty sick. This is my friend's robot. He made tons of money on Kickstarter 51 00:05:06,520 --> 00:05:13,580 because, fuck him. It's called hexi, if anyone ‑‑ they're really cool, actually. 52 00:05:14,620 --> 00:05:21,540 They're bad with fuzzy things. Because fuzzy things don't reflect sound quite right. So you 53 00:05:21,540 --> 00:05:24,760 can actually put two of these together and then this will detect the infrared light. And then, 54 00:05:24,760 --> 00:05:28,240 like, the mirror things and the ultrasonic range finder ‑‑ sorry, and the infrared 55 00:05:28,240 --> 00:05:34,380 mechanism will detect the fuzzy things. And that's pretty pimp. This is straight vodka. 56 00:05:34,680 --> 00:05:44,480 That's cool. Fuck yeah, DEF CON. Okay. Oh, this is a puppy. So I talk fast. And so when we 57 00:05:44,480 --> 00:05:49,740 have a new idea, I'm going to show you an adorable picture. Because that's a great way to 58 00:05:50,940 --> 00:05:54,740 transition. Because I talk too fast and we need a break for ideas. So I'm going to show you a 59 00:05:54,740 --> 00:06:01,940 picture. All right. So perception of reality is hard shit. Like, even for humans, it's not that 60 00:06:01,940 --> 00:06:11,120 bad to fuck up. And for robots, this is ‑‑ this is pretty difficult. So this is our robot. And 61 00:06:11,120 --> 00:06:15,720 it's near the wall. And it would like to measure how far it is from the wall. So it's always 62 00:06:15,720 --> 00:06:19,780 measuring, like, how far am I right now? And then I'll take, like ‑‑ I'll know that. And 63 00:06:19,780 --> 00:06:24,720 then I'll know my velocity. But the thing is, is your sensors aren't perfect. And so it's not a 64 00:06:24,720 --> 00:06:33,060 your measurement is going to vary by, you know, a couple inches or so and you're sampling 65 00:06:33,060 --> 00:06:37,480 that, you know, kill hertz range and it looks like you're oscillating at 200 miles per hour 66 00:06:38,060 --> 00:06:45,520 away from the wall. So you want to take your raw sensor measure with a grain of salt, go to 67 00:06:45,520 --> 00:06:54,060 Wikipedia, there's tons of shit on this, but just don't take it raw is kind of the big takeaway 68 00:06:54,060 --> 00:07:03,040 message here. Ah, so speaking of like fear and loathing in Las Vegas, the walls bend. And this 69 00:07:03,040 --> 00:07:07,880 is actually really kind of trippy the first time you see it. So you're shining a little laser into 70 00:07:07,880 --> 00:07:16,340 that corner and the corners are doing one of these things. And that's like, whoa. And why does it 71 00:07:16,340 --> 00:07:22,160 do that? It's because the little arrows indicate the thing coming in and as you can see it 72 00:07:22,160 --> 00:07:24,040 bounces its way down the corner. And it's like, whoa. And it's like, whoa. And it's like, whoa. 73 00:07:24,040 --> 00:07:26,020 And there's this thing that absorption of the light in the honor and then comes back which makes 74 00:07:26,020 --> 00:07:32,180 the end of the corner look farther away and so you get this like weird, all curvy shit. Um, there 75 00:07:32,180 --> 00:07:37,180 are a bunch of ways to fix this. The dumbest one is to assume that all of your walls are 76 00:07:37,180 --> 00:07:45,460 square. Um, and that isn't too terrible of an assumption. Um, there have been other tons of ways 77 00:07:45,460 --> 00:07:49,240 I've seen people, they look at the ceiling and they, like, use those little lights, like they 78 00:07:49,240 --> 00:07:53,000 know a light is supposed to be every couple ceiling tiles, so they, like, measure out how the room 79 00:07:53,000 --> 00:07:59,000 warps. There are other people who basically do a 360 scan and then they assume, like, I know 80 00:07:59,000 --> 00:08:02,360 you don't think I'm the whole way around, but I am. So we're going to assume that all these 81 00:08:02,360 --> 00:08:07,020 points I found are points and then I have a spring which represents my confidence in that 82 00:08:07,020 --> 00:08:11,580 point and then you assume that, like, the first point equals the last point and you let the 83 00:08:11,580 --> 00:08:20,240 springs ‑‑ it's really actually cool to visualize ‑‑ what is it? Crap. OpenCV. OpenCV 84 00:08:20,240 --> 00:08:24,040 has a great library that does this and it's really cool to watch visualization because it's 85 00:08:24,040 --> 00:08:28,420 like, vroom, vroom, vroom, and it snaps together and actually looks like a room. It's really 86 00:08:28,420 --> 00:08:35,000 sick. And yeah, that's awesome. This is the only movie where Keanu Reeves was, like, 87 00:08:35,000 --> 00:08:45,500 appropriately cast. I fucking love it. Okay. Lidar is awesome and expensive and I want to fix 88 00:08:45,500 --> 00:08:49,140 that second bit because right now the only people who can afford Lidar are the military and 89 00:08:49,140 --> 00:08:50,220 so, like, Derpy is the only one who can afford it. So, like, I'm going to go ahead and 90 00:08:50,220 --> 00:08:55,120 surpass Lidar. It's, like, three grand whereas, like, people who have developed them privately 91 00:08:55,120 --> 00:09:00,540 put them on stupid robots no one wants to buy for, like, $400. It's, like, fuck. Hey! Thank 92 00:09:00,540 --> 00:09:10,900 you, someone, for donating. I will pour you a drink later, whoever that is. So, yeah. 93 00:09:11,060 --> 00:09:18,660 So we want to fix that second bit where Lidars are really expensive. There's some really cool 94 00:09:18,660 --> 00:09:23,460 open source work which could bring them down to, like, $30. And if you're interested in making the 95 00:09:23,460 --> 00:09:29,020 world more awesome and full of robots, talk to me in Q&A. All right. This is one of those 96 00:09:29,020 --> 00:09:33,360 expectations versus reality. So you can see at the top our little green shifting into blue 97 00:09:33,360 --> 00:09:37,120 thing is our range finder. And you're like, oh, look, I'm going to scan the wall and it's going 98 00:09:37,120 --> 00:09:42,460 to be fucking awesome as I drive my robot along. And what you're really doing is you're scanning 99 00:09:42,460 --> 00:09:46,660 while you're moving and you're actually taking the sampling of the wall in three different 100 00:09:46,660 --> 00:09:55,240 places. And so it looks like your wall is like this. And that's a problem. So you can sit still 101 00:09:55,240 --> 00:10:00,180 while you scan. You can do math for how fast you're going. You can do lots of things. But the 102 00:10:00,180 --> 00:10:05,980 takeaway here is don't use your data raw. There's a little bit of thought that has to go into 103 00:10:05,980 --> 00:10:12,440 this. Alan, this makes sad robot. Sad robot is sad. So, I'm going to show you a little bit of 104 00:10:12,460 --> 00:10:16,760 this. Oh, and then you can do this in 3D. What you can do is you can set up a whole array of 105 00:10:16,760 --> 00:10:22,180 little dudes along the bottom and then you just scan it up and down. I actually met like a crazy 106 00:10:22,180 --> 00:10:26,260 lady at an interview I had. She was in like HR. And she was like, yes, these are the yes, 107 00:10:26,260 --> 00:10:30,360 yeses and the no, nos. And it's because the ones that scan this way are the yes, yeses and the 108 00:10:30,360 --> 00:10:37,380 ones that scan this way are the no, nos. So these are used frequently with LIDAR. It's very 109 00:10:37,380 --> 00:10:42,360 rare to have a full 3D field LIDAR because it's fucking expensive. And so you 110 00:10:42,360 --> 00:10:49,560 can have, you can get a good floor level, but the scans will come in and you have to do the math to 111 00:10:49,560 --> 00:11:00,140 pull the scan. Hey, thank you, someone. You have to do the scans in 3D. So that's how 112 00:11:00,140 --> 00:11:10,000 that is. Oh, compasses. Compasses work on magnetic fields. Motors involve rotating magnets. 113 00:11:12,360 --> 00:11:19,020 So don't mount your compass next to your motor. That will get very exciting, very fast. 114 00:11:19,200 --> 00:11:23,340 There are actually a number of sensors which are very sensitive to electromagnetic 115 00:11:24,000 --> 00:11:31,540 interference. Certain variants of gyros, certain variants of accelerometers. So read your 116 00:11:31,540 --> 00:11:36,440 data sheet or at least understand what the fuck you're doing. Or, you know, if something's 117 00:11:36,440 --> 00:11:42,340 really not working, just move it away from the motors and test it, just when in doubt. This is a kitty! Yes! 118 00:11:44,240 --> 00:11:50,800 Kittens! All right. Next item. Output is also hard shit. All right. This is a little kid 119 00:11:50,800 --> 00:11:54,560 waving. Robots like to wave, too, but it's not because they're happy to see you. It's because 120 00:11:54,560 --> 00:12:11,200 they're retarded. So I'm not, anyways. Look at this. Move it right along. So this is, the 121 00:12:11,200 --> 00:12:15,840 concept here is a PID. P stands for proportion, I stands for integration, D stands for 122 00:12:15,840 --> 00:12:21,560 derivative. So the proportion is how close you are to your target, the proportion of that. The 123 00:12:21,560 --> 00:12:25,880 integral is you take an integral of how far away you are, then that's a number. And then the 124 00:12:25,880 --> 00:12:32,460 derivative is how fast the distance to your target is changing. And so what you do is you slap a 125 00:12:32,460 --> 00:12:39,680 constant on each of these and then you combine them for your target output speed. And sometimes 126 00:12:41,520 --> 00:12:46,400 this is kind of like big O-ish notation, like the scaling of it doesn't matter. The only 127 00:12:46,400 --> 00:12:52,500 reasons A, B, and C matter is relative to each other. So you can't make them all 400 and have 128 00:12:52,500 --> 00:13:01,400 it be fucking magic. I'm sorry. It's not how science works. So this is a proportional term. So 129 00:13:01,400 --> 00:13:06,340 it goes, this is a horrendous graph. I'm really sorry. I couldn't find a better one. So the 130 00:13:06,340 --> 00:13:11,180 green line is the normal, and then the black is if you lower the proportional term, the 131 00:13:11,180 --> 00:13:17,040 red is if you raise the proportional term, and you can see that this actually, it doesn't, it 132 00:13:17,040 --> 00:13:22,300 doesn't, and then the graphs represent like how close it is to the blue line. So over time you 133 00:13:22,300 --> 00:13:26,120 can see this actually levels out pretty quickly to its target, but it doesn't rise particularly 134 00:13:26,120 --> 00:13:36,540 fast. And when you, it is, hey, thank you. It doesn't rise particularly fast. So like 135 00:13:36,540 --> 00:13:41,160 compare it to like integral, which rises much faster as, as, as, as, as, as, as, as, as, as, 136 00:13:41,160 --> 00:13:49,520 as the term increases. So it rises slower. Sorry, it rises faster because red is more, God, 137 00:13:49,700 --> 00:13:56,260 this is an awful fucking. No, it rises faster. I can read. So it rises much faster with the 138 00:13:56,260 --> 00:14:02,320 integral term, but like it's going to continue to do like the itty bitty waves for longer. And 139 00:14:02,320 --> 00:14:07,980 then this is a derivative term, which rises wicked fucking slow, but stabilizes really fast. 140 00:14:08,260 --> 00:14:11,140 And so you're basically combining these two together. And so you can see that you have a lot of 141 00:14:11,140 --> 00:14:16,920 get the arm to do approximately what you want to do because in reality the arm has mass 142 00:14:16,920 --> 00:14:22,120 momentum. When you're like go to specifically like this particular degree, the momentum will 143 00:14:22,120 --> 00:14:26,640 cause it to overshoot and then it will go back and then it will go forward and then it will 144 00:14:26,640 --> 00:14:34,220 go back. And like that's why robots wave at you. They're just like. So these are ways 145 00:14:34,220 --> 00:14:39,120 that you slow down the robot so that it stops twitching on you. The other thing you can do 146 00:14:39,120 --> 00:14:43,960 which is really dirt is what your thermostat does is use a dead band which is the oh fuck it 147 00:14:43,960 --> 00:14:51,700 close enough band. And if you are lazy, that's a great way to start debugging. The upside of 148 00:14:51,700 --> 00:14:57,440 doing shit like this is if you load up the arm without any code at all, it will resist the 149 00:14:57,440 --> 00:15:02,060 load and continue to try to be in that position. You can lean on it, you can push on it, and 150 00:15:02,060 --> 00:15:06,540 the robot will actually gear up the motors to resist you without you writing code which is 151 00:15:06,540 --> 00:15:09,100 awesome. But it's awesome because it can actually work on you. It can work on you as well. 152 00:15:09,100 --> 00:15:18,360 beginning of the robot resistance, so beware. All right. This is a magic fucking table for 153 00:15:18,360 --> 00:15:23,100 Wikipedia. So don't remember anything I said if you're really hungover. And look at this 154 00:15:23,100 --> 00:15:28,740 table on Wikipedia for pig controllers. And if your shit isn't doing it, increase the term 155 00:15:28,740 --> 00:15:36,680 that relates to the problem you're having. Because science is complicated, it's ask the 156 00:15:36,680 --> 00:15:44,860 clock in the morning, and here we are. So velocity control. So the integral doesn't really 157 00:15:44,860 --> 00:15:49,420 work when you're trying to set a target velocity, so just fucking drop it, set it to zero, and 158 00:15:49,420 --> 00:15:56,280 then you can use the P and the D. Thank you, someone. I appreciate you. This is going to get a 159 00:15:56,280 --> 00:16:06,020 lot of it. This is straight vodka. God. Jesus Christ. I don't know what I'm doing. 160 00:16:06,680 --> 00:16:13,560 At least I had a mixer last year. All right. So set the eye target to zero, and then just set your 161 00:16:13,560 --> 00:16:19,040 velocity, and this is like an okay way to set velocity. You're going to need a feedback loop, so 162 00:16:19,040 --> 00:16:24,360 put like maybe encoders on your wheels. I don't want to go too much into stuff from last year, 163 00:16:24,400 --> 00:16:28,220 because I know that some people saw the talk from last year, but the slides are all online if 164 00:16:28,220 --> 00:16:36,660 you search my name and the word DEF CON. Ah! This is a cute, adorable photo of a goon's son. So I'm 165 00:16:36,680 --> 00:16:44,660 fixing a Netgear router. So this is our puppy photo just as we transition. Servos. Servos are 166 00:16:44,660 --> 00:16:50,360 limited to just one rotation, but servos have a lot of software actually already in them. So like 167 00:16:50,360 --> 00:16:55,940 you just set a position between zero and 255, and it just goes. It's fucking magic. There's 168 00:16:55,940 --> 00:17:00,340 some like physics behind it. There's some applications, like they aren't just interchangeable 169 00:17:00,340 --> 00:17:06,000 for motors, but they're pretty cool, and programming servos is wicked simple. I'm going to 170 00:17:06,680 --> 00:17:11,260 give you a few examples. Pneumatics are cool. They use air, obviously. They're an open air 171 00:17:11,260 --> 00:17:17,260 system, and you can't really stop the pneumatic shaft halfway, like you can spend a lot of money, 172 00:17:17,400 --> 00:17:21,240 and they have special ones with like magnetic positions that are between open and close, but 173 00:17:21,240 --> 00:17:26,980 like you and me and mere mortals, like pneumatics are up or they're down, and that's just how they 174 00:17:26,980 --> 00:17:32,480 are. You need a pump on there, or you need a big reserve tank, and if you run out of the reserve 175 00:17:36,680 --> 00:17:42,880 then that's, then your pneumatics don't work anymore. And if you decide to put a pump on 176 00:17:42,880 --> 00:17:49,220 there, then you're really and your battery life goes in the toilet. Consider 177 00:17:49,220 --> 00:18:02,020 that. Hydraulics are so fucking messy when you break them. So have fun. But the good 178 00:18:02,020 --> 00:18:05,980 thing about it is an inch of non-compressible fluid equals an inch of movement and you have 179 00:18:05,980 --> 00:18:11,200 much more granular control. And it is a closed system. You can't just pump it out in the air 180 00:18:11,200 --> 00:18:15,320 and pull more in and expect it. You're going to carry the entirety of your hydraulic fluid 181 00:18:15,320 --> 00:18:24,260 with you, the entirety of your whatever the hell you're doing. Ah, this is Casey's crotch. So 182 00:18:24,260 --> 00:18:33,460 cool trick. Not involving Casey's crotch. Cool trick is so let's say that you're 183 00:18:33,460 --> 00:18:35,960 debugging an infrared circuit and your light doesn't work. And you're going to say, oh, I'm 184 00:18:35,980 --> 00:18:40,580 work? I don't fucking know. And you can really smash your head against the wall with this. 185 00:18:41,380 --> 00:18:46,860 Most camera phones don't have a good IR filter on them because they're not like yeah with 186 00:18:46,860 --> 00:18:52,960 like the sunglasses. So you can hold up the circuit when you think it should be lit with 187 00:18:52,960 --> 00:18:58,760 your camera phone and see if the circuit is blinking. And this is like, I mean most of us 188 00:18:58,760 --> 00:19:03,440 carry camera phones in our pockets. This is a really easy way to debug an infrared circuit 189 00:19:03,440 --> 00:19:10,120 before my sensors aren't working. Is the thing even lighting up? Check that your camera 190 00:19:10,120 --> 00:19:16,560 phone is shit and doesn't have an IR filter before you get angry. A great way to do this is 191 00:19:16,560 --> 00:19:22,940 I tested this last night, is those little therapy keyboards on that TV thing in the real hotel 192 00:19:22,940 --> 00:19:27,460 rooms, those work on infrared. TV remotes work on infrared. All kinds of shit works on 193 00:19:27,460 --> 00:19:33,360 infrared. You can even just put an LED into a bench power supply with a resistor and just 194 00:19:33,440 --> 00:19:38,360 light that shit up. But do check because camera phones are getting better and better and 195 00:19:38,360 --> 00:19:42,200 better and better and they're starting to use IR filters and I don't know what I'm going to do 196 00:19:42,200 --> 00:19:52,800 with myself. So cool debugging trick. This is a polar bear. It's so cute. Ah, that vodka. 197 00:19:53,400 --> 00:20:03,420 Ah. Fuck it. That's still straight vodka. Correction please. I'm not going to tell you 198 00:20:03,440 --> 00:20:13,540 some last year. This is some shit I did wrong. Threaded bolts. How do they work? Wrong. Okay. 199 00:20:13,860 --> 00:20:19,640 This, you're just going to rip the head off the bolt or rip the, oh, my God, I forgot this word 200 00:20:19,640 --> 00:20:26,340 last year, too. What's the twirly? Threads. Yeah. All right. You're going to rip the threads 201 00:20:26,340 --> 00:20:32,820 off your bolt. That would suck. Don't do that. This is a machine that does nothing but bend bolts. 202 00:20:35,680 --> 00:20:45,120 Don't do this either. This is sometimes actually okay if you go out and buy expensive special 203 00:20:45,120 --> 00:20:50,820 bolts that are made for sheer loads. They do make them. Thank you to all you lovely people who 204 00:20:50,820 --> 00:20:57,400 sent me angry e‑ mails. Now I've corrected it. Awesome. This is still the right way in 205 00:20:57,400 --> 00:21:03,420 general. You're actually not relying on the bolts for the holding force but instead you're 206 00:21:03,420 --> 00:21:07,500 holding two pieces of metal together and relying on the static friction to be your primary 207 00:21:07,500 --> 00:21:13,780 holding force. Because bolts are zinc-plated shits. And you don't want to rely on them. 208 00:21:14,820 --> 00:21:21,440 Four bar linkages, these things are pimp. So let's imagine that like you just can't mount a 209 00:21:21,440 --> 00:21:25,700 big-ass pneumatic on the front where it's going to run into everybody, but you need things to go 210 00:21:25,700 --> 00:21:29,680 up and around and back. So what you can actually do is imagine you're either driving the 211 00:21:29,680 --> 00:21:34,200 orange linkage or you put a motor on the orange bolt and you're actually getting a very 212 00:21:34,200 --> 00:21:40,480 complicated motion out of that little red ball at the top. That normally wouldn't be possible 213 00:21:40,480 --> 00:21:49,060 without a lot of fucking effort. Does everyone understand this slide? Yay! So if you wanted to 214 00:21:49,060 --> 00:21:54,500 make a motion like this, you would be like holy balls, I need two motors with two 215 00:21:54,500 --> 00:21:59,140 dimensions and a lot of code to make sure it never goes out of these things because I want my 216 00:21:59,140 --> 00:21:59,660 little red balls. It's not the only way to do it. It's the only way to do it. And if you 217 00:21:59,660 --> 00:22:05,080 thing on the top to go exactly this track, and I go, wrong, bitches! Check that shit out! 218 00:22:08,680 --> 00:22:13,980 Four bar linkages are amazing! Like steampunk kids shit themselves over this. 219 00:22:18,680 --> 00:22:29,480 So, yeah. These things are really awesome. And there's all kinds of shit you can do here. 220 00:22:29,560 --> 00:22:29,640 So, yeah. These things are really awesome. And there's all kinds of shit you can do here. 221 00:22:29,660 --> 00:22:33,540 Here you're transferring, if you assume that that circle represents a motor that's driving that 222 00:22:33,540 --> 00:22:38,800 around, you're translating a, like, pretty rotational motion into a semi-linear motion. 223 00:22:39,160 --> 00:22:45,940 That's really pimp. Linear motions are hard shit. I hate pneumatics. I hate hydraulics. 224 00:22:45,980 --> 00:22:50,880 They're messy and they're awful and they're and, like, just, like, this is amazing. 225 00:22:51,380 --> 00:22:57,960 Like, I could do a whole, like, 50 minutes on four bar linkages and you guys should go look 226 00:22:57,960 --> 00:22:59,640 this shit up on Wikipedia. And, like, you guys should go look this shit up on Wikipedia. 227 00:22:59,640 --> 00:23:03,580 And a bunch of mathematicians went in there and made that look like intimidating shit, but it's 228 00:23:03,580 --> 00:23:09,600 not. If nothing else, we, like, we never did math for ours. We would always just take out 229 00:23:09,600 --> 00:23:13,720 cardboard and push pins and just be, like, is it working now? Like, you know. 230 00:23:15,220 --> 00:23:20,520 And once you get it right, you just tap it out in metal. Like, you know. But so think about this. 231 00:23:20,580 --> 00:23:26,020 Before you start doing, if you have a motion, and also you can change orientations here. So, 232 00:23:26,040 --> 00:23:29,580 like, let's say you have, like, I'm a little claw here. I'm a little claw here. Okay. 233 00:23:30,680 --> 00:23:34,540 And you want to go here and then you want it to be up here and rotated. You can also do 234 00:23:34,540 --> 00:23:40,880 rotations by having this part of the claw, a bolt here and a bolt here. You can have, like, the 235 00:23:40,880 --> 00:23:47,220 claw, like, rotate as part of it. It's really cool. If you're really a baller, you can have, 236 00:23:47,380 --> 00:23:52,020 you can make a curve which hits any three points of your choosing. But two points of your 237 00:23:52,020 --> 00:23:59,620 choosing is so easy. I do not want to see anyone having, like, soft coded, like, things that 238 00:23:59,640 --> 00:24:04,200 are, like, when it gets to this position, stop. When it gets to this position, stop for a motor. 239 00:24:04,560 --> 00:24:11,740 That's awful. That's bad. Use a four bar linkage. Use what you have. Also, this is a great way to 240 00:24:11,740 --> 00:24:16,340 gear down a motor because the arms are long. And long arms are levers. And that's lazy ass 241 00:24:16,340 --> 00:24:26,100 gearing. Awesome. This is a bearing. So, I'm so ashamed to have to go through this, guys. 242 00:24:26,200 --> 00:24:29,620 You don't even know. But, so, what I'm going to do is I'm going to show you how to do this. 243 00:24:29,640 --> 00:24:35,240 When you want to have a rotatey thing and a non-rotatey thing or two rotatey things that are 244 00:24:35,240 --> 00:24:40,620 independent, don't just fucking drill a hole and put a bolt in it. Because friction exists. 245 00:24:40,840 --> 00:24:45,200 Okay, guys? Like, this is a ball bearing. You buy them from the Internet, especially if there's 246 00:24:45,200 --> 00:24:52,060 any significant torque. They're really dead simple. This is a fucking blank slide. I'm sorry, 247 00:24:52,160 --> 00:24:59,620 guys. Oh, well. Thank you for talking to me today. I hope you enjoyed this video. Thank you for 248 00:24:59,640 --> 00:25:08,800 donating. I'm out of vodka. Sorry, guys. If anyone's got any more, it's right there. So, 249 00:25:09,760 --> 00:25:16,480 bushings are the lazy ass bearings. It's just a low friction piece of metal that you use and they 250 00:25:16,480 --> 00:25:21,340 just rub up against each other. But they're less rubby than doing, like, just flat out, like, 251 00:25:21,400 --> 00:25:28,600 aluminum on aluminum. Like, don't, no. Please, please. Baby Jesus cries. All right. Thinking 252 00:25:28,600 --> 00:25:36,300 things through the whole way. All right. So, not all plastics play together nicely. This is 253 00:25:36,300 --> 00:25:41,500 Loctite with a noncompatible plastic. This was my friend's senior project. It was so funny. 254 00:25:43,680 --> 00:25:49,980 So, when you're gluing plastics or Loctite, we're going to count that in as a kind of glue. 255 00:25:50,200 --> 00:25:56,940 Check that your plastics are compatible. There's lots of data sheets on this. You will not 256 00:25:56,940 --> 00:26:04,020 drive it empirically. You will look it up online. Unless you are crazier than me. And that's 257 00:26:04,020 --> 00:26:11,500 fucking impressive. Gear boxes versus momentum. If anyone's driven a manual car will know if 258 00:26:11,500 --> 00:26:16,920 you're going with your autonomous code 100% forward and then 100% backward, that could be 259 00:26:16,920 --> 00:26:26,400 some funny shit. So, give yourself, like, the difference between theory and reality is much 260 00:26:26,400 --> 00:26:32,220 smaller in theory than it is in reality. Give yourself a little room for momentum and 261 00:26:32,220 --> 00:26:39,400 shit and Murphy's Law. This is sad robot going backwards while it's leaning forwards. Oh, 262 00:26:39,480 --> 00:26:45,900 don't push robots. Don't push him. Because you know what, you use your battery to power your 263 00:26:45,900 --> 00:26:50,720 computer to tell your motors to rotate forward. And when you push your motors, you push your 264 00:26:50,720 --> 00:26:55,640 robot forward, the motors rotate and then feed current back into your very expensive computer. 265 00:26:56,600 --> 00:27:05,920 And then you're sad! Please, no. This is so easy to fix. You can have diodes, you can have 266 00:27:05,920 --> 00:27:11,820 cutoffs. Hello. What are you doing here? You can have diodes, you can have cutoffs, you can 267 00:27:11,820 --> 00:27:18,000 have tons of ways. You can have even a little shitty disengage that just unplugs, like, just a 268 00:27:18,000 --> 00:27:21,580 little, you know, like, jackdive switch that just unplugs the motors from the rest of the 269 00:27:21,580 --> 00:27:28,960 things. But please think about this. I have seen too much expensive shit die due to people not 270 00:27:28,960 --> 00:27:33,520 thinking about this. Because, you know, robots are heavy and you don't want to carry them 271 00:27:33,520 --> 00:27:37,520 because you're lazy like me. All right. Acknowledgements. I didn't have to learn all 272 00:27:37,520 --> 00:27:42,220 this the hard way. My mentors when I was in high school and retarded. I'm amazing. They didn't 273 00:27:42,220 --> 00:27:48,960 kill me. Former co-workers from NASA Ames LMR project. My very tolerant housemates. An IRC 274 00:27:48,960 --> 00:27:51,560 channel where I'm retarded. Hacker Dojo. I'm retarded. I'm retarded. I'm retarded. I'm 275 00:27:51,560 --> 00:28:00,100 retarded. And my college, which is pronounced Worcester. This presentation is creative 276 00:28:00,100 --> 00:28:05,800 commons. Buy attribution, noncommercial, share alike. I am Katie Levenson. I live on the 277 00:28:05,800 --> 00:28:10,880 fucking Internet. You should talk to me with corrections or whatever else or questions. I 278 00:28:10,880 --> 00:28:14,740 don't give a fuck. And save the Hacker Dojo because I love that place. 279 00:28:26,680 --> 00:28:42,660 have any questions? Sorry, man. I told you I talk fast. Okay. 280 00:28:51,980 --> 00:28:55,960 All right. So I'm going to repeat what that man said. James Watt was more proud of the 281 00:28:55,960 --> 00:29:01,620 full bar linkage than the entire steam engine. That's baller. Thank you for that history. 282 00:29:12,020 --> 00:29:21,540 Ah, Jesus. So this is a dirty secret. Is mechanical engineers think MATLAB is soft? 283 00:29:21,560 --> 00:29:31,020 And that's a really unfortunate thing. So while MATLAB sucks a giant dick, all of the 284 00:29:31,020 --> 00:29:36,700 libraries that you want are actually made out in MATLAB and provided by universities. So 285 00:29:36,700 --> 00:29:42,840 it kind of sucks but like being lazy is awesome so I don't know if you want to choose to 286 00:29:42,840 --> 00:29:48,860 bite the bullet or what. But that's about your options. Anybody else? It's like electrical 287 00:29:48,860 --> 00:29:51,540 engineers think C is the only programming language. Which is a little bit interesting. 288 00:29:51,540 --> 00:29:55,820 you know, C is an awesome programming language, but they're like, I know C. I'll do whatever 289 00:29:55,820 --> 00:30:06,860 the fuck this is in C. Fuck, FPGA is in C. It doesn't matter. I know C. So it's how the cards 290 00:30:06,860 --> 00:30:12,900 dealt. Anybody else got questions? Hi, Elliot. I just wanted to say hi. I'm going to have 291 00:30:12,900 --> 00:30:17,640 to leave after this, so I'm sorry to hang out. Incredible talk. I loved it. Thank you. 292 00:30:23,440 --> 00:30:27,700 Now I got to see Elliot at this conference. That's awesome. Anybody else got a question? 293 00:30:31,320 --> 00:30:41,920 I take over the world. No. So I make, like, hobby shit. Most of what I did was I worked on a 294 00:30:41,920 --> 00:30:47,560 lunar rover at NASA. Lunar rover prototype at NASA. Unfortunately, President Obama was like, 295 00:30:47,600 --> 00:30:51,520 fuck the moon. This is actually a really good story because President Obama was like, fuck the 296 00:30:51,520 --> 00:30:56,600 moon. Bush was like, man, what do popular presidents do? I know. I'm going to challenge India 297 00:30:56,600 --> 00:31:01,160 and China to a space race. He's like, hey, bitches, we're going to the moon in 2020 and we're 298 00:31:01,160 --> 00:31:06,200 going to Mars in 2030. And he called NASA, he's like, guess what I did? . 299 00:31:08,460 --> 00:31:12,800 And NASA was like, you're going to foot the bill for that? And he's like, fuck, no, you 300 00:31:12,800 --> 00:31:20,920 figure it out. And so everything, so everyone is like, why does NASA suck now? It's because NASA is 301 00:31:21,520 --> 00:31:24,940 like, we can't do this. And Bush is like, I don't know what I'd keep you around for if you 302 00:31:24,940 --> 00:31:34,700 can't even go back to the moon. You did that shit in the 70s. And so basically they had to 303 00:31:34,700 --> 00:31:38,580 throw every project under the bus to try to get back to the moon in 2020. And then Obama's 304 00:31:38,580 --> 00:31:44,080 like, what the fuck are we doing here? And then in 2009 he canceled project constellation. 305 00:31:44,500 --> 00:31:50,120 And that was all the layoffs. They minimized the like, oh, there were only so many layoffs, 306 00:31:50,120 --> 00:31:53,860 but they don't count all the payload teams. They only count the teams doing the rockets. 307 00:31:54,080 --> 00:31:59,820 And so that was unfortunately the end of my adorable lunar rover. Which is so cute. It was 308 00:31:59,820 --> 00:32:06,440 like 10 kilograms and I hold it in my arms. It was so cute. But yeah. Any other 309 00:32:06,440 --> 00:32:20,100 questions? Yep. I found it in my hotel room. I don't even know. I just found it in my hotel 310 00:32:20,120 --> 00:32:24,900 room. I just found it this morning. I'm like, this is going with my fancy ass dress. I love 311 00:32:24,900 --> 00:32:38,660 Vegas. Next question. Going once. Going twice. Oh, hey, what's up, man? 312 00:32:41,940 --> 00:32:50,100 Oh, okay. Sure. What do you want to know? It was so cute. Sorry, what? Oh, okay. Okay. 313 00:32:51,580 --> 00:32:58,940 So it was meant as a scouting mission. Because, like, so the moon is such a bitch. Like, it's 314 00:32:58,940 --> 00:33:04,800 really ridiculous. Like, basically, the surface of the moon is like, it gets hot and cooks all 315 00:33:04,800 --> 00:33:11,060 this shit together. And then these meteors come in and they bang it up and they break it all up 316 00:33:11,060 --> 00:33:15,660 into itty bitty bits. And then you have like these razor sharp things that stick to you with the 317 00:33:15,660 --> 00:33:20,100 same mechanism as Velcro does. And they hold electrostatic charge. And then they don'tized they don't 318 00:33:20,120 --> 00:33:24,920 charge. And then like they'll discharge electronic static charge all over you. And they'll also 319 00:33:24,920 --> 00:33:31,740 hold radiation and dump that all over you. And a day is 28 days on the moon. So like you 320 00:33:31,740 --> 00:33:40,100 have a, what's that? Math. I'm drunk. So it's like a 14 day day and a 14 day night. So the 321 00:33:40,100 --> 00:33:45,560 temperature swing is ridiculous. No one actually, I know that everyone is like, oh, we put a 322 00:33:45,560 --> 00:33:50,220 buggy on the moon. But like no one has actually put a long-term mission on the moon. Because 323 00:33:50,220 --> 00:33:56,840 the moon is so crazy. We put our rovers on Mars. The only one that has ever put a rover on 324 00:33:56,840 --> 00:34:02,400 the moon is the Russians. And they put like a tank on there. Like the Lunar Croft was 325 00:34:02,400 --> 00:34:07,420 crazy. So like it's actually amazing how little we've spent on the surface of the moon. 326 00:34:07,520 --> 00:34:14,160 Because the surface of the moon is crazy. So this was a little shitty scouting mission. It 327 00:34:14,160 --> 00:34:15,540 basically had a camera on the front and a camera on the back. And it was a little shitty 328 00:34:15,540 --> 00:34:18,820 on the front. And the goal was just to drive that fucker until the sun cooked it. 329 00:34:22,640 --> 00:34:29,600 Because the surface, like if you can imagine the temperature switch during a 14 day day with no 330 00:34:29,600 --> 00:34:34,680 atmosphere and nothing to protect you, it's ridiculous. Like if you look at the original 331 00:34:36,540 --> 00:34:44,020 lunar extra outside of the mission drivey buggy shit, they used piano wires on the wheels. 332 00:34:44,120 --> 00:34:45,520 Because they couldn't use rubber. Because it wouldn't work. And they couldn't use rubber. 333 00:34:46,780 --> 00:34:51,420 And they couldn't use metal. Because the first rock would pull it up. So they actually took 334 00:34:51,420 --> 00:34:55,980 piano wire and tuned it around. And then they let the rocks get absorbed up into the piano 335 00:34:55,980 --> 00:35:02,460 wire. And then like the rocks would just fall out later. Like the science, like it's so crazy. 336 00:35:02,620 --> 00:35:07,860 Like I understand why Mars is so important and so awesome and some place we might actually 337 00:35:07,860 --> 00:35:14,040 live someday. But like the moon is such an ultimate engineering challenge. I think that people 338 00:35:14,040 --> 00:35:20,080 really underestimate the moon because of the distance involved. But the moon is such an awesome 339 00:35:20,080 --> 00:35:25,220 engineering challenge for thermal engineers, for mechanical engineers. I mean, basically on a 340 00:35:25,220 --> 00:35:30,520 lunar mission, software is the like we'll fix it in software and support team. We clean up 341 00:35:30,520 --> 00:35:35,740 everybody else's messes. Like someone wanted me to overclock and underclock the processor to 342 00:35:35,740 --> 00:35:44,020 function as a heater. Like we are so secondary. It's not even, it's not even, it's not even 343 00:35:44,040 --> 00:35:52,020 fucking funny. Like it's very, very humbling to realize that like despite the fact that you have to 344 00:35:52,020 --> 00:35:58,380 have a mathematically foolproof system, you are not the one holding the hard challenges on this 345 00:35:58,380 --> 00:36:05,320 team. And that's an incredibly humbling experience. I'm sorry. I don't even remember what your 346 00:36:05,320 --> 00:36:06,620 original question was. Did I answer it? 347 00:36:15,560 --> 00:36:20,620 All right. Any other questions? Can you tell us some stories of epic fail? 348 00:36:21,140 --> 00:36:27,020 Oh, my God. I can tell you so many stories of epic fail. So one time, I know I put this in last 349 00:36:27,020 --> 00:36:33,120 year, but it's so good. So like one time, I, we were making a robot and it was two nights before 350 00:36:33,120 --> 00:36:40,560 the ship date because it was for a competition where they take away the robot. And so we were 351 00:36:40,560 --> 00:36:44,020 just testing the robot. And, you know, the battery is whatever. Like, you know, the battery is 352 00:36:44,040 --> 00:36:47,080 like, you know, it needs to stay in there. So we bolted it down with some metal C-clamps. That 353 00:36:47,080 --> 00:36:51,540 seems reasonable. And then as we were driving around, the metal C-clamps like waggled themselves 354 00:36:51,540 --> 00:36:59,120 out and got over the contacts. And like arced it right into the steel frame. And now I advise you 355 00:36:59,120 --> 00:37:08,640 to use Velcro on your batteries. Because fire is bad. Most important formula for robots, black 356 00:37:08,640 --> 00:37:14,020 plus red equals fire. Oh, so, oh, my God. So, so, oh, my God. So, oh, my God. So, oh, my God. 357 00:37:14,020 --> 00:37:20,400 So, Velcro is great shit. We also, I was once on the Carnegie Mellon, that was actually really 358 00:37:20,400 --> 00:37:24,040 humiliating because I graduated and I was like chilling with Carnegie Mellon and then my 359 00:37:24,040 --> 00:37:29,380 alma mater is the one that wins the half a million dollars for the lunar X prize. Fuck, I 360 00:37:29,380 --> 00:37:35,720 graduated too early. And so they were great. They had no suspension on the robot. They were 361 00:37:35,720 --> 00:37:40,520 doing a lunar regolith excavation challenge. And they decided to carry the robot around 362 00:37:40,520 --> 00:37:44,000 because, like, I'll tell you, during, like, when the shit hits the ground, the robot just 363 00:37:44,020 --> 00:37:50,080 hits the floor or the fan or wherever it hits. Like, people are really rough on robots. And so 364 00:37:50,080 --> 00:37:55,800 they dropped it into the pit where it was supposed to compete. And the electronics board did this 365 00:37:55,800 --> 00:38:00,620 little flexy shit while it was live. And it did this little arcing shit and then it didn't work 366 00:38:00,620 --> 00:38:07,820 as well. When you let the magic spoke out of the computer, bad things happen. So that was 367 00:38:07,820 --> 00:38:14,000 bad. Let's see what, oh, I ruined two walls in my high school. Oh, I ruined two walls in my high 368 00:38:14,020 --> 00:38:21,120 school. I had an angry nun chase me down the hallway. Fun fact, kids, when you get out of range of 369 00:38:21,120 --> 00:38:31,760 your wireless, you need to have the robot stop. When it detects it is not getting anything, it 370 00:38:31,760 --> 00:38:35,880 needs to stop because otherwise you will have no way to bring it back. This is really important if 371 00:38:35,880 --> 00:38:43,940 anyone does UAVs. Just putting that out there. If you lose, like, time out, just have it 372 00:38:44,020 --> 00:38:49,400 start landing slowly. Or you will never get that shit back until the batteries run out and it 373 00:38:49,400 --> 00:39:00,460 plummets like a rock. Let's see. What else? Oh, goodness. I've broken so many things. Yeah, that's 374 00:39:00,460 --> 00:39:05,260 all I can think of right now. Anybody else got questions? I have a legitimate question. So 375 00:39:05,260 --> 00:39:09,700 when will we have, and this is very appropriate, but not this particular audience, but for DEVCON in 376 00:39:09,700 --> 00:39:18,700 general, when will we have robots that we can have sex with? So, like. That's the best most of 377 00:39:18,700 --> 00:39:26,080 these people are getting. I know. He says that's the best most people here are getting. So, you 378 00:39:26,080 --> 00:39:32,220 know. The question was when will we have robots that we can have sex with? So that's a hard 379 00:39:32,220 --> 00:39:39,000 question. You would either have to tether it or finish fast, which I'm sure isn't a problem around 380 00:39:39,000 --> 00:39:46,820 here. Because right now the really limiting factor that's keeping robots out of our daily life 381 00:39:46,820 --> 00:39:53,060 is battery consumption. I wanted to put a slide on this but I got you drunk. So it's actually a 382 00:39:53,060 --> 00:39:59,840 hundred times more efficient if you're allocating about 30 pounds for energy for your energy 383 00:39:59,840 --> 00:40:07,740 budget to put a generator on there with gasoline than to put a lithium ion battery even pretending 384 00:40:07,740 --> 00:40:08,980 that cost was gone. It is like, I don't have a battery to fill the hot seat. It is like, 385 00:40:09,000 --> 00:40:14,140 into problem. Battery technology is really not keeping up with robots. That's why the only 386 00:40:14,140 --> 00:40:19,780 robots that you see right now are either domestic bullshit like the Roomba or things that have 387 00:40:19,780 --> 00:40:24,580 like a very controlled environment and have the capacity to plug themselves back in. Or you see 388 00:40:24,580 --> 00:40:30,360 something that's tethered to the floor like automation machinery. Or you see military shit 389 00:40:30,360 --> 00:40:33,860 and they don't care how loud it is. So unless you get turned on by a generator going 390 00:40:33,860 --> 00:40:40,700 . I would say that's one of the more serious barriers to robots in our everyday 391 00:40:40,700 --> 00:40:47,360 lives for sexy times or whatever else. And it's really great because cell phones are now 392 00:40:47,360 --> 00:40:51,100 like really up against the wall in battery life and they're putting a lot of money behind 393 00:40:51,100 --> 00:40:56,180 this. On the other hand, I cried inside when I saw the Apple and they were like, Apple has so 394 00:40:56,180 --> 00:40:59,660 much money. And they're like, oh, my God, guys, we made it so much better by making the 395 00:40:59,660 --> 00:41:03,840 battery bigger. And I'm like, no, make me a better battery. I want a better battery. I want 396 00:41:03,840 --> 00:41:09,300 robots everywhere. So if any of you happen to be billionaires and want to be like 397 00:41:09,300 --> 00:41:15,720 philanthropists and don't want to give it to the hacker dojo, and want to make the world a 398 00:41:15,720 --> 00:41:20,900 better place, I would say that the place where you can really make a difference is by improving 399 00:41:20,900 --> 00:41:25,920 battery technology. Because that's what's really holding us back from the robotic revolution, is 400 00:41:25,920 --> 00:41:31,780 it's just not energy efficient and people don't want generators and horrible gas smells and 401 00:41:31,780 --> 00:41:33,440 the noise in their house. 402 00:41:34,960 --> 00:41:39,920 I go off topic a lot. What's up, dude? What are your thoughts on self-driving cars? 403 00:41:41,360 --> 00:41:47,360 Baller. My thoughts on self-driving cars is they are baller. They are an example of a gas 404 00:41:47,360 --> 00:41:54,220 fueled engine, as previously stated. They're amazing. I really hope that they get good at what 405 00:41:54,220 --> 00:42:00,980 they're doing before the legislature goes, oh, fuck, guys. We have to stop this. They're 406 00:42:00,980 --> 00:42:03,820 really cool. On the other hand, I'm really sad because they're really cool. They're really cool. 407 00:42:03,820 --> 00:42:07,160 They're really cool. They're really cool. I'm so sad because Google's solution to running a 408 00:42:09,400 --> 00:42:15,780 self-driving car is to be like, we're going to take a $30,000 car and strap a $70,000 LIDAR on the 409 00:42:15,780 --> 00:42:23,360 top. This is scalable shit. It's like, fuck, though, I'll buy a Tesla for $100,000. So I'm 410 00:42:23,360 --> 00:42:28,080 really looking forward to LIDARs coming down in cost, and I believe it can be done. I believe the 411 00:42:28,080 --> 00:42:33,120 technology is out there. The problem is the only place we're selling LIDARs right now is to the 412 00:42:33,120 --> 00:42:39,680 military, and as you know, the military gives fuck all about the price. So I really want to see 413 00:42:39,680 --> 00:42:44,400 commercial LIDARs because I believe that that is what will hasten self-driving cars into the 414 00:42:44,400 --> 00:42:49,740 reality that you and I live with. By the way, I'm really not good about the future. I love 415 00:42:49,740 --> 00:42:57,360 these questions, but, like, I'm as much of an expert as this microphone makes me. So please 416 00:42:57,360 --> 00:43:01,620 take me with a grain of salt. I'll give you my best effort. What's up? 417 00:43:05,880 --> 00:43:12,520 So what languages do I like to program in for robotics? I would say the big, so the robots are 418 00:43:12,520 --> 00:43:18,280 really divided into, as I said before, batteries are really a limiting factor on robotics, and so 419 00:43:18,280 --> 00:43:25,200 energy consumption is serious shit. And you actually look at, like, the computers we have on 420 00:43:25,200 --> 00:43:29,120 robots, and they're awful. So there's usually actually two computers that are seriously 421 00:43:29,120 --> 00:43:33,100 involved. One is the embedded system on the robot itself, which is extremely bearable, and the 422 00:43:33,120 --> 00:43:38,300 other is extremely power-sensitive, and that is all embedded C. And then you have the off-board 423 00:43:38,300 --> 00:43:43,340 computation that does, like, sensing, because, like, I mean, fuck, off-board, you can plug it 424 00:43:43,340 --> 00:43:49,940 into a wall. Fuck electricity. Like, this shit is easy. So that is written in a variety of 425 00:43:49,940 --> 00:43:55,960 languages. There are excellent libraries for Python, excellent Python support. Another friend 426 00:43:55,960 --> 00:44:01,300 who's doing amazing work, if you think I'm good at robots, this man I think will be the next 427 00:44:01,300 --> 00:44:02,680 father of modern robotics. 428 00:44:03,120 --> 00:44:08,880 And his name is Kevin Harrington, and he works at neuronrobotics.com. They have phenomenal Python 429 00:44:08,880 --> 00:44:14,880 libraries. There are a lot of good Python libraries. A lot of it depends on OpenCV. OpenCV is 430 00:44:15,440 --> 00:44:24,380 varied. If you want to do vision stuff. I would say embedded C and embedded Python for the off-board 431 00:44:24,380 --> 00:44:29,640 computing side are probably the general tools of choice. Although I've seen everything. Because 432 00:44:29,640 --> 00:44:33,100 robots is such a new field. Like, Microsoft, I don't know if you've ever heard of Microsoft's 433 00:44:33,120 --> 00:44:37,560 made this, like, embedded crazy robot shit. I don't know if anyone's going to use it. But, 434 00:44:37,600 --> 00:44:41,380 like, everyone's trying to get into being the operating system of modern robotics, which is 435 00:44:41,380 --> 00:44:46,440 bullshit. Until we get batteries, you don't have fucking room to run an operating system. Fuck. 436 00:44:46,560 --> 00:44:52,460 When I made a rover, we didn't have virtual memory. Fuck that shit. Like, operating system of 437 00:44:52,460 --> 00:44:56,600 modern robotics, until we get proper batteries on there, is a joke. And everyone will hate me for 438 00:44:56,600 --> 00:45:03,100 saying that, but fuck them, because I'm right. Next question. I'm going to ask you a question. 439 00:45:04,480 --> 00:45:18,660 What's up? Can you shout a little louder? Ah, Jesus. Neuron Robotics has one. Willow 440 00:45:18,660 --> 00:45:30,440 Garage is trying RTOS A for effort. Sorry. Ross, not RTOS. RTOS is something different. Ross. 441 00:45:30,440 --> 00:45:36,080 Thank you, sir. Is trying Ross A for effort. Not sure on the implementation. They assume that 442 00:45:36,080 --> 00:45:40,340 you have this, like, magical, infinite battery life. But they are shiny. And when the battery 443 00:45:40,340 --> 00:45:44,200 industry catches up, they'll be kind of hot. I don't know if they'll be outdated before then. 444 00:45:47,240 --> 00:45:52,860 I... OpenCV is baller. It's actually used by a much broader community, including general 445 00:45:52,860 --> 00:45:59,920 computer vision. I can definitely answer that question better by posting something online. 446 00:46:00,440 --> 00:46:05,660 So if you ping me at Katie Levenson on Twitter, I'll put up... I'll go actually research this 447 00:46:05,660 --> 00:46:11,080 question and have an answer that's not pulled out of my ass. If that's cool with you. Next 448 00:46:11,080 --> 00:46:22,900 question. What's up, dude? Not intensively. You mean the arm? He asked, is there's a robot on 449 00:46:22,900 --> 00:46:29,320 the International Space Station. Are you familiar with that? Are you meaning the arms or... What? 450 00:46:31,160 --> 00:46:38,460 Yeah, I don't know shit about that. Sorry, dude. Assholes make shit up, man. I'm not going to make 451 00:46:38,460 --> 00:46:44,520 shit up. I'm giving you my best educated guess. And, I mean, I think that's the only way to keep 452 00:46:44,520 --> 00:46:48,720 respect is you say it when you don't know what the fuck you're talking about. What's up, dude? 453 00:46:53,220 --> 00:46:56,460 What kind of programming language and design strategy is going to Lunar Rover? So this is 454 00:46:56,460 --> 00:47:00,420 actually really complicated shit. Because... I don't know. I don't know. I don't know. I don't know. I don't 455 00:47:00,420 --> 00:47:02,700 know. I don't know. I don't know. I don't know. I don't know. But it's kind of confusing. And NASA is 456 00:47:02,700 --> 00:47:08,140 obsessed with flight heritage? Which means, like, fuck the risks. Someone else flew it. They 457 00:47:08,140 --> 00:47:11,700 obviously did their homework. It's like conference papers. I'm qualified to speak to this 458 00:47:11,700 --> 00:47:15,240 conference because people who spoke at the conference before think I'm qualified. Not this 459 00:47:15,240 --> 00:47:22,340 conference. I mean, like, bullshit conferences. So, because this is when the goons 460 00:47:22,340 --> 00:47:30,400 decide. They don't talk. But so it is complicated. People use VX works, which is, like, some kind of 461 00:47:31,160 --> 00:47:38,040 I have nightmares about VXworks. I really hate that system. And they also use it on your 462 00:47:38,620 --> 00:47:43,840 wireless modems and it works so well. I'm never getting a job from them. Fuck them. I don't 463 00:47:43,840 --> 00:47:53,360 want to work for them. So there was a low earth orbit. So there's a big differentiation 464 00:47:53,360 --> 00:47:57,520 between low earth orbit and higher earth orbit because the Van Allen belt is like radiation. 465 00:47:57,520 --> 00:48:03,440 No radiation. You're fucked. Imagine when you're designing your programming system, any bit 466 00:48:03,440 --> 00:48:08,320 can be flipped. Your stat counter, oh, I just changed that. Your PC counter, oh, I just 467 00:48:08,320 --> 00:48:18,620 changed that. And they expect you to design around that. And it's like, fuck you. So VXworks 468 00:48:18,620 --> 00:48:23,900 is what Spirit and Opportunity run, is what a lot of the computers run. I mean, rad 469 00:48:23,900 --> 00:48:27,240 hardened computers are a joke. Rad hardened computers is a really hard thing because 470 00:48:28,020 --> 00:48:31,940 anything that can go into space can be used as an intercontinental missile and the military 471 00:48:31,940 --> 00:48:36,280 gets all up in that shit. Because they don't like intercontinental missiles. I don't know 472 00:48:36,280 --> 00:48:45,100 why. So if you want to buy a computer that has less power than my cell phone, it's generally 473 00:48:45,100 --> 00:48:51,260 like $20,000 for the motherboard, $20,000 for the I.O. board, $10,000 for the power 474 00:48:51,260 --> 00:48:57,480 board. And that's for the prototype. And then they'll sell you one that's guaranteed to be a 475 00:48:57,480 --> 00:49:01,860 exactly like the one you're going to ship into space and that's $40,000 for the motherboard, 476 00:49:02,060 --> 00:49:06,360 $40,000 for the I.O. board and $20,000 for the power board. And then if you want to actually 477 00:49:06,360 --> 00:49:10,360 ship one to space, they'll sell you one for $80,000, $80,000 and $40,000 and that one 478 00:49:10,360 --> 00:49:14,120 comes in a magic plastic bag. And if you don't open it in a clean room and you don't do the 479 00:49:14,120 --> 00:49:20,720 magic voodoo and it breaks, they're not fucking liable. Defense, I mean, this is getting into my 480 00:49:20,720 --> 00:49:26,200 political belief, but defense contractors have gutted the American public's capacity to do science 481 00:49:26,700 --> 00:49:27,460 with their hard work. And they're not fucking liable. They're not fucking liable. They're not 482 00:49:27,460 --> 00:49:31,200 talking about hardware. And it's really frustrating. And I'm sure that many people in the 483 00:49:31,200 --> 00:49:42,160 audience hate me for saying that. But it's the nature of things, I feel. Are you throwing 484 00:49:42,160 --> 00:49:47,540 me off? I will not throw you. I will gently take you. All right. Thank you so much! You 485 00:49:47,540 --> 00:49:48,620 guys have been awesome!