Skip to content

Latest commit

 

History

History

igor2

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Igor Balancing Robot Python Demo

Requirements

Controller

The demo can be run using either a gamecontroller or Mobile IO device acessible from the computer running the demo.

  • USB controller (Must be compatibile with SDL2 - check here for your controller)
  • Mobile IO (Requires HEBI's Mobile IO app on an Android or iOS device)

Software Requirements

  • HEBI Python API
  • PySDL2
    • Linux Users: You should check if your distro has a package for this already. For Ubuntu, install the pysdl2 package
    • If not installing through a package manager, make sure you have the SDL2 library installed!

Running

Simply run the igor2_demo.py file located at kits/igor2. You can run this in a terminal by executing

python3 igor2_demo.py

Both Python 2 and 3 are supported, but note that Python 2 upstream is end of life.

Note: By default, the demo will look for a Mobile IO device with family Igor and name mobileIO. You must provide --joystick if you want to control Igor using a USB gamecontroller.

Controls

The demo provides default mappings for both supported controllers. You can modify them, if needed, by editing the components/configuration.py file directly.

Game Controller

The default gamecontroller mappings are as followed. Note that the image is of a generic Sony Playstation 4 controller, but the concept applies to all other SDL2 compatible controllers. ps4 igor

Note: To exit idle mode, press L3 (press in left axis stick)

Mobile IO

The default Mobile IO mappings are as followed. Note that the layout of the application may appear different on your device than what is shown, but the buttons and axes are guaranteed across any device. mobile io igor