Program your robot

Program your robot

This section will guide you in how to control your robot. It will describe the most basic features needed to make your robot move and interact with its environment.

The robot API is written in Python and versions above 3.6 are supported. It is pre-installed on the Raspberry-Pi of the robot. So to program your Reachy you don't need to install anything on your own machine. Just connect to the Raspberry Pi as described in the Getting Started.

Working remotely on the robot is possible via ssh or using a Jupyter server (Jupyter is pre-installed on the Raspberry Pi).

The SDK has been designed to be accessible and easy-to-use. Yet, as it is fully open-source (available here), you can dig inside and adapt it to your specifics needs (contributions are welcome!).

In this section, we will cover:

  • how to instantiate your robot and define the parts you are using,
  • make the arm move (motor by motor or using kinematics), recording and replay motions,
  • make the head look somewhere specific,
  • and run pre-defined behaviors.

The full Python's API is also accessible here.

Before actually running any code, we strongly recommend you to take a look at the Safety first section. It provides simple guidelines to avoid damaging your robot.

More advanced topics (like using advanced vision for the TicTacToe demo) will be discussed in their own chapter.