Good morning! My name is Katie Levinson and this is all the ways you are doing robots wrong. I can't operate a computer. Too much hangover. All right. So who am I? I have done four years of competitive robotics. I've done six seasons of coaching. Five of them were first year teams and first year teams have extra excitement with retardation. Two years at NASA. You can read. Fuck this. I am currently the director of development at Hacker Dojo, which is kind of being shut down by the city of Mountain View because they are anti-awesome. So if you would care, like, to help us in reopening our building, we'd really appreciate that. And my phone makes a cha-ching noise whenever you donate at hackerdojo.com slash Kickstarter and I will drink when that happens. So I'm sorry. And if I can find more alcohol I would love to give you a shot, too. And then my best qualification is the experience of doing shit wrong. I'm sure, as you know, all DEF CON speakers are only accepted if they are exceptionally qualified. And I feel like I've done my homework in this department. Speaking of which, this is the trip to Vegas. And this is why. This is a photo of my grandma in 1937. She was 19 and graduating from Rice University. She was a for math. And she's going to die really soon. So I figured I'd, you know, kind of do a nice thing. She's, yeah. And I got a lot of shit last year for doing a talk in a dress. And so this year I wore a fancier dress. But I'd like to take a second to remind this community. The reason I do this is to remind this community what we spent so many years teaching our bosses and our, like, you know, feds and all of those people is that it doesn't matter how you dress or do your hair or what you do on the weekends. What matters is you are fucking good at your job. And the rest of it is all water under the bridge. So that will be the end of my stupid idealism for the day. If you have a question, come on up and ask it. I'd like this to be a nice kind of casual, light talk. And if we run out of time, I will have to ignore you and then you can hassle me in Q&A. But we're going to go through a lot of topic really fast. And so it would be easier if you just stop me and ask your question. And there are a lot of bright lights preventing me from seeing that far into the audience. So please feel free to shout. I may regret saying that. All right. Outline. Input is hard. Output is hard. I fucked up last year. And here are some bad ideas. Input is hard. All right. The infrared. Infrared is a type of sensor you use on robots. It works with a laser. Lasers are sick. So basically you send out an infrared signal and it bounces back off the target and comes back and you measure that distance. And pew, pew. So it's really bad with mirrors. Because mirrors are reflective and shiny and things don't bounce quite right and you get kind of vague, weird shit. And these are the fucking bane of your existence. Because most cameras have an infrared sensor which determines the focusing length of the camera. And so I can't tell you how many teams I've seen that like, you know, all those little news clips are like, oh, it works great when the camera is not rolling. It literally works when the camera is not rolling because the camera is bathing the robot in infrared light. So, yeah. Bad. This is actually a problem that I think is really, really bad. And it's a problem for normal cameras as well. The solution is, yeah! Sunglasses. Yes. Thank you, sir. So you can put sunglasses on your robot and it will filter out the infrared light. And that's fucking phenomenal. And so that's great. Don't do it on your infrared sensor or you're going to detect the back of your glasses. And the great thing about this is it's not entirely obvious because infrared sensors have a minimum distance. And then, like, past that, it's like, fuck all. So it's going to come out as like, oh, you're about 200 meters away. And you're like, what, can you not see the wall? What the hell? So read the specs of your infrared sensors and put it in the range that it's supposed to detect. Rocket science. I know, right? This is an ultrasonic range finder that's being ‑‑ this little thing that looks like a ‑‑ people always identify it as the robot's head. Basically, noise control. It's a device that comes out of one and bounces off the wall and comes back into the other. And this works kind of like sonar. It's pretty sick. This is my friend's robot. He made tons of money on Kickstarter because, fuck him. It's called hexi, if anyone ‑‑ they're really cool, actually. They're bad with fuzzy things. Because fuzzy things don't reflect sound quite right. So you can actually put two of these together and then this will detect the infrared light. And then, like, the mirror things and the ultrasonic range finder ‑‑ sorry, and the infrared mechanism will detect the fuzzy things. And that's pretty pimp. This is straight vodka. That's cool. Fuck yeah, DEF CON. Okay. Oh, this is a puppy. So I talk fast. And so when we have a new idea, I'm going to show you an adorable picture. Because that's a great way to transition. Because I talk too fast and we need a break for ideas. So I'm going to show you a picture. All right. So perception of reality is hard shit. Like, even for humans, it's not that bad to fuck up. And for robots, this is ‑‑ this is pretty difficult. So this is our robot. And it's near the wall. And it would like to measure how far it is from the wall. So it's always measuring, like, how far am I right now? And then I'll take, like ‑‑ I'll know that. And then I'll know my velocity. But the thing is, is your sensors aren't perfect. And so it's not a your measurement is going to vary by, you know, a couple inches or so and you're sampling that, you know, kill hertz range and it looks like you're oscillating at 200 miles per hour away from the wall. So you want to take your raw sensor measure with a grain of salt, go to Wikipedia, there's tons of shit on this, but just don't take it raw is kind of the big takeaway message here. Ah, so speaking of like fear and loathing in Las Vegas, the walls bend. And this is actually really kind of trippy the first time you see it. So you're shining a little laser into that corner and the corners are doing one of these things. And that's like, whoa. And why does it do that? It's because the little arrows indicate the thing coming in and as you can see it bounces its way down the corner. And it's like, whoa. And it's like, whoa. And it's like, whoa. And there's this thing that absorption of the light in the honor and then comes back which makes the end of the corner look farther away and so you get this like weird, all curvy shit. Um, there are a bunch of ways to fix this. The dumbest one is to assume that all of your walls are square. Um, and that isn't too terrible of an assumption. Um, there have been other tons of ways I've seen people, they look at the ceiling and they, like, use those little lights, like they know a light is supposed to be every couple ceiling tiles, so they, like, measure out how the room warps. There are other people who basically do a 360 scan and then they assume, like, I know you don't think I'm the whole way around, but I am. So we're going to assume that all these points I found are points and then I have a spring which represents my confidence in that point and then you assume that, like, the first point equals the last point and you let the springs ‑‑ it's really actually cool to visualize ‑‑ what is it? Crap. OpenCV. OpenCV has a great library that does this and it's really cool to watch visualization because it's like, vroom, vroom, vroom, and it snaps together and actually looks like a room. It's really sick. And yeah, that's awesome. This is the only movie where Keanu Reeves was, like, appropriately cast. I fucking love it. Okay. Lidar is awesome and expensive and I want to fix that second bit because right now the only people who can afford Lidar are the military and so, like, Derpy is the only one who can afford it. So, like, I'm going to go ahead and surpass Lidar. It's, like, three grand whereas, like, people who have developed them privately put them on stupid robots no one wants to buy for, like, $400. It's, like, fuck. Hey! Thank you, someone, for donating. I will pour you a drink later, whoever that is. So, yeah. So we want to fix that second bit where Lidars are really expensive. There's some really cool open source work which could bring them down to, like, $30. And if you're interested in making the world more awesome and full of robots, talk to me in Q&A. All right. This is one of those expectations versus reality. So you can see at the top our little green shifting into blue thing is our range finder. And you're like, oh, look, I'm going to scan the wall and it's going to be fucking awesome as I drive my robot along. And what you're really doing is you're scanning while you're moving and you're actually taking the sampling of the wall in three different places. And so it looks like your wall is like this. And that's a problem. So you can sit still while you scan. You can do math for how fast you're going. You can do lots of things. But the takeaway here is don't use your data raw. There's a little bit of thought that has to go into this. Alan, this makes sad robot. Sad robot is sad. So, I'm going to show you a little bit of this. Oh, and then you can do this in 3D. What you can do is you can set up a whole array of little dudes along the bottom and then you just scan it up and down. I actually met like a crazy lady at an interview I had. She was in like HR. And she was like, yes, these are the yes, yeses and the no, nos. And it's because the ones that scan this way are the yes, yeses and the ones that scan this way are the no, nos. So these are used frequently with LIDAR. It's very rare to have a full 3D field LIDAR because it's fucking expensive. And so you can have, you can get a good floor level, but the scans will come in and you have to do the math to pull the scan. Hey, thank you, someone. You have to do the scans in 3D. So that's how that is. Oh, compasses. Compasses work on magnetic fields. Motors involve rotating magnets. So don't mount your compass next to your motor. That will get very exciting, very fast. There are actually a number of sensors which are very sensitive to electromagnetic interference. Certain variants of gyros, certain variants of accelerometers. So read your data sheet or at least understand what the fuck you're doing. Or, you know, if something's really not working, just move it away from the motors and test it, just when in doubt. This is a kitty! Yes! Kittens! All right. Next item. Output is also hard shit. All right. This is a little kid waving. Robots like to wave, too, but it's not because they're happy to see you. It's because they're retarded. So I'm not, anyways. Look at this. Move it right along. So this is, the concept here is a PID. P stands for proportion, I stands for integration, D stands for derivative. So the proportion is how close you are to your target, the proportion of that. The integral is you take an integral of how far away you are, then that's a number. And then the derivative is how fast the distance to your target is changing. And so what you do is you slap a constant on each of these and then you combine them for your target output speed. And sometimes this is kind of like big O-ish notation, like the scaling of it doesn't matter. The only reasons A, B, and C matter is relative to each other. So you can't make them all 400 and have it be fucking magic. I'm sorry. It's not how science works. So this is a proportional term. So it goes, this is a horrendous graph. I'm really sorry. I couldn't find a better one. So the green line is the normal, and then the black is if you lower the proportional term, the red is if you raise the proportional term, and you can see that this actually, it doesn't, it doesn't, and then the graphs represent like how close it is to the blue line. So over time you can see this actually levels out pretty quickly to its target, but it doesn't rise particularly fast. And when you, it is, hey, thank you. It doesn't rise particularly fast. So like compare it to like integral, which rises much faster as, as, as, as, as, as, as, as, as, as, as the term increases. So it rises slower. Sorry, it rises faster because red is more, God, this is an awful fucking. No, it rises faster. I can read. So it rises much faster with the integral term, but like it's going to continue to do like the itty bitty waves for longer. And then this is a derivative term, which rises wicked fucking slow, but stabilizes really fast. And so you're basically combining these two together. And so you can see that you have a lot of get the arm to do approximately what you want to do because in reality the arm has mass momentum. When you're like go to specifically like this particular degree, the momentum will cause it to overshoot and then it will go back and then it will go forward and then it will go back. And like that's why robots wave at you. They're just like. So these are ways that you slow down the robot so that it stops twitching on you. The other thing you can do which is really dirt is what your thermostat does is use a dead band which is the oh fuck it close enough band. And if you are lazy, that's a great way to start debugging. The upside of doing shit like this is if you load up the arm without any code at all, it will resist the load and continue to try to be in that position. You can lean on it, you can push on it, and the robot will actually gear up the motors to resist you without you writing code which is awesome. But it's awesome because it can actually work on you. It can work on you as well. beginning of the robot resistance, so beware. All right. This is a magic fucking table for Wikipedia. So don't remember anything I said if you're really hungover. And look at this table on Wikipedia for pig controllers. And if your shit isn't doing it, increase the term that relates to the problem you're having. Because science is complicated, it's ask the clock in the morning, and here we are. So velocity control. So the integral doesn't really work when you're trying to set a target velocity, so just fucking drop it, set it to zero, and then you can use the P and the D. Thank you, someone. I appreciate you. This is going to get a lot of it. This is straight vodka. God. Jesus Christ. I don't know what I'm doing. At least I had a mixer last year. All right. So set the eye target to zero, and then just set your velocity, and this is like an okay way to set velocity. You're going to need a feedback loop, so put like maybe encoders on your wheels. I don't want to go too much into stuff from last year, because I know that some people saw the talk from last year, but the slides are all online if you search my name and the word DEF CON. Ah! This is a cute, adorable photo of a goon's son. So I'm fixing a Netgear router. So this is our puppy photo just as we transition. Servos. Servos are limited to just one rotation, but servos have a lot of software actually already in them. So like you just set a position between zero and 255, and it just goes. It's fucking magic. There's some like physics behind it. There's some applications, like they aren't just interchangeable for motors, but they're pretty cool, and programming servos is wicked simple. I'm going to give you a few examples. Pneumatics are cool. They use air, obviously. They're an open air system, and you can't really stop the pneumatic shaft halfway, like you can spend a lot of money, and they have special ones with like magnetic positions that are between open and close, but like you and me and mere mortals, like pneumatics are up or they're down, and that's just how they are. You need a pump on there, or you need a big reserve tank, and if you run out of the reserve then that's, then your pneumatics don't work anymore. And if you decide to put a pump on there, then you're really and your battery life goes in the toilet. Consider that. Hydraulics are so fucking messy when you break them. So have fun. But the good thing about it is an inch of non-compressible fluid equals an inch of movement and you have much more granular control. And it is a closed system. You can't just pump it out in the air and pull more in and expect it. You're going to carry the entirety of your hydraulic fluid with you, the entirety of your whatever the hell you're doing. Ah, this is Casey's crotch. So cool trick. Not involving Casey's crotch. Cool trick is so let's say that you're debugging an infrared circuit and your light doesn't work. And you're going to say, oh, I'm work? I don't fucking know. And you can really smash your head against the wall with this. Most camera phones don't have a good IR filter on them because they're not like yeah with like the sunglasses. So you can hold up the circuit when you think it should be lit with your camera phone and see if the circuit is blinking. And this is like, I mean most of us carry camera phones in our pockets. This is a really easy way to debug an infrared circuit before my sensors aren't working. Is the thing even lighting up? Check that your camera phone is shit and doesn't have an IR filter before you get angry. A great way to do this is I tested this last night, is those little therapy keyboards on that TV thing in the real hotel rooms, those work on infrared. TV remotes work on infrared. All kinds of shit works on infrared. You can even just put an LED into a bench power supply with a resistor and just light that shit up. But do check because camera phones are getting better and better and better and better and they're starting to use IR filters and I don't know what I'm going to do with myself. So cool debugging trick. This is a polar bear. It's so cute. Ah, that vodka. Ah. Fuck it. That's still straight vodka. Correction please. I'm not going to tell you some last year. This is some shit I did wrong. Threaded bolts. How do they work? Wrong. Okay. This, you're just going to rip the head off the bolt or rip the, oh, my God, I forgot this word last year, too. What's the twirly? Threads. Yeah. All right. You're going to rip the threads off your bolt. That would suck. Don't do that. This is a machine that does nothing but bend bolts. Don't do this either. This is sometimes actually okay if you go out and buy expensive special bolts that are made for sheer loads. They do make them. Thank you to all you lovely people who sent me angry e‑ mails. Now I've corrected it. Awesome. This is still the right way in general. You're actually not relying on the bolts for the holding force but instead you're holding two pieces of metal together and relying on the static friction to be your primary holding force. Because bolts are zinc-plated shits. And you don't want to rely on them. Four bar linkages, these things are pimp. So let's imagine that like you just can't mount a big-ass pneumatic on the front where it's going to run into everybody, but you need things to go up and around and back. So what you can actually do is imagine you're either driving the orange linkage or you put a motor on the orange bolt and you're actually getting a very complicated motion out of that little red ball at the top. That normally wouldn't be possible without a lot of fucking effort. Does everyone understand this slide? Yay! So if you wanted to make a motion like this, you would be like holy balls, I need two motors with two dimensions and a lot of code to make sure it never goes out of these things because I want my little red balls. It's not the only way to do it. It's the only way to do it. And if you thing on the top to go exactly this track, and I go, wrong, bitches! Check that shit out! Four bar linkages are amazing! Like steampunk kids shit themselves over this. So, yeah. These things are really awesome. And there's all kinds of shit you can do here. So, yeah. These things are really awesome. And there's all kinds of shit you can do here. Here you're transferring, if you assume that that circle represents a motor that's driving that around, you're translating a, like, pretty rotational motion into a semi-linear motion. That's really pimp. Linear motions are hard shit. I hate pneumatics. I hate hydraulics. They're messy and they're awful and they're and, like, just, like, this is amazing. Like, I could do a whole, like, 50 minutes on four bar linkages and you guys should go look this shit up on Wikipedia. And, like, you guys should go look this shit up on Wikipedia. And a bunch of mathematicians went in there and made that look like intimidating shit, but it's not. If nothing else, we, like, we never did math for ours. We would always just take out cardboard and push pins and just be, like, is it working now? Like, you know. And once you get it right, you just tap it out in metal. Like, you know. But so think about this. Before you start doing, if you have a motion, and also you can change orientations here. So, like, let's say you have, like, I'm a little claw here. I'm a little claw here. Okay. And you want to go here and then you want it to be up here and rotated. You can also do rotations by having this part of the claw, a bolt here and a bolt here. You can have, like, the claw, like, rotate as part of it. It's really cool. If you're really a baller, you can have, you can make a curve which hits any three points of your choosing. But two points of your choosing is so easy. I do not want to see anyone having, like, soft coded, like, things that are, like, when it gets to this position, stop. When it gets to this position, stop for a motor. That's awful. That's bad. Use a four bar linkage. Use what you have. Also, this is a great way to gear down a motor because the arms are long. And long arms are levers. And that's lazy ass gearing. Awesome. This is a bearing. So, I'm so ashamed to have to go through this, guys. You don't even know. But, so, what I'm going to do is I'm going to show you how to do this. When you want to have a rotatey thing and a non-rotatey thing or two rotatey things that are independent, don't just fucking drill a hole and put a bolt in it. Because friction exists. Okay, guys? Like, this is a ball bearing. You buy them from the Internet, especially if there's any significant torque. They're really dead simple. This is a fucking blank slide. I'm sorry, guys. Oh, well. Thank you for talking to me today. I hope you enjoyed this video. Thank you for donating. I'm out of vodka. Sorry, guys. If anyone's got any more, it's right there. So, bushings are the lazy ass bearings. It's just a low friction piece of metal that you use and they just rub up against each other. But they're less rubby than doing, like, just flat out, like, aluminum on aluminum. Like, don't, no. Please, please. Baby Jesus cries. All right. Thinking things through the whole way. All right. So, not all plastics play together nicely. This is Loctite with a noncompatible plastic. This was my friend's senior project. It was so funny. So, when you're gluing plastics or Loctite, we're going to count that in as a kind of glue. Check that your plastics are compatible. There's lots of data sheets on this. You will not drive it empirically. You will look it up online. Unless you are crazier than me. And that's fucking impressive. Gear boxes versus momentum. If anyone's driven a manual car will know if you're going with your autonomous code 100% forward and then 100% backward, that could be some funny shit. So, give yourself, like, the difference between theory and reality is much smaller in theory than it is in reality. Give yourself a little room for momentum and shit and Murphy's Law. This is sad robot going backwards while it's leaning forwards. Oh, don't push robots. Don't push him. Because you know what, you use your battery to power your computer to tell your motors to rotate forward. And when you push your motors, you push your robot forward, the motors rotate and then feed current back into your very expensive computer. And then you're sad! Please, no. This is so easy to fix. You can have diodes, you can have cutoffs. Hello. What are you doing here? You can have diodes, you can have cutoffs, you can have tons of ways. You can have even a little shitty disengage that just unplugs, like, just a little, you know, like, jackdive switch that just unplugs the motors from the rest of the things. But please think about this. I have seen too much expensive shit die due to people not thinking about this. Because, you know, robots are heavy and you don't want to carry them because you're lazy like me. All right. Acknowledgements. I didn't have to learn all this the hard way. My mentors when I was in high school and retarded. I'm amazing. They didn't kill me. Former co-workers from NASA Ames LMR project. My very tolerant housemates. An IRC channel where I'm retarded. Hacker Dojo. I'm retarded. I'm retarded. I'm retarded. I'm retarded. And my college, which is pronounced Worcester. This presentation is creative commons. Buy attribution, noncommercial, share alike. I am Katie Levenson. I live on the fucking Internet. You should talk to me with corrections or whatever else or questions. I don't give a fuck. And save the Hacker Dojo because I love that place. have any questions? Sorry, man. I told you I talk fast. Okay. All right. So I'm going to repeat what that man said. James Watt was more proud of the full bar linkage than the entire steam engine. That's baller. Thank you for that history. Ah, Jesus. So this is a dirty secret. Is mechanical engineers think MATLAB is soft? And that's a really unfortunate thing. So while MATLAB sucks a giant dick, all of the libraries that you want are actually made out in MATLAB and provided by universities. So it kind of sucks but like being lazy is awesome so I don't know if you want to choose to bite the bullet or what. But that's about your options. Anybody else? It's like electrical engineers think C is the only programming language. Which is a little bit interesting. you know, C is an awesome programming language, but they're like, I know C. I'll do whatever the fuck this is in C. Fuck, FPGA is in C. It doesn't matter. I know C. So it's how the cards dealt. Anybody else got questions? Hi, Elliot. I just wanted to say hi. I'm going to have to leave after this, so I'm sorry to hang out. Incredible talk. I loved it. Thank you. Now I got to see Elliot at this conference. That's awesome. Anybody else got a question? I take over the world. No. So I make, like, hobby shit. Most of what I did was I worked on a lunar rover at NASA. Lunar rover prototype at NASA. Unfortunately, President Obama was like, fuck the moon. This is actually a really good story because President Obama was like, fuck the moon. Bush was like, man, what do popular presidents do? I know. I'm going to challenge India and China to a space race. He's like, hey, bitches, we're going to the moon in 2020 and we're going to Mars in 2030. And he called NASA, he's like, guess what I did? . And NASA was like, you're going to foot the bill for that? And he's like, fuck, no, you figure it out. And so everything, so everyone is like, why does NASA suck now? It's because NASA is like, we can't do this. And Bush is like, I don't know what I'd keep you around for if you can't even go back to the moon. You did that shit in the 70s. And so basically they had to throw every project under the bus to try to get back to the moon in 2020. And then Obama's like, what the fuck are we doing here? And then in 2009 he canceled project constellation. And that was all the layoffs. They minimized the like, oh, there were only so many layoffs, but they don't count all the payload teams. They only count the teams doing the rockets. And so that was unfortunately the end of my adorable lunar rover. Which is so cute. It was like 10 kilograms and I hold it in my arms. It was so cute. But yeah. Any other questions? Yep. I found it in my hotel room. I don't even know. I just found it in my hotel room. I just found it this morning. I'm like, this is going with my fancy ass dress. I love Vegas. Next question. Going once. Going twice. Oh, hey, what's up, man? Oh, okay. Sure. What do you want to know? It was so cute. Sorry, what? Oh, okay. Okay. So it was meant as a scouting mission. Because, like, so the moon is such a bitch. Like, it's really ridiculous. Like, basically, the surface of the moon is like, it gets hot and cooks all this shit together. And then these meteors come in and they bang it up and they break it all up into itty bitty bits. And then you have like these razor sharp things that stick to you with the same mechanism as Velcro does. And they hold electrostatic charge. And then they don'tized they don't charge. And then like they'll discharge electronic static charge all over you. And they'll also hold radiation and dump that all over you. And a day is 28 days on the moon. So like you have a, what's that? Math. I'm drunk. So it's like a 14 day day and a 14 day night. So the temperature swing is ridiculous. No one actually, I know that everyone is like, oh, we put a buggy on the moon. But like no one has actually put a long-term mission on the moon. Because the moon is so crazy. We put our rovers on Mars. The only one that has ever put a rover on the moon is the Russians. And they put like a tank on there. Like the Lunar Croft was crazy. So like it's actually amazing how little we've spent on the surface of the moon. Because the surface of the moon is crazy. So this was a little shitty scouting mission. It basically had a camera on the front and a camera on the back. And it was a little shitty on the front. And the goal was just to drive that fucker until the sun cooked it. Because the surface, like if you can imagine the temperature switch during a 14 day day with no atmosphere and nothing to protect you, it's ridiculous. Like if you look at the original lunar extra outside of the mission drivey buggy shit, they used piano wires on the wheels. Because they couldn't use rubber. Because it wouldn't work. And they couldn't use rubber. And they couldn't use metal. Because the first rock would pull it up. So they actually took piano wire and tuned it around. And then they let the rocks get absorbed up into the piano wire. And then like the rocks would just fall out later. Like the science, like it's so crazy. Like I understand why Mars is so important and so awesome and some place we might actually live someday. But like the moon is such an ultimate engineering challenge. I think that people really underestimate the moon because of the distance involved. But the moon is such an awesome engineering challenge for thermal engineers, for mechanical engineers. I mean, basically on a lunar mission, software is the like we'll fix it in software and support team. We clean up everybody else's messes. Like someone wanted me to overclock and underclock the processor to function as a heater. Like we are so secondary. It's not even, it's not even, it's not even fucking funny. Like it's very, very humbling to realize that like despite the fact that you have to have a mathematically foolproof system, you are not the one holding the hard challenges on this team. And that's an incredibly humbling experience. I'm sorry. I don't even remember what your original question was. Did I answer it? All right. Any other questions? Can you tell us some stories of epic fail? Oh, my God. I can tell you so many stories of epic fail. So one time, I know I put this in last year, but it's so good. So like one time, I, we were making a robot and it was two nights before the ship date because it was for a competition where they take away the robot. And so we were just testing the robot. And, you know, the battery is whatever. Like, you know, the battery is like, you know, it needs to stay in there. So we bolted it down with some metal C-clamps. That seems reasonable. And then as we were driving around, the metal C-clamps like waggled themselves out and got over the contacts. And like arced it right into the steel frame. And now I advise you to use Velcro on your batteries. Because fire is bad. Most important formula for robots, black plus red equals fire. Oh, so, oh, my God. So, so, oh, my God. So, oh, my God. So, oh, my God. So, Velcro is great shit. We also, I was once on the Carnegie Mellon, that was actually really humiliating because I graduated and I was like chilling with Carnegie Mellon and then my alma mater is the one that wins the half a million dollars for the lunar X prize. Fuck, I graduated too early. And so they were great. They had no suspension on the robot. They were doing a lunar regolith excavation challenge. And they decided to carry the robot around because, like, I'll tell you, during, like, when the shit hits the ground, the robot just hits the floor or the fan or wherever it hits. Like, people are really rough on robots. And so they dropped it into the pit where it was supposed to compete. And the electronics board did this little flexy shit while it was live. And it did this little arcing shit and then it didn't work as well. When you let the magic spoke out of the computer, bad things happen. So that was bad. Let's see what, oh, I ruined two walls in my high school. Oh, I ruined two walls in my high school. I had an angry nun chase me down the hallway. Fun fact, kids, when you get out of range of your wireless, you need to have the robot stop. When it detects it is not getting anything, it needs to stop because otherwise you will have no way to bring it back. This is really important if anyone does UAVs. Just putting that out there. If you lose, like, time out, just have it start landing slowly. Or you will never get that shit back until the batteries run out and it plummets like a rock. Let's see. What else? Oh, goodness. I've broken so many things. Yeah, that's all I can think of right now. Anybody else got questions? I have a legitimate question. So when will we have, and this is very appropriate, but not this particular audience, but for DEVCON in general, when will we have robots that we can have sex with? So, like. That's the best most of these people are getting. I know. He says that's the best most people here are getting. So, you know. The question was when will we have robots that we can have sex with? So that's a hard question. You would either have to tether it or finish fast, which I'm sure isn't a problem around here. Because right now the really limiting factor that's keeping robots out of our daily life is battery consumption. I wanted to put a slide on this but I got you drunk. So it's actually a hundred times more efficient if you're allocating about 30 pounds for energy for your energy budget to put a generator on there with gasoline than to put a lithium ion battery even pretending that cost was gone. It is like, I don't have a battery to fill the hot seat. It is like, into problem. Battery technology is really not keeping up with robots. That's why the only robots that you see right now are either domestic bullshit like the Roomba or things that have like a very controlled environment and have the capacity to plug themselves back in. Or you see something that's tethered to the floor like automation machinery. Or you see military shit and they don't care how loud it is. So unless you get turned on by a generator going . I would say that's one of the more serious barriers to robots in our everyday lives for sexy times or whatever else. And it's really great because cell phones are now like really up against the wall in battery life and they're putting a lot of money behind this. On the other hand, I cried inside when I saw the Apple and they were like, Apple has so much money. And they're like, oh, my God, guys, we made it so much better by making the battery bigger. And I'm like, no, make me a better battery. I want a better battery. I want robots everywhere. So if any of you happen to be billionaires and want to be like philanthropists and don't want to give it to the hacker dojo, and want to make the world a better place, I would say that the place where you can really make a difference is by improving battery technology. Because that's what's really holding us back from the robotic revolution, is it's just not energy efficient and people don't want generators and horrible gas smells and the noise in their house. I go off topic a lot. What's up, dude? What are your thoughts on self-driving cars? Baller. My thoughts on self-driving cars is they are baller. They are an example of a gas fueled engine, as previously stated. They're amazing. I really hope that they get good at what they're doing before the legislature goes, oh, fuck, guys. We have to stop this. They're really cool. On the other hand, I'm really sad because they're really cool. They're really cool. They're really cool. They're really cool. I'm so sad because Google's solution to running a self-driving car is to be like, we're going to take a $30,000 car and strap a $70,000 LIDAR on the top. This is scalable shit. It's like, fuck, though, I'll buy a Tesla for $100,000. So I'm really looking forward to LIDARs coming down in cost, and I believe it can be done. I believe the technology is out there. The problem is the only place we're selling LIDARs right now is to the military, and as you know, the military gives fuck all about the price. So I really want to see commercial LIDARs because I believe that that is what will hasten self-driving cars into the reality that you and I live with. By the way, I'm really not good about the future. I love these questions, but, like, I'm as much of an expert as this microphone makes me. So please take me with a grain of salt. I'll give you my best effort. What's up? So what languages do I like to program in for robotics? I would say the big, so the robots are really divided into, as I said before, batteries are really a limiting factor on robotics, and so energy consumption is serious shit. And you actually look at, like, the computers we have on robots, and they're awful. So there's usually actually two computers that are seriously involved. One is the embedded system on the robot itself, which is extremely bearable, and the other is extremely power-sensitive, and that is all embedded C. And then you have the off-board computation that does, like, sensing, because, like, I mean, fuck, off-board, you can plug it into a wall. Fuck electricity. Like, this shit is easy. So that is written in a variety of languages. There are excellent libraries for Python, excellent Python support. Another friend who's doing amazing work, if you think I'm good at robots, this man I think will be the next father of modern robotics. And his name is Kevin Harrington, and he works at neuronrobotics.com. They have phenomenal Python libraries. There are a lot of good Python libraries. A lot of it depends on OpenCV. OpenCV is varied. If you want to do vision stuff. I would say embedded C and embedded Python for the off-board computing side are probably the general tools of choice. Although I've seen everything. Because robots is such a new field. Like, Microsoft, I don't know if you've ever heard of Microsoft's made this, like, embedded crazy robot shit. I don't know if anyone's going to use it. But, like, everyone's trying to get into being the operating system of modern robotics, which is bullshit. Until we get batteries, you don't have fucking room to run an operating system. Fuck. When I made a rover, we didn't have virtual memory. Fuck that shit. Like, operating system of modern robotics, until we get proper batteries on there, is a joke. And everyone will hate me for saying that, but fuck them, because I'm right. Next question. I'm going to ask you a question. What's up? Can you shout a little louder? Ah, Jesus. Neuron Robotics has one. Willow Garage is trying RTOS A for effort. Sorry. Ross, not RTOS. RTOS is something different. Ross. Thank you, sir. Is trying Ross A for effort. Not sure on the implementation. They assume that you have this, like, magical, infinite battery life. But they are shiny. And when the battery industry catches up, they'll be kind of hot. I don't know if they'll be outdated before then. I... OpenCV is baller. It's actually used by a much broader community, including general computer vision. I can definitely answer that question better by posting something online. So if you ping me at Katie Levenson on Twitter, I'll put up... I'll go actually research this question and have an answer that's not pulled out of my ass. If that's cool with you. Next question. What's up, dude? Not intensively. You mean the arm? He asked, is there's a robot on the International Space Station. Are you familiar with that? Are you meaning the arms or... What? Yeah, I don't know shit about that. Sorry, dude. Assholes make shit up, man. I'm not going to make shit up. I'm giving you my best educated guess. And, I mean, I think that's the only way to keep respect is you say it when you don't know what the fuck you're talking about. What's up, dude? What kind of programming language and design strategy is going to Lunar Rover? So this is actually really complicated shit. Because... I don't know. I don't know. I don't know. I don't know. I don't 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 obsessed with flight heritage? Which means, like, fuck the risks. Someone else flew it. They obviously did their homework. It's like conference papers. I'm qualified to speak to this conference because people who spoke at the conference before think I'm qualified. Not this conference. I mean, like, bullshit conferences. So, because this is when the goons decide. They don't talk. But so it is complicated. People use VX works, which is, like, some kind of I have nightmares about VXworks. I really hate that system. And they also use it on your wireless modems and it works so well. I'm never getting a job from them. Fuck them. I don't want to work for them. So there was a low earth orbit. So there's a big differentiation between low earth orbit and higher earth orbit because the Van Allen belt is like radiation. No radiation. You're fucked. Imagine when you're designing your programming system, any bit can be flipped. Your stat counter, oh, I just changed that. Your PC counter, oh, I just changed that. And they expect you to design around that. And it's like, fuck you. So VXworks is what Spirit and Opportunity run, is what a lot of the computers run. I mean, rad hardened computers are a joke. Rad hardened computers is a really hard thing because anything that can go into space can be used as an intercontinental missile and the military gets all up in that shit. Because they don't like intercontinental missiles. I don't know why. So if you want to buy a computer that has less power than my cell phone, it's generally like $20,000 for the motherboard, $20,000 for the I.O. board, $10,000 for the power board. And that's for the prototype. And then they'll sell you one that's guaranteed to be a exactly like the one you're going to ship into space and that's $40,000 for the motherboard, $40,000 for the I.O. board and $20,000 for the power board. And then if you want to actually ship one to space, they'll sell you one for $80,000, $80,000 and $40,000 and that one comes in a magic plastic bag. And if you don't open it in a clean room and you don't do the magic voodoo and it breaks, they're not fucking liable. Defense, I mean, this is getting into my political belief, but defense contractors have gutted the American public's capacity to do science with their hard work. And they're not fucking liable. They're not fucking liable. They're not talking about hardware. And it's really frustrating. And I'm sure that many people in the audience hate me for saying that. But it's the nature of things, I feel. Are you throwing me off? I will not throw you. I will gently take you. All right. Thank you so much! You guys have been awesome!