Table of Contents

Humanoid robot programming

The first part of the subject aims to get you acquainted with programming of a humanoid robot. We will use a Python simulator of humanoid robot iCub.

Lab 1

PyBullet documentation can be useful and can be found here.

Installation

With python3.8 (and maybe 3.9) you need to call python3 -m pip install –upgrade pip and python3 -m pip install -U –trusted-host www.open3d.org -f http://www.open3d.org/docs/latest/getting_started.html open3d before running pip install. Copying from this tends to change two dashes (-) after each other as a long dash, update it in the terminal then.

More info can be found on Github or this presentation.

If you have errors with “Index out of range” on windows, please reinstall the library.
To test whether everything works fine run python3 -m icub_pybullet.examples.push_the_ball_cartesian and you should see robot hitting a ball from a table.
The first run can take a long time because of VHACD meshes creation.
Lab Computers

The computers in the lab should be powerful enough to run the code. You can install the same way (create venv, install icub_pybullet from pip).

When turning on the lab computers you need to select Linux Bookworm (13133, …) and then log in with CTU username and password

Running bugs solutions

iCub Kinematics

This picture shows the joints of iCub with their names and indexes that can be used to control the robot in joint space in the PyCub simulator.

PyCub

The simulator is written in Python3 and uses PyBullet as a physics engine and Open3D for visualization. It should run without problem on any system with Python3 (it is tested in Python3.11; anything over 3.8 should be fine; the theoretical lower limit is 3.6 because of f-strings and upper limit 3.12 because some dependencies).

The whole documentation can be found here.

A presentation with a description of basic functionality can be found here.