Learning with pyCub: A New Simulation and Exercise Framework for Humanoid Robotics
Journal:
arXiv
Published Date:
Jun 2, 2025
Abstract
We present pyCub, an open-source physics-based simulation of the humanoid
robot iCub, along with exercises to teach students the basics of humanoid
robotics. Compared to existing iCub similators (iCub SIM, iCub Gazebo), which
require C++ code and YARP as middleware, pyCub works without YARP and with
Python code. The complete robot with all articulations has been simulated, with
two cameras in the eyes and the unique sensitive skin of the iCub comprising
4000 receptors on its body surface. The exercises range from basic control of
the robot in velocity, joint, and Cartesian space to more complex tasks like
gazing, grasping, or reactive control. The whole framework is written and
controlled with Python, thus allowing to be used even by people with small or
almost no programming practice. The exercises can be scaled to different
difficulty levels. We tested the framework in two runs of a course on humanoid
robotics. The simulation, exercises, documentation, Docker images, and example
videos are publicly available at https://rustlluk.github.io/pyCub.