Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
62ad0fa
StuffMayHappen
Wip-Sama Oct 28, 2025
70257c5
Ma quanto la genera bene (sufficentemente)
Wip-Sama Oct 29, 2025
e2f9d62
image_processing_utility.py refactor, optimization, cleanup & comment
Wip-Sama Nov 4, 2025
195f4aa
branch on remote
Wip-Sama Feb 6, 2026
8216e6a
2 axis distance matching
Wip-Sama Feb 7, 2026
e3b417d
precision goes not brr brr 😭
Wip-Sama Feb 8, 2026
636a97e
comparison between pattern matcher
Wip-Sama Feb 9, 2026
22e1d08
gesture tracker for the probably needed pen calibration
Wip-Sama Feb 9, 2026
df549fd
pen calibration and logging everywhere!
Wip-Sama Feb 12, 2026
ff1cba9
fixed while logic for dummy swipe & string overload
Wip-Sama Feb 13, 2026
907a936
prep motion module
Wip-Sama Feb 13, 2026
e220449
bounding box from mask & screencap to memory
Wip-Sama Feb 13, 2026
4f2a154
move with offset && tested adb_screencap_to_memoty
Wip-Sama Feb 20, 2026
91b4ada
motion module test
Wip-Sama Feb 20, 2026
2ed91e5
desk merging and position coordinates fix
Wip-Sama Feb 20, 2026
297729e
cutoff_diatance and more data in the calibration
Wip-Sama Feb 21, 2026
c73b413
calibration improvements
Wip-Sama Feb 21, 2026
288fdeb
Tab to spaces
Wip-Sama Feb 21, 2026
b58ae62
Fixed needing double input while using gesture_tracker.py
Wip-Sama Feb 21, 2026
5c4565c
deep calibration
Wip-Sama Feb 21, 2026
030e5fb
save
Wip-Sama Feb 21, 2026
facd9e1
prep for calibration-as-a-script
Wip-Sama Feb 22, 2026
67c4366
fixed to the mask in the offset detector && motion module features
Wip-Sama Feb 22, 2026
e3ae8e9
cleanup time
Wip-Sama Feb 22, 2026
b99fd17
documentation and Qol
Wip-Sama Feb 23, 2026
bc81016
coordinate conversion
Wip-Sama Feb 24, 2026
ac03732
minor changes and pen_calibration arguments configuration
Wip-Sama Feb 24, 2026
4984c1e
manual position checking && resource_utility argument parse
Wip-Sama Feb 26, 2026
7937156
GESTURE TRACKING 2.0, This time it's good!
Wip-Sama Feb 26, 2026
5fbb2d2
the terminal wants it's part
Wip-Sama Feb 26, 2026
8321127
the terminal wants it's part but not perl
Wip-Sama Feb 26, 2026
6ab34f4
Add Controllable Motion Module and refactor screenshot handling and C…
Wip-Sama Feb 26, 2026
d9960ec
Add scripts for comparing ADB screencap speed and video feed quality;…
Wip-Sama Mar 7, 2026
838a972
refactor
Wip-Sama Mar 7, 2026
7069e63
Stricter type checking
Wip-Sama Mar 7, 2026
94df0fd
Merge branch 'main' into environment_explorer
Wip-Sama Mar 7, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions Brain/AI/src/constants.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,30 @@
import logging
import os

SRC_PATH = os.path.dirname(__file__) # Where your .py file is located
RESOURCES_PATH = os.path.join(SRC_PATH, 'resources')
SCREENSHOT_PATH = os.path.join(RESOURCES_PATH, 'screenshot')
VALIDATION_PATH = os.path.join(SRC_PATH, 'validation')
BENCHMARK_PATH = os.path.join(SRC_PATH, 'benchmark')
MOTION_MODULE = os.path.join(SRC_PATH, 'motion_module')
MOTION_CALIBRATION_PATH = os.path.join(MOTION_MODULE, 'calibrations')
SCREENSHOT_FILENAME = 'screenshot.png'
SCREENSHOT_FULLPATH = os.path.join(SCREENSHOT_PATH, SCREENSHOT_FILENAME)
CLIENT_PATH = os.path.join(SRC_PATH, '../../../tappy-client/clients/python')
DLV_PATH = os.path.join(RESOURCES_PATH, 'dlv')
# change IP addresses to your needs.
SCREENSHOT_SERVER_IP = '192.168.0.30' # IP of the mobile phone with Screenshotserver on board
TAPPY_ORIGINAL_SERVER_IP = '127.0.0.1' # IP of the server where the robot is attached to
USE_ADB = True # True if you want to use adb to get the screenshot, False if you want to use the Screenshotserver
SCREENSHOT_SERVER_IP = '192.168.0.30' # IP of the mobile phone with Screenshotserver on board
TAPPY_ORIGINAL_SERVER_IP = 'http://127.0.0.1:8000' # IP of the server where the robot is attached to
USE_ADB = True # True if you want to use adb to get the screenshot, False if you want to use the Screenshotserver


logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
if not logger.handlers:
ch = logging.StreamHandler()
ch.setLevel(logging.DEBUG)
# Niente, colori, non sono riuscito a farli funzionare bene... se ho tempo (voglia) ci metto le emoji
formatter = logging.Formatter('%(asctime)s %(levelname)s %(name)s: %(message)s')
ch.setFormatter(formatter)
logger.addHandler(ch)

Empty file.
13 changes: 13 additions & 0 deletions Brain/AI/src/motion_module/calibrations/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
The calibrationf follow the pattern:
- Test: test_{n_}
- Robot: brainybot1 / brainybot2
- Pen: garbage1 / garbage2
- Suffix: stuff you want

Other stuff appended before .pkl will be ignored
Information like:
- automatic/manual deep
- parameters used

The search function will only match Robot and Pen so if 2 file with the sane starting name exists will take one randomly
If you need different calibrations for the same bot/pen use the test_enumarator
Loading