From abd53a4c2bff723da30420717ebc6f2412d4db13 Mon Sep 17 00:00:00 2001 From: Philipp Wu Date: Thu, 4 Apr 2024 16:36:39 -0700 Subject: [PATCH] minoir --- README.md | 2 +- gello/dynamixel/driver.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 5879adf..0a4081b 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ docker build . -t gello:latest We have provided an entry point into the docker container ``` -python experiments/launch.py +python scripts/launch.py ``` # GELLO configuration setup (PLEASE READ) diff --git a/gello/dynamixel/driver.py b/gello/dynamixel/driver.py index df6a5d7..89325c7 100644 --- a/gello/dynamixel/driver.py +++ b/gello/dynamixel/driver.py @@ -20,7 +20,6 @@ ADDR_TORQUE_ENABLE = 64 ADDR_GOAL_POSITION = 116 LEN_GOAL_POSITION = 4 ADDR_PRESENT_POSITION = 132 -ADDR_PRESENT_POSITION = 140 LEN_PRESENT_POSITION = 4 TORQUE_ENABLE = 1 TORQUE_DISABLE = 0 @@ -257,10 +256,11 @@ def main(): except FileNotFoundError: driver = DynamixelDriver(ids, port="/dev/cu.usbserial-FT7WBMUB") + # Test setting torque mode driver.set_torque_mode(True) driver.set_torque_mode(False) - # Print the joint angles + # Test reading the joint angles try: while True: joint_angles = driver.get_joints() @@ -271,4 +271,4 @@ def main(): if __name__ == "__main__": - main() + main() # Test the driver