Skip to content

Commit 0bff76e

Browse files
...
1 parent 1c4879c commit 0bff76e

36 files changed

Lines changed: 98 additions & 19 deletions

__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#!/usr/bin/env python3

clear-commits.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/usr/bin/env python3
2+
13
import subprocess
24

35
def run_command(command):

config.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55

66
"EntryPoints": {
77
"Main": "main.py",
8+
"UI": "ui.py",
9+
"Line Follower": "ui.py",
10+
"Obstacle Avoidance": "ui.py",
811
"Setup": "scripts/install-dependencies.py"
912
},
1013

@@ -13,9 +16,9 @@
1316
"Scripts": "scripts/",
1417
"Assets": "assets/",
1518
"Audio": "audio/",
19+
"Audio": "audio/music",
1620
"Images": "images/",
1721
"Videos": "videos/",
1822
"Photos": "photos/"
1923
}
2024
}
21-
}

main.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ def main():
1414

1515
scripts = {
1616
"1": {
17-
"name": "Run 'Script00'",
18-
"description": "This is Script01",
19-
"file_name": "scripts/script00.py"
17+
"name": "Run 'Line Follower'",
18+
"description": "Line following behavior",
19+
"file_name": "scripts/line_follower.py"
2020
},
2121
"2": {
22-
"name": "Run 'Script01",
23-
"description": "This is Script01",
24-
"file_name": "scripts/script01.py"
22+
"name": "Run 'Obstacle Avoidance",
23+
"description": "Obstacle avoidance behavior",
24+
"file_name": "scripts/obstacle_avoidance.py"
2525
},
2626
"00": {
2727
"name": "Run 'install_dependencies.py'",

make_executables.sh

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,31 @@
22

33
echo "🔧 Setting execute permissions..."
44

5-
chmod +x run
6-
chmod +x install_requirements
7-
chmod +x freeze_requirements
8-
chmod +x setup
9-
chmod +x run_server
10-
chmod +x run_obstacle_detection
11-
chmod +x run_linefollower
12-
13-
echo "✅ Permissions set!"
5+
FILES=(
6+
"run.sh"
7+
"install_requirements.sh"
8+
"freeze_requirements.sh"
9+
"run.sh"
10+
"setup.sh"
11+
"run_server.sh"
12+
"run_linefollower.sh"
13+
"run_obstacle_detection.sh"
14+
"clear_commits.sh"
15+
)
16+
17+
for file in "${FILES[@]}"; do
18+
if [ -f "$file" ]; then
19+
# Remove Windows carriage returns if they exist
20+
sed -i 's/\r$//' "$file" 2>/dev/null
21+
22+
# Set execute permission
23+
chmod +x "$file"
24+
echo "$file (Permissions set & Line endings fixed)"
25+
else
26+
echo "$file not found"
27+
fi
28+
done
29+
30+
echo "---"
31+
echo "✅ Done! You can now run your scripts using ./script_name.sh"
1432

run.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/usr/bin/env python3
2+
13
import os
24
import sys
35

run_obstacle_detection.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/bin/bash
22

33
# Exit on error
44
set -e

scripts/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#!/usr/bin/env python3

scripts/audio_analysis.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/usr/bin/env python3
2+
13
import logging
24
import numpy as np
35
from pydub import AudioSegment

scripts/camera_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/usr/bin/env python3
2+
13
"""
24
camera_utils.py — Camera capture helpers and QR code generator.
35
"""

0 commit comments

Comments
 (0)