Latest / Talk Python To Me / #232: Become a robot developer with Python
Transcript
- 0:00When you think about the types of jobs you can get as a Python developer,
- 0:03you probably weigh the differences between data science and web development.
- 0:07But did you consider programming robots in Python? And not just toys, but serious productive
- 0:12machines. It turns out there's a gap in the industry where we could use more Python developers
- 0:17in robotics. That's why I'm happy to have Ricardo Telles here to give us an overview of the software
- 0:22development side of robotics programming with Python. This is Talk Python To Me, episode 232,
- 0:28recorded September 11th, 2019.
- 0:31Welcome to Talk Python To Me, a weekly podcast on Python, the language, the libraries, the ecosystem,
- 0:49and the personalities. This is your host, Michael Kennedy. Follow me on Twitter where I'm @mkennedy.
- 0:54Keep up with the show and listen to past episodes at talkpython.fm.
- 0:58And follow the show on Twitter via at talkpython.
- 1:00This episode is brought to you by Linode and Tidelift. Please check out what they're offering
- 1:05during their segments. It really helps support the show.
- 1:07Ricardo, welcome to Talk Python To Me.
- 1:09Thank you very much. It's my pleasure.
- 1:11Yeah, it's great to have you here. It has been way too long since we've talked about robotics
- 1:16and Python on the podcast. We were just talking, and I think it's been at least four years since the
- 1:23last time we've talked about this. And the world is, of course, changing so much in technology and
- 1:30Python and robotics as well. So I'm really excited to have you on the show to talk about that.
- 1:34Yeah, it's my pleasure. I think that is, was the time to start, to continue talking about robotics
- 1:39in Python. Yeah.
- 1:40Absolutely. Absolutely. Now, before we get to that, let's start with your personal story. How'd you get
- 1:45into programming in Python?
- 1:46Well, I started programming in Python when I was doing my PhD, but there was just kind of,
- 1:53you know, for only for making this small experiment work. So it was actually, it was not programming
- 1:58Python, just copy pasting.
- 2:00And what was your PhD in?
- 2:02It's in artificial intelligence. I was using neural networks to move robots,
- 2:06to make them learn how to move and so on.
- 2:09Super cool. Okay.
- 2:10That was just the beginning. But then after that, then I started working to a company that
- 2:15is called Power Robotics about, we were building their humanoid robots. And then there is where I
- 2:22started to program more things in Python, especially when we started to use ROS, the robot operating
- 2:30system. So at that point in time, because ROS provides you this interface with Python,
- 2:35and it was quite useful. So that's when I really started to program in Python.
- 2:39Sure. What were you programming before you started using Python significantly?
- 2:43Oh, and C++.
- 2:44C++.
- 2:44Basically C++, yeah.
- 2:46It's for the company in robotics. C++ is very important because usually you need to have
- 2:53very fast products. So, I mean, your robot has to deliver very fast, for example, let's say,
- 3:00face recognition, a speech recognition, control of the movement. So that requires as much as
- 3:06possible. And for that, then it's C++.
- 3:09Yeah, absolutely. You think about the performance of Python, and I think it's a really interesting
- 3:13story because pure Python, the performance is not amazing. But a lot of times what you're doing
- 3:19with Python is either you're talking to some package that has like a lot of the behaviors
- 3:25in C or C++, or you're talking to other systems that themselves are running in C or some other
- 3:32language like that, like a database or whatever. All right. So I do think it's really interesting.
- 3:37Do you see people mixing Python and C++ or even things like Cython?
- 3:43In robotics?
- 3:43Yeah, yeah. In robotics.
- 3:44Definitely. Especially if you are using ROS. So with ROS, that is perfectly created. This
- 3:51integration, you can have slow nodes, for example, that are like a kind of behavior changing nodes
- 3:59or changing the behavior of the robot based on some pattern recognition or something. So the pattern
- 4:06recognition system will run in C++ because it needs to move very fast. But this behavior system
- 4:13doesn't need to be to go to the millisecond, you know, it could be half a second in order to change
- 4:19the behavior. So that could be running in Python. And then it simplifies a lot your work and your
- 4:26maintenance of the code.
- 4:27Absolutely. And even controlling stuff, probably, right? Like if I'm going to orchestrate,
- 4:32hey, C++ layer, get this image, tell me whether you recognize a thing, and then let me decide in Python
- 4:39what to do and kind of orchestrate the lower levels. I think that might also be common. Yeah,
- 4:44exactly. That's exactly the case. That what you mentioned is exactly the case. And by using ROS,
- 4:49you don't actually care what one program is written in another, they can talk transparently. So they don't
- 4:57know if the other one is written, and they interchange the information transparently.
- 5:03Yeah, that sounds really cool. We're going to dig into more of that for sure. But let's just really quickly tell folks what you do
- 5:09day to day so they know your perspective, where you're coming from, your experience.
- 5:13Okay, so I was working on that company, Park Robotics, for building the humanoid robots. But then I decided to build my own
- 5:20startup. It's about developing programs for robots based on ROS. So we have a platform online
- 5:27where you can develop those programs, create your programs in ROS, either C++ or Python,
- 5:33and then you test on the same platform by using simulations of the actual real robots. So you've
- 5:42already provided this, so the integration is very, very simple. You don't need to install anything in
- 5:47your computer and you operate directly with the web browser. You create the programs there with the
- 5:53environment that we provide and you test it on the simulation. And once you have this running,
- 5:58then you can switch the code into, you can deploy the code into the real robot. Actually, you can test,
- 6:05you can switch your code running from the simulation and then now let's click and switch to the real
- 6:12robot until everything works perfectly.
- 6:14That sounds like a really fun job actually to be working on. What's the name of the company? How
- 6:19do people find this place?
- 6:21Okay. Well, our company is called The Construct. So many people ask us, why is this name? So
- 6:29basically, The Construct, we wanted to build this place where robots can learn because there is a
- 6:39simulated world where they can play and they can try and so on. And then that's a construct concept that is
- 6:45in the movie of The Matrix. You know, The Matrix, when they get in, the world is built by the construct.
- 6:52And actually, our logo is one of the sofas of the chairs where Morpheus is explaining to the Neo that,
- 7:00hey, that's the construct and so on.
- 7:02The famous red pill, blue pill scene.
- 7:05Yeah, that chair. Exactly.
- 7:07Oh, cool. Yeah. I see it now. And it's the constructsim.com. I'll be sure to link to it in the show notes for
- 7:13people. That's really cool. Yeah. So that sounds like a really fun project to be working on. And I
- 7:18think this idea of having a simulation definitely has to democratize robotics, right?
- 7:24It's one thing to be able to write a little code, to look at an image and do something. It's a whole
- 7:29nother to put a humanoid creature together and do that.
- 7:33Yes, exactly. And that's a problem for the people who want to be a developer. Most of the audience of
- 7:40your podcast are developers. They're people that they are interested in developing programs. But what I
- 7:46found is that they usually are not interested in hardware issues. Usually. That's why they decided to
- 7:53become software developers in the first place. So that makes perfect sense. But there is a lack,
- 7:59there is a huge lack of developers in robotics. So at present, it's just us, the roboticists,
- 8:05that we are creating the programs. But I mean, the quality of that, I think it could be hugely
- 8:13improved if we have the help of real developers. And then the problem is this hardware thing,
- 8:20you know, and interacting. So with the simulations, we can provide this environment where the developers
- 8:29don't have to deal with the hardware. They test the programs, the simulation in the same way as
- 8:35developing applications for an iPhone. You can use those simulators, you know?
- 8:40So you said I could go to my web browser and like actually code up a simulation there.
- 8:45Is that in Python? Or is that in C++? And what's the experience like?
- 8:49Okay, so you have a typical IDE, so an integrated development environment, and typical that you have
- 8:57autocomplete and so on. And then you can program. So you create the control programs, the programs that
- 9:05make the robot understand the sentences or decide which direction to move or actually move the robot.
- 9:10Everything that could be written in Python or C++. But then there's the simulation itself,
- 9:17the simulation itself. In case that you don't want to use the ones that we provide,
- 9:21you can create your own. Of course, we use a program, an engine for simulation that is called
- 9:27gazebo. That is open source. So anybody can download it also. And then you have to create a simulation for
- 9:34that engine. And that is created by using format that is called URDF. That is basically an XML file.
- 9:41Cool. So you can create your own little world. What kind of simulations do you provide? Like,
- 9:45what kind of robots could I make? Could I do self-driving cars, humanoid things, delivery robots?
- 9:50You have all types of robots. We have even humanoid robots, human-sized humanoid robots,
- 9:57including the controllers for walking. So you don't have to make that robot work because it's already
- 10:03provided, all the controllers. You have drones, you have cars. In order to make self-driving,
- 10:09you have to build a program. Okay. And then we have what is called mobile manipulators. The mobile
- 10:18manipulators are robots that are intended to be in the warehouses, for example. And let's imagine,
- 10:26an Amazon warehouse. And then this robot has to be able to move on that warehouse to go to the
- 10:34shelf that is where is the product and then grab the product. So that's a mobile because it moves,
- 10:40a manipulator because it can manipulate the objects. Right. It's got an arm or something. Yeah.
- 10:45They do exist, the robots, but the problem is the software. Again, so the problem is the software. So
- 10:53the hardware is there. You can buy these kinds of robots, but they are not able to grab the thing.
- 10:59And it's a problem of software.
- 11:01Yeah. Well, it sounds like you're solving a really interesting problem. Now, before we get into the
- 11:06topic more broadly, I just want to talk about really quickly, you also have a podcast that people might be
- 11:12familiar with called the Ross Developers Podcast. And I'll link to that as well. You know, I just tell
- 11:16people who maybe want to listen to a whole bunch of stuff about Ross as well after this show about your
- 11:22podcast. Yes, yes, definitely. So in this podcast, what we do is to interview people that are experts
- 11:28in Ross and especially about how to program robots with Ross. And then they explain to us how you can do
- 11:36this, how they have done to create, make a robot, create a map. So they teach which packages they
- 11:42have used, where to download the code already there. And we try to have fun also there.
- 11:48Yeah. It sounds like a good show. I enjoyed listening to an episode or two. Now let's just talk real
- 11:54broadly. When I think about the Python developer space, at least, maybe I have this wrong, but I see it
- 12:02broken up into a couple of areas. I see there's a big chunk of web developers writing Flask, Django,
- 12:07Pyramid apps, talking to databases, worrying about scalability, uptime, Docker, et cetera.
- 12:12There's another significant group doing data science with NumPy, Pandas, Jupyter, Lab, et cetera. And
- 12:22they're doing their thing. And then I see the world is kind of like other. And that other is super,
- 12:28super diverse, right? It could be physicists, it could be biologists, it could be financial folk,
- 12:35right? DevOps. There's just so many things. So I guess one of the areas that, you know,
- 12:40seems really interesting is this area of becoming a robotics developer. So is this like a growing area
- 12:49that people might look into? Is this a popular area for Python? It sounds like it is. What's the story
- 12:55around there? Yes, definitely. So I think that becoming a robotics developer is now the moment
- 13:02to start thinking about it. It's I think of robotics developers, like when we were thinking about data
- 13:09scientists, some years ago, let's say 10 years ago. Yeah, like 2011, 2012, 2013, when they were all sort of
- 13:17switching to into Python and more programming oriented stuff rather than say, or something that's more
- 13:23statistical based, right? Yes, or deep learning. Also, in deep learning, 10 years ago, there were
- 13:29just a few of them. And now it's completely full. It's feel, sorry, it's completely filled of people,
- 13:36everybody's doing data scientists. And then now the situation for becoming a robotics developer is a very
- 13:42good one. Because as I mentioned, there are just a few people. And also, mainly, we are roboticists,
- 13:49mainly of the people is just roboticists, or very hardware oriented people. And then if you are a
- 13:56developer, you have a chance there. Because you know the skills better than anyone. And that is
- 14:02programming. And the tools sound like they're tools that people would maybe already be familiar with,
- 14:08or very similar to stuff they've already done. And it's probably not a huge field, you know, millions and
- 14:14millions of people building robots necessarily in terms of developers. But it's probably good jobs,
- 14:20interesting jobs, you know, you probably get to move around and do cool stuff and not just sit in a
- 14:25cubicle, right? And work on like optimizing marketing conversions or whatever.
- 14:29The thing is that this robotics market is exploding. And actually, I have here some provision,
- 14:35some forecasting for 2024, for example, is now a present, specifically only for development with Ross,
- 14:45it's the market is about 312 millions, 312 millions, but it is expected in 2024 to be about 500
- 14:55millions, the market. So it's almost doubling, almost doubling, yeah, yeah. And then I can tell you,
- 15:03for example, that recently, Amazon has entered last year, Amazon entered into the game, and they have
- 15:10the robotics division. And NVIDIA also entered into the game some years ago, and Google is going to
- 15:18enter this year. And Microsoft also, Microsoft has entered last year, also presenting their own Ross
- 15:26version in Windows. So very, very big players are getting into there. And you know that big players,
- 15:32they don't go there just because they are bored, it's because they are feeling that there is
- 15:38something there to get.
- 15:40All right, they want to ride the wave.
- 15:41Yes.
- 15:42Yeah.
- 15:42That's why I think it's a very good possibility. Also, there is a very famous conference, it's called
- 15:48the RossCon, is the Ross Conference official. And it's actually, it's in two months, it's going to be
- 15:55the next edition. And there, all the companies that show, we are hiring, we are hiring, we are hiring,
- 16:01we are hiring. There is a demand for software developers in robotics.
- 16:06This portion of Talk Python To Me is brought to you by Linode. Are you looking for hosting
- 16:11that's fast, simple, and incredibly affordable? Well, look past that bookstore and check out
- 16:16Linode at talkpython.fm/Linode. That's L-I-N-O-D-E. Plans start at just $5 a month for
- 16:23a dedicated server with a gig of RAM. They have 10 data centers across the globe. So no matter
- 16:28where you are or where your users are, there's a data center for you. Whether you want to run
- 16:32a Python web app, host a private Git server, or just a file server, you'll get native SSDs
- 16:37on all the machines, a newly upgraded 200 gigabit network, 24 seven friendly support, even on
- 16:43holidays, and a seven day money back guarantee. Need a little help with your infrastructure?
- 16:47They even offer professional services to help you with architecture, migrations and more.
- 16:52Do you want a dedicated server for free for the next four months? Just visit talkpython.fm
- 16:57slash Linode. I think a lot of people grew up dreaming of working with robots and all these
- 17:04things. And then, you know, you, you realize that it's hard. The hardware is tricky. And, you know,
- 17:12maybe the jobs aren't there, but it's, it sounds like maybe that's becoming a reality. That's cool.
- 17:16Yes, definitely. And the main problem that they can face maybe is about dealing with the hardware.
- 17:24But as I mentioned before, then dealing with hardware can be kind of substitute by using
- 17:30the simulation. So you can replace a lot of work with hardware by using the simulation. And then
- 17:36also by using ROS API. That's the combination of the both things.
- 17:40Yeah. So tell us a little bit more about that. I mean, your company has this virtual world sort of
- 17:45integrated online space for doing these. Does ROS itself have like capabilities for running in a
- 17:52simulation mode or something like that? Yes. Together with ROS, when you install ROS, it's open source.
- 17:59So anybody, listeners there, you can download right now if you want. And together with ROS,
- 18:05you are installing the official simulator that is called Gazebo, like a Gazebo. Yeah.
- 18:12And then this allows you to simulate your robot. Actually, there are a lot of simulations already there.
- 18:18And then you can download also in your computer and execute. Then having said that, good luck.
- 18:26Okay. Because well, so you download, you know what happens. You download that then it shows this effect
- 18:33that I call it works on my machine, you know? Yeah. Have you seen the certification program?
- 18:38There's an official, it works on my machine. Okay. No.
- 18:44It's really hilarious. I'll definitely put a link in the show. So there's somebody made a joke about this
- 18:51at some point and did a blog post. And so let's see, to officially become certified is you compile
- 18:58your application, assuming it's a compile language. Getting the latest from recent code changes out of
- 19:04source control is totally optional. You launch the application or website. You cause one code path
- 19:09to be executed. The preferred way to do this is with ad hoc testing. admitting the step is fine.
- 19:16If, five lines have changed and then you check in your code and now you're, you're certified to get
- 19:22the badge. I'll open it. Certified.
- 19:24Isn't that great. You get it, the simulation set up on your machine and then, you know, it's,
- 19:29it's tricky to, to deploy this or share it. Is that what you're saying?
- 19:32Yes. It's tricky because there are a lot of versions. The versions are changing constantly.
- 19:38And also there are a lot of requirements from other libraries that they are changing also again.
- 19:45So you get this effect, you know, that multiplies. And of course, I'm not telling that developers,
- 19:51the listeners of the podcast, they cannot do it. No, I'm not telling this. Okay. I'm talking about
- 19:57efficiency. So many of the people we talk to about our product, they say, no, so why would I pay you
- 20:03if I can do it? And it's completely fair because they can do it. But most of our clients, they can
- 20:09also do it. It's not that they cannot, but they don't want to. Yeah. That's the, yeah, it's,
- 20:14they want to focus on the core problem they're trying to solve and not all the stuff around it.
- 20:19Right. Exactly. Okay, cool.
- 20:20It's another point here is about working into teams or, or for example, where system is very useful and
- 20:28used actually by, for example, by universities, because the teacher can create a demonstration,
- 20:36simulation with a code that makes the robot grasp something. And then it can share with the older
- 20:44students, 200, 300, 1000, whatever. It will work in the exact, exact same way as for the teacher. So
- 20:52the teacher knows that this is going to work for this guy and they don't have to prepare anything.
- 20:56Yeah. It's not like, well, you've got an old version of macOS and it has the wrong dependency here.
- 21:02So it won't work or you don't have the right permissions or all that stuff. I mean,
- 21:06it sounds a little bit like the problem that Jupyter Notebooks solve for teaching data science and other
- 21:11types of courses where you can just say, here's a URL. You just go use this and it's all set up just the
- 21:17way we need it to be. Right. Exactly. Actually in our product, we use Jupyter Notebooks for the
- 21:23documentation and demonstration. I will send you one example. When we call a ROSJ. The ROSJ is a ROS project,
- 21:31which contains everything. It contains the simulation, the code, the documentation and
- 21:36data sets. And so it's a simple link. And then I will send you one example to you so you can have a
- 21:42look and maybe share with the audience. Yeah. Yeah. I'll put it in the show notes.
- 21:45You will see that it opens the Jupyter Notebook and then it says the Jupyter Notebook, oh, do this. And
- 21:50then the robot will do that. And then you can see that it actually works. That sounds really fun. Yeah.
- 21:54Definitely share that with everyone. That'll be fun to play with. Now let's talk a little bit about the
- 21:59different types of robots. So I have a robot in my house and it looks about the size of a plate and it
- 22:06drives around and it gets stuck in my furniture. When it's not stuck in my furniture, it's trying to vacuum up
- 22:11stuff around the house. Okay. So we have vacuums and actually those are pretty cool. Even some of
- 22:17those like Roomba and stuff, there's some that are programmable, right? Many things to say about
- 22:21this. You can stop me anytime, okay? Because I have a lot of things to say. So first thing I would like
- 22:28to say is vacuums is, I would say that is the only real robotics business that has been successful.
- 22:38I think, I don't know the numbers, okay, of all the robotics companies, but I mean in the case of
- 22:44service robots. So the vacuum cleaner is called a service robot. Consumer level robots, right? Yeah.
- 22:51Exactly. So those are robots that are working. They are doing their work in environments where there is
- 22:56people around. They have to figure out how to manage changes in the environment, not industrial robots.
- 23:02Okay. I'm not talking about those, but about service robots. I think that the vacuum cleaners,
- 23:07the iRobot or any other brand, those are the only ones, robotic companies that have been successful and
- 23:14made a business. The rest of the ones, they are living on investment, you know, on rounds of VCs and so on.
- 23:22Yeah. It's all future valuation and VC money and hope.
- 23:26Yeah. And hope. Exactly. So that's the first thing I wanted to say about the vacuum cleaners,
- 23:31because they deserve all the respect.
- 23:34They actually are a success story, right? In a sense.
- 23:37Exactly. A success story. And then the other thing you mentioned about programming,
- 23:41the version of iRobot is called Roomba. There is a version, I don't remember exactly its name,
- 23:49but it's programmable. So you can programmable. Then some of the guys of the developers of the
- 23:57ROS, some of the guys decided to use it as the base for creating a simple robot that all the ROS
- 24:05students, they can use it and they can buy for a low amount of time and then start performing tests
- 24:11with ROS and so on. It's called the Tartelbot. So the Tartelbot in the inside has a Roomba,
- 24:17a programmable Roomba that is called, oh yeah, I remember. It's called Kabuki. Kabuki.
- 24:23Yeah. Kabuki. Okay. That's pretty awesome. They should just leave it vacuuming just so wherever
- 24:28the robot works, it's just super clean. I had no idea they did that. That's really interesting.
- 24:34I knew you could program. I didn't know that it was being like repurposed for this, these other areas.
- 24:40Another area where I think robotics, I don't even, you tell me if this is the right word,
- 24:47but certainly machines operating autonomously in the world seems to have taken hold somewhat,
- 24:55maybe not mainstream commercial success, but kind of crazy success for how complicated it is,
- 25:00is cars, right? Like Tesla, even just the Teslas are unbelievable in how that they can interact with
- 25:09their environment. And then you've got cruise automation, you've got Google, you've got NVIDIA,
- 25:14Uber actually building truly autonomous cars. But, you know, even going for a ride in a Tesla on a city
- 25:20street is a very weird experience.
- 25:22It's amazing, but they still haven't reached the level five of autonomy. So it means that they can't go by the,
- 25:29yeah, not yet, not yet. And it's going to be very difficult to reach that. They are expected to release very,
- 25:36very soon this system. But personally, I don't believe it that it's going to be very soon because it's very,
- 25:42very complex. It's very complex here.
- 25:45The edge cases seem so hard, right? You get 95% perfect, but the consequence of failure is so high.
- 25:52Yeah.
- 25:53If you run over a person one every hundred thousand times, that's still a really big problem.
- 25:57Exactly. That is a point. That is a point. For the main thing, it works. It works. So I have been
- 26:04with some people from other companies that they are building this and they gave me a ride and the
- 26:10experience is amazing. So it's in a very good condition, but for all the conditions,
- 26:15for all the types of people, the types of clothes, the types of materials, that's not working. It's not
- 26:21not working yet.
- 26:22Yeah. Yeah. Yeah. Not yet. I'll share a really quick story with folks. We rented for four or five days,
- 26:30a model three Tesla, and we were driving and my wife was, I rented it for my wife to try it out. And
- 26:35we were driving down the street and she really wanted to try the self-driving. So she turned it
- 26:39on and it was fine, but it got to a place where the stripes on the road were faded or it's the Tesla
- 26:46became uncertain of the environment. And it told her to put her hands on the wheel and take control of it
- 26:51because it needed her to be ready because it was getting into this uncertainty zone. And she puts her
- 26:56hands near it, but not physically touching the wheel. So it didn't know she was holding on or ready to
- 27:02hold on. And it got really mad. It told her to do it again. And then after a couple of times of saying,
- 27:07do this now, it's just said no more self-driving for you. And it pulled over and stopped.
- 27:12It just said, if you're not going to take the wheel, we're done self-driving, no more self-driving
- 27:16this entire drive until you shut the car off for a while, then you can self-drive again.
- 27:20No way.
- 27:22Isn't that funny? She's like,
- 27:24it got mad to me and we won't drive anymore. I'm like, we said to hang on. She's like,
- 27:28I was hanging on. Like you were almost hanging on. It didn't know.
- 27:31So now we are going to have fights with a partner and with a car.
- 27:36Exactly. The car got mad at me. So I, you know, I mean, these are the ways they can deal with it
- 27:42now, but it's going to be real. I do think though, that cars have come surprisingly far in robotics.
- 27:48As far as I thought, I thought this problem is just too hard for cars. They were actually quite
- 27:52close to this level five. They're not there for the problems we already talked about, but they're way
- 27:57farther than I would have guessed 10 years ago.
- 27:59Yeah. Yeah. Yes. That's right. That also was a surprise for all of us. So it was like,
- 28:04there was nothing. And then suddenly, boom, then it started the development. I think that it was,
- 28:11everything started with the DARPA challenge. I don't remember exactly the name. That was one of the
- 28:17first. They have to cross a desert. And then the first edition, there was nobody. And the second
- 28:24edition, there was the team from Sebastian Thrun, who is the founder of Udacity. Sebastian Thrun.
- 28:32And then he made it. And then on the next one, there's so many other cars. They did it. But that's when it started. Then from that point, that's it. Then they created a company. This company was bought by Google. And then when Google started to do that, then it's kind of like it explode. It explode.
- 28:51So now there's companies, drivers, driverless cars, companies, many, many around the world.
- 28:57It's really amazing. There's a super good documentary by Nova, which is this like public broadcasting
- 29:05organization in the US or series called The Great Robot Race. And I'll link to it. And it takes you,
- 29:12it's like an hour and a half deep techie dive into this DARPA challenge that you talked about. And it's really amazing.
- 29:19Okay. Taking note to watch it.
- 29:21It's super cool. I'll put a link in the show notes.
- 29:25This portion of Talk Python To Me is brought to you by Tidelift. Tidelift is the first managed open source subscription,
- 29:31giving you commercial support and maintenance for the open source dependencies you use to build your applications.
- 29:37And with Tidelift, you not only get more dependable software, but you pay the maintainers of the exact packages you're using,
- 29:44which means your software will keep getting better. The Tidelift subscription covers millions of open source projects
- 29:50across Python, JavaScript, Java, PHP, Ruby, .NET, and more.
- 29:53And the subscription includes security updates, licensing, verification, and indemnification,
- 29:58maintenance and code improvements, package selection and version guidance, roadmap input,
- 30:03and tooling and cloud integration. The bottom line is you get the capabilities you'd expect and require
- 30:09from commercial software. But now for all the key open source software you depend upon,
- 30:14just visit talkpython.fm/Tidelift to get started today.
- 30:19So let's bring it back to Python a little bit. Now you talked earlier,
- 30:23about this back and forth between Python and C++. And sometimes maybe you prototype in Python and then write in C++,
- 30:31or maybe there's an orchestration or something. I don't know, where would you get started?
- 30:35If I wanted to get started as a developer in robotics, would I start with Python?
- 30:39Would I be limited by doing that? What's the story there?
- 30:43This is my personal opinion based on my experience.
- 30:49So besides this development environment, we teach people about how to become a robotics developer.
- 30:55In our academy, that is also an online academy, uses the same engine as the development system.
- 31:01So it's everything online, you see simulations of robots, and then you learn.
- 31:04So what we teach there is that if you don't know anything about C++ or Python,
- 31:12then you should start with Python.
- 31:15So you start learning Python, and then you start learning ROS with Python.
- 31:21So how to program in ROS by using Python.
- 31:23If you know Python already, then okay, then still start by learning ROS with Python.
- 31:30And the only option for starting with C++ is because, I don't know, it's your only option for getting a job.
- 31:38You are very, very stressed, and that's the only option that you have to leave.
- 31:42But if you want to optimize your path, then start always by learning Python.
- 31:47Then ROS with Python.
- 31:49And once you know the basics of ROS with Python,
- 31:53then you can decide whether to go back and learn ROS with C++.
- 31:59Again, and why is that?
- 32:02Because ROS with Python is hiding, not many, but a bunch of details.
- 32:08Important details, yeah.
- 32:09Yeah, very complex to understand when you are new there.
- 32:14So it's easier for you to understand really how ROS works
- 32:18and how you make a robot based on ROS to do a task, to finish a task.
- 32:24So you can master that with Python a lot faster.
- 32:28Then in order to go back and relearn with C++, you have to reconsider
- 32:32if you are going to dedicate yourself for working, programming robots for industry, for companies,
- 32:39or you are going to dedicate to program robots for research.
- 32:42That is also a big space where developers can dedicate.
- 32:47It's a big space where you are going to be able to do a job.
- 32:52So you have to learn new things or discover new things with robotics.
- 32:54In that case, Python is a lot better because in this case, what is vital is to present the results as fast as possible.
- 33:05And for that, I mean, Python is the winner.
- 33:07It's always the winner in that case.
- 33:09So even if execution is slower, it's good enough to record the video and present the paper.
- 33:17And that's what is required in research.
- 33:19Yeah, absolutely.
- 33:19That's really interesting.
- 33:20When you think about performance between Python and C++, if you're going to run some code just a couple of times or something,
- 33:27and you factor in from the time I start working on the idea until I have the answer,
- 33:31maybe C++ runs five times faster.
- 33:34But it takes you a day in Python and a week in C++, right?
- 33:37Which language is faster, right?
- 33:39Like that's an interesting question as well.
- 33:41Exactly.
- 33:41Yeah.
- 33:42Python, definitely.
- 33:43Yeah, for sure.
- 33:44So one of the dramas, challenges, I guess, success stories coming up, but it's been a long journey these days,
- 33:54is legacy Python versus modern Python or Python 2 versus Python 3, right?
- 33:58What's the Python 2, 3 story around robotics?
- 34:02It's a pain.
- 34:03It's a pain.
- 34:07It's a pain.
- 34:08I mean, so I'm talking here always about programming robots with ROS.
- 34:13Okay, so what's the problem with ROS?
- 34:16That ROS works with Python 2.7.
- 34:20Up to now, the latest version of ROS still works with 2.7.
- 34:26Then ROS has started 10 years ago.
- 34:32And so now it has matured for 10 years.
- 34:35But it became clear that this structure of the current ROS was not going to be sufficient for real robot applications,
- 34:45for companies to adopt ROS into their products massively.
- 34:50Because of that, they decided, the organizing committee of ROS decided to create a new version of ROS that is called ROS 2.
- 35:01And then when they decided this, they started like three or four years ago to develop, to start development,
- 35:08and they decided to do it in Python 3.7.
- 35:11So if you are going to jump into ROS now, then if you are going to jump into ROS 2, then you are saved.
- 35:18Okay, because you are going to learn Python.
- 35:21You are going to use Python 3.7.
- 35:23So it's a future.
- 35:24It's everything.
- 35:25Well, yeah.
- 35:26You can use all the new libraries, TensorFlow, NumPy, whatever, the latest version of all the good things.
- 35:31Even there are other libraries that we use in robotics, like the ones created by OpenAI.
- 35:38OpenAI, you know about that company?
- 35:41Yeah, tell us about it.
- 35:42Okay.
- 35:42It actually was founded by Elon Musk, the founder of Tesla.
- 35:48So the CEO of Tesla.
- 35:50And they are concentrated on creating very good reinforcement learning algorithms using Python.
- 35:56They use Python only.
- 35:57And they use Python 3, of course.
- 35:59So that's very cool because we use those.
- 36:03Then you can use it in ROS 2.
- 36:05But if you are going to jump into ROS 1 because it's the current standard,
- 36:09so most of the places you are going to use ROS 1 yet,
- 36:14then that's based on 2.7, Python 2.7.
- 36:18And you're kind of stuck in that world, right?
- 36:20Yes.
- 36:21Well, the next version, the next distribution of ROS 1 that is going to appear in 2020,
- 36:28it's going to be based on Python 3 already.
- 36:31Okay.
- 36:32Well, that's a pretty positive story.
- 36:33That's going to be a festival.
- 36:35I mean, it's going to be a big party among everyone because imagine everyone already changing their code
- 36:41into that other version.
- 36:43So it's going to be crazy.
- 36:45Yeah, that'll be wild.
- 36:47No, but that's really good.
- 36:49Now, maybe there is some code.
- 36:51I've prototyped in Python and it's working well, but I need to move it into production.
- 36:56I want to put it onto a real robot.
- 36:59Maybe that robot has limited computation power or whatever.
- 37:02And I want to make it go faster.
- 37:04What steps do I need to take?
- 37:05Do I rewrite part of that code in C++?
- 37:09Have people use Cython on parts of their Python code to make it go faster or other things like that?
- 37:16What's the productizing my robot story?
- 37:19I don't know about this Cy...
- 37:21How do you call it?
- 37:22Cython?
- 37:23It's like CPython without the P.
- 37:24So what you get to do is you get to take a small portion of Python, put type annotations on it,
- 37:30and then compile it to native code as if it were C, through a C compiler.
- 37:34And it goes many, many times faster.
- 37:37So if you've got a Python program and there's some tight loop or some one module that's 200 lines long or something,
- 37:46you need that to go fast.
- 37:47You could hit that with Cython, rename it to...
- 37:51I think it's CPY.
- 37:52I forgot the extension.
- 37:53But rename it.
- 37:54I don't think that's right.
- 37:55But anyway, you rename it to a different file and you hit it with CPython.
- 37:58And then it just becomes like a C module that gets imported by your other Python code.
- 38:02Okay.
- 38:03So that's the first time that I heard about that.
- 38:06So I cannot tell you what is the difference between that.
- 38:09But usually what we do in those situations, in those situations is usually is first one, rewriting C++.
- 38:18So that's the, I mean, that's a straight, rewriting C++.
- 38:22Or another thing that is done is also to put a bigger computer.
- 38:26So you put a more powerful computer in the robot and that's it.
- 38:30If you cannot do that, also you can run in an external computer because ROS is how it is built.
- 38:39It doesn't care in which computer you are running the different programs in ROS.
- 38:45And they can communicate and transfer information transparently.
- 38:49For them, it's like if they were in a single big computer.
- 38:53So that's another option.
- 38:54Like kind of a distributed computing environment type of thing.
- 38:57Okay.
- 38:58Is it common to have kind of microservice architecture where I've got a robot and it's doing stuff,
- 39:04rather than it's making calls over the network to get more information or resolve information, things like this?
- 39:11It's actually for products.
- 39:13For robotics products, it's very, very common.
- 39:16Because they want to ship into the hardware as less as possible.
- 39:20And also they want to make you kind of trapped into their system.
- 39:28So you need that.
- 39:29But there is a very famous case.
- 39:32Pay the $4.99 for the continuous service monthly, right?
- 39:36Or whatever the price is.
- 39:38Exactly.
- 39:38There's a very famous case that just died a couple of months ago.
- 39:43It's called Cosmo.
- 39:45Cosmo Robot.
- 39:46You know that robot?
- 39:47No, I don't know this robot.
- 39:48A small robot that you can have on your desktop.
- 39:50It was amazing.
- 39:52It looked like, you know, this movie about the robot of Disney.
- 39:58Yes.
- 39:58The kind of big, fluffy, rounded white.
- 40:01Yeah.
- 40:01Yeah.
- 40:02Yeah.
- 40:02I know.
- 40:03Oh, man.
- 40:03I forgot to.
- 40:04That was a great show.
- 40:05Hero 5 or something like this?
- 40:07No, no.
- 40:08No, I'm talking about that.
- 40:09About this other movie that is a robot that stays on the planet.
- 40:13It's cleaning all the mess.
- 40:14Oh, yeah.
- 40:15WALL-E.
- 40:15WALL-E.
- 40:16Exactly.
- 40:17WALL-E.
- 40:17Exactly.
- 40:18Also a great movie.
- 40:19That one's a sad movie, actually.
- 40:21Yeah.
- 40:21Yeah.
- 40:22Anyway, sorry.
- 40:22Go ahead.
- 40:22So it looked like WALL-E?
- 40:24No, like the other one.
- 40:25The character.
- 40:26The female robot.
- 40:28White.
- 40:28So the face of this Cosmo, it was engineered by using graphic designers and developers of cartoons in this sense.
- 40:37So it was a super cool robot.
- 40:40It was.
- 40:41But, unfortunately, it was not a success in business terms.
- 40:46So they have to close the company.
- 40:48And now this robot is useless.
- 40:51So you cannot even use it because it requires the network in order to understand your vocal commands.
- 40:58Oh, I see.
- 40:59That's a problem.
- 41:00Yeah.
- 41:00Because once the company goes out, then the services die.
- 41:04And if they lean on the services too much, then it becomes a useless chunk.
- 41:08Exactly.
- 41:09Yeah.
- 41:09Yeah.
- 41:10That's a bummer.
- 41:10There is a famous, even more famous example that is called Jibo.
- 41:14Do you know Jibo?
- 41:15Did you hear about Jibo?
- 41:17No.
- 41:18That was first site of the Time magazine.
- 41:22This robot was there.
- 41:24And it was closed last year, the company.
- 41:27And then it was also the same problem.
- 41:30It was the same problem because it was not successful in terms of business.
- 41:34And so they couldn't maintain.
- 41:36And so everybody that bought this, they can just throw it out because it's useless now.
- 41:42Oh, no.
- 41:42That's such a bummer.
- 41:43Yeah.
- 41:44I've had that happen.
- 41:45I had a Pebble smartwatch.
- 41:47It was beautiful.
- 41:47But they went out of business.
- 41:49And, you know, like almost everything about it.
- 41:51It's still kind of cool, but it's way less than it was because the services are gone.
- 41:55So we're talking about putting some sort of computation unit on these little robots.
- 42:03Maybe talk about what those computers look like, what those operating systems look like.
- 42:08Because we could have a very small little robot, you know, the size of your hand.
- 42:12And maybe it has MicroPython on a $5 chip in it.
- 42:16Maybe we have a robot that's like a vacuum and it's got, I don't know, a Raspberry Pi running Linux.
- 42:22Or maybe we have a car that's got, you know, a core i9 CPU that's like, you know, the top of the line Intel CPU or something like.
- 42:32What's the spectrum of computing you put into these robots and operating systems and all that?
- 42:39Yeah, exactly what you mentioned.
- 42:40So we can do a small robot that only require maybe even an Arduino.
- 42:45Only with Arduino, you can make it work.
- 42:48You can make the robot perform the task that you wanted.
- 42:51Then you have a Raspberry Pi and the like.
- 42:55Then you have also the computer, the typical PC computer.
- 43:00For example, there was one very famous that is called the Intel NUC.
- 43:04That is a square, like a cube is small like this.
- 43:08Now the ones that are getting a lot of traction and a very big success are the Jetson from NVIDIA.
- 43:18Because they include some GPUs and then they allow you to do some deep learning inside the boards already there.
- 43:25Right.
- 43:26So in case that you want to use the data from a point cloud device.
- 43:31A point cloud is, for example, a Kinect device.
- 43:34So you can recognize objects or people.
- 43:37I hadn't heard of this Jetson thing.
- 43:39This is really cool.
- 43:40And it's...
- 43:40Yeah.
- 43:41NVIDIA Jetson.
- 43:42They're very small and they look like they don't even have fans.
- 43:45They just have really big heat sinks.
- 43:46I don't know.
- 43:47Yes.
- 43:48How big...
- 43:48What is it?
- 43:49Like 10 centimeters by 10 centimeters?
- 43:51Something like that?
- 43:52Maybe?
- 43:52Yeah, yeah, yeah.
- 43:53So it's very, very small.
- 43:54Yeah.
- 43:55Yeah.
- 43:55A hundred dollars for Jetson Nano.
- 43:56That's pretty awesome.
- 43:57Yes.
- 43:58And the power that they have is very cool.
- 44:00There is the Jetson Nano.
- 44:02And then there is another version.
- 44:03It's the Jetson whatever.
- 44:05And then there is another one that is more powerful.
- 44:07That is called the Xavier.
- 44:09Yeah.
- 44:09Xavier.
- 44:10And...
- 44:11And it's even more powerful.
- 44:12These are pretty...
- 44:13These are pretty intense.
- 44:14They've got some really cool ones.
- 44:15Yeah.
- 44:16And some of you have the GPU looking things.
- 44:20Yes.
- 44:20So that's another thing.
- 44:22Maybe if you need more power, if you have...
- 44:24Maybe you want to...
- 44:26You talked about some of the machine learning stuff.
- 44:27And of course, your background is in this area as well.
- 44:30GPUs probably play an important role for certain types of robots, I would guess.
- 44:34Yes, exactly.
- 44:35Especially, for example, it makes sense in the image recognition.
- 44:39Whenever you need your robot to recognize where it is, the location or the people or the objects by using a camera, then that's one of the cases.
- 44:48Also in the speech recognition.
- 44:50Also.
- 44:51And then also, they use a lot the GPU for training, for launching reinforcement learning algorithms that make the robot learn.
- 45:03But those usually are used in the simulation.
- 45:05Okay.
- 45:06Because in the real robot, it's very difficult to train the robot.
- 45:10Because in order to train a robot, you need to put it into certain conditions, then make them take some actions.
- 45:17And when they fail, you say, hey, wrong.
- 45:19And then you have to put it back.
- 45:21Yes.
- 45:22Yes.
- 45:23It's like teaching a kid or something.
- 45:25Yeah.
- 45:25Teaching a child.
- 45:26Yeah.
- 45:26I see.
- 45:27A child.
- 45:27Exactly.
- 45:28And then you say, yeah, very good.
- 45:30Very good.
- 45:30And then the robot gets excited.
- 45:31Oh, yeah.
- 45:32Super cool.
- 45:32And then you have to have somebody to put it back to the original position.
- 45:37And also, all the environment get started.
- 45:40So, that's not a good approach to do it with a real robot.
- 45:43And usually, this is done in the simulator.
- 45:45And once you are in the realm of the simulator, you have the cloud computers that they have whatever you want.
- 45:52Related to the operating systems that we use there, usually, we install Linux, Ubuntu specifically.
- 46:00And then on top of that is where we install ROS.
- 46:03Because ROS, even if it stands for robot operating system, it's not an operating system.
- 46:10It's a framework for programming inside an Ubuntu system.
- 46:14I see.
- 46:15So, maybe it's an operating system for the robot, but it needs its own computational operating system, which is Linux.
- 46:21Yeah?
- 46:22Exactly.
- 46:22That's it.
- 46:23Okay.
- 46:23That's it.
- 46:24And now, Microsoft has started to create a version of ROS for Windows also.
- 46:30So, you can install Windows instead of Ubuntu.
- 46:34But it's still not finished.
- 46:36So, it's still very early stage.
- 46:37Yeah.
- 46:37That'll probably bring in a lot more developers as well, though.
- 46:40You know, Windows is still a big platform that people develop on in a lot of places.
- 46:45So, having ROS there sounds like a good idea.
- 46:47Yeah.
- 46:48They are putting a lot of effort into that.
- 46:50Cool.
- 46:50Yes.
- 46:51I see robotics as an interesting way to bring young people into programming as well, right?
- 46:57Like, as you get older, you're willing to just plow through the things.
- 47:01Okay.
- 47:01I have to learn the for loop.
- 47:02And then I learn the class.
- 47:03And I learn the functions.
- 47:04And eventually, I'll do something interesting.
- 47:06But kids, they don't care.
- 47:07They're like, this is boring.
- 47:08I'm out of here after five minutes, right?
- 47:09But if they could see a robot.
- 47:11You know, my daughter is in sixth grade, my youngest one.
- 47:14And she had one of her electives in the morning is robotics.
- 47:18Actually, she just started this week.
- 47:19I'm not really sure what they're doing.
- 47:20But, you know, that's, it's really, I think, a good way to teach kids.
- 47:24And I think that might be the Microsoft angle as well, to some degree.
- 47:27Okay.
- 47:27That's strange for me.
- 47:29From my point of view of a roboticist, for me, I mean, it's very clear to use Linux.
- 47:35I mean, I would never go to Windows to program robots.
- 47:38For me, it's like, what?
- 47:40Yeah, of course.
- 47:40I mean, all this big thing that you don't need, that you don't need, because you only need to have the terminal and the commands there.
- 47:48And then everything works.
- 47:50You have full control of everything.
- 47:52Well, I just, I think there's these environments where, you know, kids are already sitting in front of a Windows PC, and they're going to use it.
- 47:58Or, you know, they're also, Microsoft's also working on, like, Edge IoT computing stuff.
- 48:02And I think it kind of fits into that realm.
- 48:05And I think that even they have some embedded Linux stuff that they're doing over there, which is kind of ironic and funny.
- 48:10Okay.
- 48:11I didn't know about that.
- 48:12Can't remember exactly.
- 48:12I think, I can't remember what, it's like, something sphere.
- 48:16It's at the edge of my knowledge.
- 48:19I should stop talking about it.
- 48:20But I do believe they had some embedded Linux somewhere.
- 48:23If I find it, I'll put a link in the show notes afterwards.
- 48:26Oh, you mean Red Hat?
- 48:27No, no, not Red Hat.
- 48:28There's something from...
- 48:30Red Hat?
- 48:30They bought the Red Hat version, isn't it?
- 48:33Didn't they?
- 48:34It's called Azure Sphere.
- 48:36That's what it is.
- 48:36Yeah.
- 48:37So it's Azure Sphere.
- 48:39And it's basically a hardened...
- 48:42I think it's Linux.
- 48:44Let me see.
- 48:45I'm not sure.
- 48:46But it's a hardened IoT device that basically has automatic over-the-air updates and a whole bunch of various security stuff and so on.
- 48:55But yeah, I got to look into it to make sure that it's Linux.
- 48:57But I think so.
- 48:58Anyway, the world is getting confusing, right?
- 49:00Like, it didn't used to look like that.
- 49:02Yes.
- 49:04It's getting confused.
- 49:06And related to what you mentioned about for the kids, yes, definitely.
- 49:10The more graphical, the better.
- 49:12So there is this...
- 49:14That is called...
- 49:16With programming for robots using blocks.
- 49:20That is called Blockly.
- 49:21Yeah.
- 49:22Okay.
- 49:23Blockly is one of them.
- 49:24But this is based on another one made by MIT.
- 49:28Basically, it's programming robots...
- 49:29Scratch, maybe?
- 49:30Blocks.
- 49:31Scratch.
- 49:32Scratch.
- 49:32Yeah, that's it.
- 49:33Scratch.
- 49:34Okay.
- 49:34Okay.
- 49:35So there exists also a version of Scratch in ROS.
- 49:39So actually, you can...
- 49:41If you are interested, Andrin.
- 49:42Oh, okay.
- 49:43So you could get started really early.
- 49:45I see.
- 49:45Okay.
- 49:46That's super cool.
- 49:47Exactly.
- 49:47So for that, in that case, for kids and for people with lower level of knowledge in terms
- 49:56of mathematics, physics...
- 49:57Maybe they're not typing really well yet or something like that.
- 50:00Yeah.
- 50:00Or programming a skill.
- 50:01Yeah, exactly.
- 50:02So that makes sense.
- 50:04Yeah, very cool.
- 50:04All right.
- 50:04Just to wrap up this Linux thing.
- 50:06Azure Sphere is a Linux-based operating system created by Microsoft for the Internet of Things
- 50:11applications.
- 50:11It's the first time Microsoft has publicly released an operating system running the Linux
- 50:15kernel.
- 50:15All right.
- 50:17So very interesting.
- 50:18The world is confusing and very mixed.
- 50:21Yeah.
- 50:21It's a fun time.
- 50:22All right.
- 50:22So let's wrap up this conversation, Ricardo, by talking about how people can learn ROS and
- 50:29programming robots with Python.
- 50:31We kicked it off by saying it's a good time to be a robot developer.
- 50:34Python's a good language to do it.
- 50:36What do people want to get into it?
- 50:37What do they do?
- 50:37In that case, there are several ways of learning.
- 50:40And then that depends.
- 50:41It's always the same.
- 50:42You want to invest more time or more money.
- 50:46So that's the situation.
- 50:47So let me give you the options that I usually provide.
- 50:51The one is going to the official wiki of ROS.
- 50:55So ROS is a present being created and developed by now is a company.
- 51:01It's called Open Robotics.
- 51:04And they release it for free.
- 51:06It's open source.
- 51:07You can do whatever you want with it.
- 51:09And then at the same time, they are releasing a wiki with some tutorials with a lot of information
- 51:14there about how to learn ROS.
- 51:17So that's the official wiki of ROS.
- 51:20That would be the first place.
- 51:21It's a little bit dry.
- 51:23As a first step, it's a little bit dry.
- 51:26But I learned by using this.
- 51:28So I learned using this because there was nothing else at that time.
- 51:32Then the other option, yeah, so we begin very early.
- 51:36Coming early, you got to just go through the docs and figure it out.
- 51:39But I have to say that for the time, those documents were amazing.
- 51:44The documentation, they put a lot of effort into the documentation because they knew that
- 51:50that was a very good point to attract people.
- 51:52So at that time, that was like, wow, that's amazing.
- 51:56I mean, it's dry, but it's amazing.
- 51:58Now, some years afterwards, so it's a little bit more complicated.
- 52:05But you have other options.
- 52:06For example, books.
- 52:07There are a lot of books.
- 52:08In Amazon, if you go, you will see a lot of books.
- 52:11We have our own series of books that teach the basics of ROS or how to use it for navigation.
- 52:17But there are many, many other books already available.
- 52:20Use the books.
- 52:21They're very nice.
- 52:22Then another way is to use the YouTube videos.
- 52:26So in YouTube, you will find a lot of videos.
- 52:29A lot of videos.
- 52:30We also provide these videos in our channel of our company.
- 52:35And actually, we do a ROS live class on YouTube every Tuesday at 6 CET.
- 52:44Oh, cool.
- 52:45Yeah, you just cover some.
- 52:47It's like a live stream.
- 52:48You just cover something different each time.
- 52:50And people can just drop in.
- 52:51Yes, it's a different subject.
- 52:53It's a different particular, very concrete problem.
- 52:56Something you can do in an hour, right?
- 52:58Exactly.
- 52:59What did you do last time?
- 52:59Yeah.
- 53:00So what is interesting is that the participants that connect, they are programming at the same
- 53:06time with me.
- 53:08So I provide to them on this live class with a ROSJECT that they get directly into the
- 53:15class.
- 53:15And then they start automatically into the browser with all the environment, the simulations
- 53:20and the instructions.
- 53:21So we are doing together.
- 53:24So I'm explaining, do this.
- 53:25You see here, do that.
- 53:27Do that.
- 53:27And then the guys, they are doing and then asking questions and so on.
- 53:31So and then last time, what we did was about making several robots create a map of an environment.
- 53:40So several robots, not only one robot, but several, they were moving around and creating the map.
- 53:46That's a concept in robotics.
- 53:47Yeah, that's super cool.
- 53:48Well, that is another of the options using the YouTube videos.
- 53:53And I'm telling you about those.
- 53:56Of course, I would say, I will tell you that you go to our academy.
- 53:59It's the Robot Ignite Academy, but that's a paying one.
- 54:03So the previous one, the official wiki is for free.
- 54:06The books is the price of the books.
- 54:08The YouTube videos are for free.
- 54:09So everything is free.
- 54:11You've got to watch an ad maybe, but other than that, it's free.
- 54:13Oh, yeah.
- 54:15Because of YouTube, right?
- 54:15Right, exactly.
- 54:16That's just YouTube itself.
- 54:17Yeah, yeah, exactly.
- 54:18That is right.
- 54:19That is right.
- 54:19Yeah, then you have your academy.
- 54:21Yeah, the academy is online and then it's not based on videos.
- 54:25It's based on practice.
- 54:27So you have to practice and do the things because whatever you read there, if you don't practice, it's not useful at all.
- 54:36And especially in RAWs, you need to see when you do this, what the robot does.
- 54:41And this is the system that we have implemented in our platform, in our academy.
- 54:47It's a system that where you get the instruction.
- 54:49So now you are learning this, then very quickly do this exercise.
- 54:53So you practice and you do this.
- 54:55So that's more practice focus, but it has a cost.
- 54:59It has a cost.
- 55:01And I think that those are the main options that they have for this.
- 55:06Of course, you have conferences.
- 55:08Sure.
- 55:08Yeah.
- 55:09Around the world.
- 55:09Summer schools.
- 55:10Yeah.
- 55:11Podcasts.
- 55:11Now, that's more awareness, I would say, not total straight on learning.
- 55:15It sounds like you can use the simulators, either your online one or the Gazebo one or something like that.
- 55:22And you don't necessarily have to start with hardware.
- 55:24Is that right?
- 55:25Exactly.
- 55:25That is right.
- 55:26Actually, our online simulator is Gazebo.
- 55:29So we have created a version of Gazebo.
- 55:32In the inside, in our server, is Gazebo running?
- 55:35And then we have a front end in web development for that.
- 55:39So it's exactly the same thing that you will run in your own computer.
- 55:42And then that makes you be separated from the hardware.
- 55:47That's a great way to learn.
- 55:47Okay.
- 55:48A lot of options, it sounds like, and a lot of interesting possibilities out there.
- 55:52So cool.
- 55:53Well, thanks for sharing that.
- 55:54Now, before you get out of here, I have to ask you the final two questions.
- 55:57If you're going to write some robotics code in Python, what editors do you use?
- 56:01What I used to use before it was Sublime.
- 56:04Sublime was very good.
- 56:05Also, I used Qt Creator.
- 56:08But Qt Creator was more for C++.
- 56:12And then I was doing kind of a hack for Python.
- 56:16But then Sublime was the best.
- 56:18And now at present, I'm using a web editor IDE, which is called Taya or Taya.
- 56:25I don't know how to pronounce it.
- 56:26Yeah, something like that.
- 56:27And that's the one that I'm using.
- 56:29Very, very cool.
- 56:29It has also complete.
- 56:31You can jump into the functions.
- 56:33You can see the documentation.
- 56:35And so it's very cool.
- 56:37Oh, very interesting.
- 56:38All right.
- 56:38I'll put that in the show notes so people can check that out.
- 56:40That's interesting.
- 56:41It's open source.
- 56:42It's open source.
- 56:43You can download, install in your computer or in your web server and program into a server.
- 56:50It's very cool.
- 56:51Nice.
- 56:51And then notable PyPI packages.
- 56:53You know, what's the important stuff that people should know in this world?
- 56:57I mentioned already, the OpenAI reinforcement learning algorithms.
- 57:02That's very cool.
- 57:03The gym system is a gym system for learning about reinforcement learning, not only for robotics, but for making, for example, programs play Atari games.
- 57:16That's cool.
- 57:17Use games as their world.
- 57:18Exactly.
- 57:19Exactly.
- 57:19And then they learn to play those games.
- 57:21The Pac-Man, the Tetris.
- 57:24So that's OpenAI gym.
- 57:27Okay.
- 57:28OpenAI gym.
- 57:29Nice.
- 57:29And then another one that I like very much is Scikit.
- 57:33Scikit is a set of Python libraries for many, many, many different techniques of artificial intelligence, not only for reinforcement learning, but many others.
- 57:46And supervised learning, supervised learning, and even genetic algorithm.
- 57:52So I will recommend you those and some other two that are very commonly used in robotics are OpenCV, that probably all the people already know, and TensorFlow, of course, for deep learning.
- 58:05Very cool.
- 58:06Those are great.
- 58:06OpenAI gym looks awesome.
- 58:08I put a link to that as well.
- 58:09That's a really nice option.
- 58:11All right.
- 58:12Ricardo, final call to action.
- 58:14People want to become robotics developers.
- 58:16What do you tell them?
- 58:17So we need you because, I mean, we need programmers that can program really, really well.
- 58:22And the robotics field is lacking this.
- 58:26Actually, there is a very cool video.
- 58:30It's a super cool video.
- 58:32It's a video where a person is showing how a robot is an ARM-based robot is a mobile manipulator.
- 58:40This robot is cleaning a room from all the mess.
- 58:44So you can see that the robot is grasping all the books, putting there on the place, then taking all the clothes from the ground, putting it into a basket, taking the basket, bringing it there.
- 58:56So you can see this speed plus 20 or something.
- 59:00Okay.
- 59:00Very slow.
- 59:01But it can do everything, everything.
- 59:03Then at the end, the guy of the video says, yeah, so I've shown you that this robot can do that.
- 59:09But the thing that I didn't show you is that I was controlling the robot.
- 59:14Ah.
- 59:14So it was teleoperating the robot.
- 59:16But what's the conclusion here?
- 59:18The conclusion here is that the hardware is already there in order to have a robot that can clean the mess of a room.
- 59:26The only important part that is missing is the software.
- 59:30It's the head of the robot that makes it.
- 59:34So that's why we need developers that can build those programs.
- 59:38Awesome.
- 59:39That's a problem.
- 59:39Yeah.
- 59:40Well, it sounds like a lot of interesting stuff to work on.
- 59:43Thanks for sharing the story and giving us a look inside the robotics world.
- 59:47My pleasure.
- 59:48Really.
- 59:48It was very fun.
- 59:49As I mentioned to you, that's the first time that somebody has interviewed me on a podcast.
- 59:53And it was an amazing experience.
- 59:55Thank you very much, Michael.
- 59:56You're welcome.
- 59:57Thanks for being on the show.
- 59:57This has been another episode of Talk Python To Me.
- 1:00:01Our guest on this episode was Ricardo Telles.
- 1:00:04And it's been brought to you by Linode and Tidelift.
- 1:00:07Linode is your go-to hosting for whatever you're building with Python.
- 1:00:11Get four months free at talkpython.fm/linode.
- 1:00:14That's L-I-N-O-D-E.
- 1:00:17If you run an open source project, Tidelift wants to help you get paid for keeping it going strong.
- 1:00:22Just visit talkpython.fm/Tidelift, search for your package, and get started today.
- 1:00:28Want to level up your Python?
- 1:00:30If you're just getting started, try my Python Jumpstart by Building 10 Apps course.
- 1:00:35Or if you're looking for something more advanced, check out our new async course that digs into all the different types of async programming you can do in Python.
- 1:00:43And of course, if you're interested in more than one of these, be sure to check out our Everything Bundle.
- 1:00:48It's like a subscription that never expires.
- 1:00:50Be sure to subscribe to the show.
- 1:00:52Open your favorite podcatcher and search for Python.
- 1:00:54We should be right at the top.
- 1:00:56You can also find the iTunes feed at /itunes, the Google Play feed at /play, and the direct RSS feed at /rss on talkpython.fm.
- 1:01:05This is your host, Michael Kennedy.
- 1:01:07Thanks so much for listening.
- 1:01:08I really appreciate it.
- 1:01:09Now get out there and write some Python code.
- 1:01:11I'll see you next time.