The world has changed in 2020. Due to the COVID-19 pandemic, all of our in-person social interactions have been reduced. This has led to closing universities and students learning remotely online.
You can teach almost any subject online, but teaching some subjects will be more difficult than others. For instance, you can remotely teach medical students about lung illnesses, but part of this education comes from interaction with sick people. That is very difficult to provide through online teaching.
In robotics, something similar happens. If you want to teach robotics properly, you need to use a real robot. So how can we teach robotics online and provide a full learning experience?
How far can we go with online teaching of robotics?
Before answering this question, we need to identify what do we need to teach when teaching robotics. And then we can see what can be covered online. Let’s have a look at the typical robotics curriculum of some important universities:
Summarizing from the syllabus of those courses, we conclude that the following are the main subjects when teaching robotics:
- Robot action and perception
- Arm kinematics
- Mobile robots kinematics
- Robot dynamics
- Motion planning and control
- Robot navigation
- Computer vision
When we are talking about teaching robotics, we are not talking about teaching how to build a robot (that would be more related to mechatronics and electronics), but about how to understand how robots work, especially in their interaction with the world, and how to create programs that make the robots properly interact with the world. We take, hence, the physical robot for granted and concentrate on the control algorithms.
Providing robotics theory to remote students
That is the easy part of the teaching. If your online teaching is based only on slides describing the theory of the subjects above, then you are almost done. You just need to prepare your slides with the subject, and then use an online meeting tool such as Zoom, Google Meet, Skype or any other meeting software. I’m sure you know already which one to use.
How to provide robotics practice
If you want your students to really understand the theoretical concepts, why they are required and what are the results in real life, you will need to provide some kind of practice.
I propose to teach the Robot Operating System (ROS) at the same time we teach robotics, and use the former along the whole robotics semester as a tool to build and implement the subjects we are teaching. The idea is that we use ROS to allow the students to actually practice what they’re learning. For instance, if we are talking about the different algorithms of obstacle avoidance, we can provide a simulated robot and make the student create a ROS program that actually implements the algorithm for that robot. By following this approach, the student is not only learning the theoretical ideas, but is also putting into practice what they are learning.
Learning ROS will also be extremely beneficial for their careers as ROS is becoming more popular in robotics worldwide.
Providing practice environment when teaching robotics remotely
If you like this approach, then you will have to provide your students an environment for practicing with ROS. Now that they are online and not at your labs, you will have to rely on the students for that.
You have two options here:
- Provide a robot simulations based environment
- Provide a real robot based environment
For simulated environments, the goal is to set up the students with a ROS-based simulation environment ready for practicing. That is not an easy task, especially when the students are remote. Here are four ways to do this:
- Students install ROS in their computer. Students will need to follow the instructions here. This is a risky option if your students do not have Linux already on their computers (because that implies having to install Linux first and do a dual boot in their computers).
- Students install a provided Virtual Machine (VM) with ROS. This option skips the step of installing Linux and dual boot. Still, students will need to install the VM software and the actual VM image containing Linux and ROS. I haven’t found any VM ready to download with a modern ROS Distro, so you will need to build it yourself and then provide it to your students. Follow these instructions to build a ROS VM image with the latest ROS Distro.
- Students use a ROS-based docker. This is a similar approach to the previous one, but more modern and a little bit more complex for the students because they need to understand the use of dockers. Follow the instructions here to download a ROS docker.
- Students use the Robot Ignite Academy web-based environment. We have developed this platform at The Construct, which is a web-based ROS environment, where students do not have to install anything in their computers, and it works with type of computer. It provides the lessons, exercises, forum, and exams ready to use. Everything ready for the teacher to apply his magic as a teacher!
With any of those options, your students will have a running ROS environment that will allow them to create ROS programs and test them on simulated robots. That is definitely a step forward in the quality of learning robotics, and I would say is 100% necessary for a proper robotics education.
But you can still move further in terms of quality. If you really want to provide your remote students a robotics experience, then you need to provide real robot testing and interaction. That is a tricky thing in remote situations, but I found two ways of doing this:
- If you are teaching the basics of robotics, you may include in your students package a real robot building kit. For around $200 you can buy a small robot kit. Get one of those robots delivered to the home of each of your students (or ask the students to buy it). This is one of the kits we at The Construct have bought, which even allows the use of deep learning algorithms: The Jetson nano board developer kit (around 110$) and The Jetbot kit for Jetson Nano (around 110$)
- If you need more complex robots for practice, or in case you cannot afford to get a robot to each one of the students, then you can allow students to remotely connect to the robots in your lab. The process to achieve that connection is quite simple and I described it in this video.
My own experience doing real robot interaction with remote students
That last method is the one I used to teach ROS to the students of the Master of Robotics, Home Automation and Industrial Automation of University of LaSalle Barcelona during Spring 2020. What I did during the confinement was to use the Robot Ignite Academy to teach ROS. This allowed me to have an existing environment for practicing with simulations in every student’s computer from the beginning, without requiring installation in the students’ computers.
Then, I also brought home a ROSbot robot (excellent robot for teaching, made by Husarion) ready to be connected through the Robot Ignite Academy interface. Each student was connecting per turns to the real robot at my home from their home locations, and testing their ROS program on the real robot.
For this setup, I also added an external camera so students can see on the live streaming what was actually happening with the robot while running their programs.
I used the video conference software provided by the university to chat and explain the lessons. I got the 15 students under that platform watching on the broadcast on their screens. When teaching robotics theory, I shared my screen with the Robot Ignite Academy lesson, and all the students opened the same lesson on their own computers. This also allowed us to do several exercises in the included simulations. Then, at some point in time, after we had done some exercises on the simulation, the students would connect on turns to my real robot and test their program on it.
The benefits I got applying the remote lab solution were clear:
- There is a clean transition between one student and another. It is not possible for two students to connect at the same time and interfere with each other.
- No student needs to install any of their programs on the robot, so you do not end with a broken robot system full of rubbish.
- Students prepare their programs and get them ready by testing in the simulator while waiting for their turn to connect to the real robot.
How to answer questions after hours
Students will have questions related to your assignments. How can you solve their doubts? Well, my suggestion is that you use a forum to answer the questions of the students. This has a couple of benefits:
- Answers you provide to one student can be seen by all the other students.
- You can delegate answering to teacher assistants.
- Answers on the forum will be useful also for the next semester.
If you don’t have such a forum at your university, I recommend you install Discourse. Following those instructions you can have the forum ready in under 30 mins.
How to evaluate the students
That is an important point. Students need to be evaluated in some sense, otherwise the teacher will not be able to assess the knowledge they acquired.
ROS comes again to the rescue. ROS allows us to evaluate students remotely by making them do programs that work on the exam. For that, I recommend you create practical exams based on ROS where the students need to apply what they learned to a simulated robot. Instead of doing a theory-based exam, do an application of theory over the simulated robot.
This is very important to avoid cheating. It is very difficult to copy the program of somebody else without showing they copied! It is almost impossible to build the same code, even the same structure. You will quickly notice who copied.
Additionally, to make the thing a little bit more difficult to copy, I indicated that the packages, topics, messages, files they have to create required to have attached their names at the end (for instance, if they have to create a ROS message named startup_time, I would request to each student to create the message startup_time_YOUR_NAME. That makes it more difficult to copy code because everyone has to adapt.
That is the method I personally applied for my ROS classes at the University of LaSalle Barcelona. I even allowed the students to use their notes or other programs they did in the past to solve the exam. The subject is so complex that if you really understand how the code you did in class fits in the exam, then that means you deserve to pass the exam.
In my case, the exams were provided by the Robot Ignite Academy and were also auto corrected using the autocorrection system of the academy. That is a lot of work that I saved myself!
Is teaching robotics online the future?
My impression is that teaching robotics online is going to become more and more important in the near future. First, because we do not have any other chance (everything is closed). Second, because people will see that doing things online has a huge advantage in terms of efficiency and money (more money for both sides: students will have to pay less, Universities will get more students from many different locations of the world). Third, I suspect many people will not want to come back to the previous way once they taste this new way of learning.
Let me finish by saying that in case you want to get your students up to date quickly on Linux and Python, ask them to do the following two online free courses – Linux for Robotics and Python 3 for Robotics – that provide the basis, prior to starting your classes. They are going to need it!
Editor’s Note: This article was republished with permission from The Construct.
About the Author
Ricardo Tellez is CEO and co-founder of The Construct, a company that provides web development tools for programming, testing and deploying robots using ROS. Previously, he worked at Pal Robotics developing software systems for humanoid robots.
Tellez is also an instructor at the University of LaSalle Barcelona where he teaches ROS, and has written 4 books on the subject. Additionally, Tellez delivers a weekly free ROS Live Class on his Youtube channel.