Skip to content
This repository was archived by the owner on Oct 17, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
199399c
initial commit to forked repo
benquick123 May 31, 2022
2ef6562
Test
May 31, 2022
08909db
add env.yml
benquick123 May 31, 2022
5c3cbf2
update environment
May 31, 2022
62c580e
a lot of new shit implemented
Jul 6, 2022
4b87a87
update
Jul 10, 2022
0a67d8e
add skeleton exporting
Aug 9, 2022
5d4dbb4
compute freq from action potentials
Oct 9, 2022
8646b0e
neurons done
Oct 15, 2022
5db856b
finish neural stream and refactor a lil
Oct 20, 2022
4662cac
add motor controller
Dec 12, 2022
642b468
big move and refectoring
Dec 17, 2022
e30776b
Create controller.py
letalo44 Dec 17, 2022
87e6272
update
Dec 17, 2022
9f2e7e5
seperate constants
Dec 17, 2022
4fbeac3
additional files, gitignore
Dec 18, 2022
bbc7d9d
delte tmp.bullet
Dec 18, 2022
15d35b9
controller.py
letalo44 Dec 18, 2022
c6da108
Merge branch 'main' of https://github.com/benquick123/BiobotGrammar
letalo44 Dec 18, 2022
c4c77d4
fixed joint angles
Dec 18, 2022
17db9a4
controller update
Dec 18, 2022
c55a027
Merge branch 'main' of https://github.com/benquick123/BiobotGrammar
letalo44 Dec 18, 2022
5e40eb8
tested. needs work
letalo44 Dec 19, 2022
a7e1531
push?
letalo44 Dec 20, 2022
60a1453
update constants.py
Dec 20, 2022
9cebf0c
update_main
Dec 20, 2022
7426e24
update convert joint_angles
Dec 20, 2022
06285b1
add move sequence
Dec 20, 2022
7968c51
Update controller.py
letalo44 Dec 28, 2022
9f0c68d
Update controller.py
letalo44 Dec 28, 2022
5c64319
Update controller.py
letalo44 Jan 7, 2023
01323bb
update port number
Jan 7, 2023
59a75e3
Merge branch 'controler_development' of https://github.com/benquick12…
Jan 7, 2023
6a4a5cf
working controller
Jan 7, 2023
98e3d6d
sample json file reading
Jan 7, 2023
8d179eb
some minor adjustments
Jan 8, 2023
5df0d4a
Create timing_test.py
letalo44 Jan 11, 2023
b35030d
semi-working code for controller
Jan 14, 2023
a93482e
Merge branch 'controler_development' of https://github.com/benquick12…
Jan 14, 2023
19c7180
Merge branch 'controler_development' of https://github.com/benquick12…
letalo44 Jan 14, 2023
eb87deb
Create addThis.py
biobot-kapelica Jan 21, 2023
6580d15
joint limits and error handlign
Jan 21, 2023
d5a8aed
Merge branch 'controler_development' of https://github.com/benquick12…
Jan 21, 2023
a187483
minor adjustment
Jan 21, 2023
cc32d44
change control mode
Jan 21, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
17 changes: 6 additions & 11 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
build/
*.swp
__pycache__/
*.csv
*.mp4
*.png
*.pdf
vgcore.*
trained_models/
.vscode/
*.egg-info
.history
.vscode
__pycache__
tmp.bullet
output
*.csv
22 changes: 0 additions & 22 deletions Dockerfile

This file was deleted.

21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

100 changes: 0 additions & 100 deletions README.md

This file was deleted.

10 changes: 10 additions & 0 deletions addThis.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# in def move after time.sleep()

for id in range(len(goal_pos)):
dxl_model_number, dxl_comm_result, dxl_error * packetHandler.ping(portHandler, motor_ID[id])

if dxl_error != 0:
self.ping_count[id] + 1

if sef.ping_count[id] = 4
dxl_comm_result, dxl_error * packetHandler.reboot(portHandler, motor_ID[id])
11 changes: 11 additions & 0 deletions configs/292_motors.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"min_limits": {
"2": 902, "3": 865, "4": 965, "5": 881, "6": 699, "7": 751, "8": 964, "9": 876, "10": 710, "12": 696
},
"max_limits": {
"2": 3192, "3": 3342, "4": 3239, "5": 3170, "6": 3415, "7": 3407, "8": 3282, "9": 3176, "10": 3402, "12": 3402
},
"orientations": {
"2": 1, "3": 1, "4": -1, "5": -1, "6": 1, "7": 1, "8": 1, "9": 1, "10": 1, "12": 1
}
}
5 changes: 5 additions & 0 deletions configs/controller_params.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"baudrate": 3000000,
"port": "/dev/ttyUSB0",
"orientations": [1, 1, -1, 1]
}
14 changes: 14 additions & 0 deletions constants.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import multiprocessing as mp
import numpy as np

GRAMMAR_FILEPATH = "./data/designs/grammar_apr30_asym.dot"
RULE_SEQUENCE = "0, 7, 1, 12, 1, 13, 10, 6, 2, 4, 16, 3, 16, 4, 19, 17, 9, 2, 4, 5, 5, 4, 5, 16, 16, 4, 17, 18, 9, 14, 5, 8, 9, 8, 9, 9, 8, 8".split(" ")
ACTION_FILTER_COEFS = [0.10422766377112629, 0.3239870556899027, 0.3658903830367387, 0.3239870556899027, 0.10422766377112629]
CHANNELS = 16
DT = 16 / 240
HORIZON = 40
NUM_THREADS = mp.cpu_count() - 1
SEED = np.random.randint(10000000)
SAVE_ACTION_SEQUENCE = False
OPTIMIZE = False
INPUT_ACTION_SEQUENCE = None # "output/nice.npy"
Loading