Skip to content

Python

Your HuCon uses Python internally to be able to be programmed. So if you want to get the maximum out of your robot, just use the programming language Python. On the internet you can find a lot of tutorials to learn this programming language. To program your HuCon directly in Python you just have to click on the editor tile on the start page.

If you don't know how to start, just have a look at the included examples. You can open all examples and save them under a new name if you have changed them.

Python interface

  1. Main menu
  2. Code
  3. Console

The main menu has some submenus to load/save your workspace or start/stop your program. In addition, the menu can be used to show/hide the console output.

File

Under this menu item you will find everything you need to load or save your program. If you simply want to create a new program. If you simply want to create a new program, you can also use this menu.

Start/Stop

With these two buttons you can start or stop the program you have in your code area.

Console menu item

Hide or show the console. Just as you need it for your work.

Buttons

You can create your own software buttons with the event functions. The buttons will work similar to a virtual remote control. Just click on Buttons to display the virtual remote control.

Code

You can write your code directly here. If you click on the Start button the whole code will be transferred to your HuCon and executed there.

Console

The HuCon gives you a hint if your program contains an error. You can see these hints in the log output. Additionally, you can create your own output on the log output with the print function.