Discover our
resources

Python programming tools

The AlphAI solution offers two methods for programming robots using the Python language:

  • With thepython API, you have access to a low-level interface. You have direct access to the robot's raw sensor values, and can control both motors directly and separately. However, this mode has no visualization options. It is therefore best suited to activities focused on programming itself.
  • With the Python code mode accessible from within the software, you have access to a higher-level interface. Sensors and robot actions can be parameterized from the graphics window. This mode offers several options for viewing the program in the graphics window. It is ideal for practical programming, particularly when using machine learning algorithms.

You'll find more details on these two methods below.

AlphAI API documentation (AlphAI robots only)


This document contains all the information you need to use the AlphAI API:

https://drive.google.com/file/d/1C4ovPW_eH5KFz5Y9JvSrzLhtmdOpcp6-/view

Python code mode

In the AI tab



You can choose "Python code" for the algorithm parameter.

A pop-up window appears, prompting you to choose between creating a new file or opening an existing one.

This file is used to write python code that will be executed by the software.

In the Reward tab (AlphAI robots only)



Program your own reward function by clicking on the "python code" button.

Download
Related courses