8b53f3a4c8b4e3a1226cf34afd6ad3f740c96fa0
Kicker project
Prerequisites
- (L)ubuntu 14.04
- Git installed:
sudo apt install git -y
How to start working
To run code on the laptop
-
Install Python and Python NAOqi SDK: instructions
-
Check if NAOQi binding for Python works by launching Python and running there
from naoqi import ALProxy. The installation was successful if it imports without errors. You can finish Python withctrl-dthen. -
Go to the project directory and run:
python -m pykick
This will launch the striker state machine, which should work if colors are calibrated correctly.
- To run the scripts from the project other than the main one, do this from the project directory:
python -m pykick.[file_name_without_.py]
To run code on the robot
-
Create a folder named
pykickon the robot. -
Copy the files from the project's
pykickfolder intopykickon the robot. -
ssh to the robot, go to the directory containing the
pykickfolder and runpython -m pykick(the same as on the laptop).
What's inside?
__main__.py- The script containing the state machine.copyfiles.sh- Script for convenient copying of the project files to the robot (IP is hard-coded, so use with caution).nao_defaults.json- The settings such as color HSV values.colorpicker.py- Program for calibrating the colors. Runpython -m pykick.colorpicker -hto see how to use it.detection_demo.py- Program to check how good the robot can detect objects with the current color settings.striker.py- The class with high lever behaviors, e.g. aligning to ball.movements.py- Convenience classes for moving robot. Also kick is implemented here.finders.py- Classes for Ball, Goal and Field detection.imagereaders.py- Convenience classes for capturing video input from various sources.
More documentation as well as the detailed report will be available later.
Description
Languages
Python
99.2%
Shell
0.4%
Dockerfile
0.4%