-
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.
- Loading branch information
1 parent
ac20ec0
commit 7edd6fc
Showing
14 changed files
with
578 additions
and
17 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
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,17 @@ | ||
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//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.