-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moving robot code to new directory, adding linalg logic
- Loading branch information
1 parent
2a5cd52
commit dfb3e9f
Showing
22 changed files
with
878 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,3 +38,19 @@ jobs: | |
echo "$formatted_files" | ||
exit 1 | ||
fi | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 🚀 Checkout | ||
uses: actions/checkout@v4 | ||
- name: 🌿 Setup Bazel | ||
uses: bazel-contrib/[email protected] | ||
with: | ||
bazelisk-cache: true | ||
disk-cache: ${{ github.workflow }} | ||
repository-cache: true | ||
bazelrc: | | ||
build --color=yes | ||
build --show_timestamps | ||
- name: 🧪 Run Tests | ||
run: bazel test //src/... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
asyncio | ||
fastapi | ||
jinja2 | ||
numpy | ||
opencv-python | ||
uvicorn[standard] | ||
websockets |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
load("@rules_python//python:defs.bzl", "py_library") | ||
|
||
# Put all robot files in this library | ||
py_library( | ||
name = "robot_src", | ||
srcs = [ | ||
"config.py", | ||
"robot.py", | ||
"structs.py", | ||
], | ||
deps = [ | ||
"@pypi//fastapi:pkg", | ||
"@pypi//jinja2:pkg", | ||
"@pypi//numpy:pkg", | ||
"@pypi//opencv_python:pkg", | ||
"@pypi//websockets:pkg", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
from structs import DynamixelMotorAddressConfig, MemorySegment | ||
|
||
# Add all Dynamixel Motor Configs here | ||
DYNAMIXEL_MX_12_ADDR_CONFIG = DynamixelMotorAddressConfig( | ||
torque_enable=MemorySegment(24, 1), | ||
led_enable=MemorySegment(25, 1), | ||
d_gain=MemorySegment(26, 1), | ||
i_gain=MemorySegment(27, 1), | ||
p_gain=MemorySegment(28, 1), | ||
goal_position=MemorySegment(30, 2), | ||
moving_speed=MemorySegment(32, 2), | ||
torque_limit=MemorySegment(34, 2), | ||
present_position=MemorySegment(36, 2), | ||
present_speed=MemorySegment(38, 2), | ||
present_load=MemorySegment(40, 2), | ||
present_input_voltage=MemorySegment(42, 1), | ||
present_temperature=MemorySegment(43, 1), | ||
registered=MemorySegment(44, 1), | ||
moving=MemorySegment(46, 1), | ||
lock=MemorySegment(47, 1), | ||
punch=MemorySegment(48, 2), | ||
realtime_tick=MemorySegment(50, 2), | ||
goal_acceleration=MemorySegment(73, 1), | ||
) |
Oops, something went wrong.