Skip to content

Commit 5c9dfa1

Browse files
committed
remove __main__
1 parent 0396646 commit 5c9dfa1

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

robot.py

-8
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,3 @@ def _set_position_control(self):
161161
self.dynamixel.set_operating_mode(motor_id, OperatingMode.POSITION)
162162
self._enable_torque()
163163
self.motor_control_state = MotorControlType.POSITION_CONTROL
164-
165-
166-
if __name__ == '__main__':
167-
leader = PhysicalRobot(device_name='/dev/tty.usbmodem57380045221')
168-
leader.set_trigger_torque()
169-
for _ in range(10000):
170-
pwm = leader.read_position()
171-
print(f' {leader._pwm2pos(np.array(pwm))}')

0 commit comments

Comments
 (0)