Educational robotics beyond ROS: a custom library for direct transfer of Webots controllers in the Turtlebot3

Jaime P. Pérez-Moro, Alejandro Romero, Hector Quintian, Francisco BellasarXiv 2026 · arXiv

TL;DR

Researchers have developed a custom Python library that allows students to program TurtleBot3 robots using the familiar Webots API, completely bypassing the steep learning curve of the Robot Operating System (ROS). This "code-once, run-anywhere" approach enables a seamless transfer from simulation to physical hardware, letting students focus on autonomous navigation logic rather than middleware configuration.

What Problem Does This Paper Address?

While ROS is the de facto standard for professional robotics, its "distributed node" architecture and complex installation process create a significant entry barrier for students. This is particularly true in the burgeoning field of AI-focused master’s programs, where students may have strong algorithmic skills but lack deep backgrounds in Linux systems administration or complex software middleware.

The authors identified a common frustration: students often spend more time debugging ROS communication issues (topics, messages, and workspace configurations) than learning the fundamentals of robotics, such as perception, mapping, and control. To solve this, they sought a way to preserve the educational value of "Sim-to-Real" transfer without the overhead of a full ROS stack.

Methods

The team developed a hardware-abstraction layer that mirrors the Webots simulation API. Their approach involved three main components:

  1. Hardware Reconfiguration: They replaced the standard ROS-oriented firmware on the TurtleBot3’s OpenCR 1.0 board with custom Arduino code. This firmware monitors serial inputs from the robot's Raspberry Pi to control the Dynamixel servomotors and read the Inertial Measurement Unit (IMU).
  2. The Mirror Library: They wrote a Python library that replicates Webots classes like Robot, Motor, Lidar, and InertialUnit. At the start of a script, a simple code block checks if it's running inside the Webots simulator; if not, it imports the custom library to talk directly to the physical hardware.
  3. Automated Deployment: To keep the workflow "clean," they created scripts to automate the transfer of Python code via SSH/SCP, allowing students to deploy their controllers to the physical robot with a single command.
Fig. 1. TB3 Burger connection diagram.

The execution flow is designed to be transparent to the user, as shown in the diagram below:

Fig. 2. Execution flow of a Webots controller.

Datasets

As this is an engineering and educational methodology paper rather than a machine learning study, traditional training datasets were not used. Instead, the authors evaluated the system using:

  • Simulated Environments: Three distinct grid-based worlds (6x10 cells) created in Webots.
  • Physical Environment: A real-world laboratory setup designed to match the simulated grid for validation.
Fig. 3. Real and simulated environment used for the activity.

Key Insights and Ideas

  • API Mirroring as an Educational Tool: By mimicking an existing, well-documented API (Webots), the researchers eliminated the need for students to learn a second set of commands for the real robot. This reduces cognitive load significantly.
  • The "Real-World" Reality Check: Even with a simplified library, the transition to physical hardware remains valuable. Students reported that dealing with real-world friction and sensor noise provided insights they couldn't get from simulation alone.
  • Pythonic Simplicity: Moving away from ROS allowed students to easily integrate standard Python libraries like NumPy or specialized data structures (like priority queues for A* pathfinding) without worrying about how those libraries interact with a distributed node system.

Key Results

The system was tested in a master-level "Introductory Autonomous Vehicles" course.

  • Operational Consistency: In validation tests (moving 25cm, turning 90 degrees), the physical robot's behavior was highly repeatable and closely matched the simulation.
  • Student Sentiment: The approach was a hit. On a scale of 1 to 5, students gave an average rating of 4.83 regarding the value of using the real robot with this library.
  • Qualitative Feedback: Students specifically highlighted that they could focus on "control logic" and "algorithmic logic" rather than "thinking about packages, services, and messages."
Fig. 4. Student’s answer related with the use of the real robot.

Limitations and Future Work

While successful for introductory courses, the library currently has some constraints:

  • Sensor Bandwidth: The current architecture relies on serial and USB interfaces, which are sufficient for LiDAR and IMUs but cannot handle high-bandwidth data from RGB-D cameras (like the Intel RealSense).
  • Robot Support: The library is currently specific to the TurtleBot3 Burger. Expanding this to other variants or different robot platforms would require writing new hardware-specific classes.
  • Future Directions: The authors plan to explore different acquisition paths for high-bandwidth sensors to allow for more advanced vision-based robotics tasks in the future.

Summary updated

Abstract

Robot Operating System (ROS) is becoming a standard in robotics courses at higher education, but its installation, configuration and distributed programming model can introduce a significant entry barrier in the new landscape of AI-based master and degree studies, where many students do not have a strong informatics background. This paper presents an educational experience that enables students to program a TurtleBot3 Burger directly in Python, while preserving a direct transfer path from simulation to the physical robot. The approach is based on a custom library that mirrors the Webots API, allowing the same controller code to be executed in the simulator and on the real TurtleBot3 with minimal modification. The library provides access to the robot motors, wheel encoders, inertial sensors and LiDAR, and is complemented by scripts that automate deployment and execution on the physical platform. It was used in a master-level course on introductory autonomous vehicles, and initial student feedback suggests that the approach reduces the perceived complexity of ROS-related infrastructure and helps learners focus on algorithmic logic and real-world behaviour.
BibTeX
@misc{perezmoro2026educational,
  author = {Jaime P. Pérez-Moro and Alejandro Romero and Hector Quintian and Francisco Bellas},
  title = {{Educational robotics beyond ROS: a custom library for direct transfer of Webots controllers in the Turtlebot3}},
  year = {2026},
  eprint = {2611.08142},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.08142},
}
Figure