The first step to program Robobo with Python is to clone or download the repository to your computer, and then, you can use it in two ways:

  • Putting your .py files inside of “” folder, or
  • Adding the “” folder to your project folder and adding “” to your path as it’s shown below:
    import sys, os
    sys.path.append(os.path.join(os.path.dirname(__file__), '.', ''))

    For example, the following screenshot shows a project folder including “”:

    If we want to use the Robobo library in “”, we’ll add the two lines above to the beginning of the file:

    # This imports the system libraries needed to add "" to the system path
    import sys, os
    # This adds "" to the system path
    sys.path.append(os.path.join(os.path.dirname(__file__), '.', ''))
    # This imports the Robobo library    
    from Robobo import Robobo
    #  This creates a instance of the Robobo class with the indicated ip address
    robobo = Robobo('')

The library runs with Python 3 and it must be installed before using the library, which also depends on the websocket-client library, that must also be installed.

pip install websocket-client

basic usage

You can find information about how to start using the library in the Robobo Wiki