Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

Latest commit

 

History

History
28 lines (18 loc) · 721 Bytes

position_control.en.md

File metadata and controls

28 lines (18 loc) · 721 Bytes

Position Control

🌏 English, 한국어


The basic Operating Mode of Dynamixel is Position Control Mode. So we used the remainder of 4096. 4096 represent one round in Dynamixel unit. For details, see the control table of each motor.

from dynamixel_helper import DxlHelper

helper = DxlHelper("my_preset.json")

motor_id = 0
motor = helper.get_motor(motor_id)
motor.set_torque(True)

dxl_unit, res = motor.get_present_position()
motor.set_goal_position((dxl_unit + 2000) % 4096)