|
| 1 | +config = { |
| 2 | + "DXL_RESOLUTION": 0.088, # Position resolution of XM430-W210 in degree |
| 3 | + "DXL_VELOCITY_RESOLUTION": 0.229, # Velocity resolition of XM430-W210 in rpm |
| 4 | + "DXL_TO_CURRENT": 2.69, # From dynamixel return value to current |
| 5 | + # Control table address |
| 6 | + "ADDR_TORQUE_ENABLE": 64, # To set torque on/off |
| 7 | + "ADDR_PRESENT_POSITION": 132, # To read position |
| 8 | + "ADDR_PRESENT_VELOCITY": 128, # To read velocity |
| 9 | + "ADDR_PRESENT_CURRENT": 126, # To read current |
| 10 | + "ADDR_OP_MODE": 11, # To set operation mode (position/velocity/multi_turn mode) |
| 11 | + "ADDR_GOAL_POSITION": 116, # To write position |
| 12 | + # Data Byte Length |
| 13 | + "LEN_GOAL_POSITION": 4, # In byte |
| 14 | + "LEN_PRESENT_POSITION": 4, # In byte |
| 15 | + "LEN_PRESENT_VELOCITY": 4, # In byte |
| 16 | + "LEN_PRESENT_CURRENT": 2, # In byte |
| 17 | + "CW_LIMIT": 4095, # Clockwise limit |
| 18 | + "CCW_LIMIT": 0, # Counter clock wise limit |
| 19 | + "DXL_POS_OFFSET": 2048, # Initial position |
| 20 | + # Protocol version |
| 21 | + "PROTOCOL_VERSION": 2.0, |
| 22 | + # Default setting |
| 23 | + "DXL1_ID": 11, # Joint 1 ID |
| 24 | + "DXL2_ID": 12, # Joint 2 ID |
| 25 | + "DXL3_ID": 13, # Joint 3 ID |
| 26 | + "DXL4_ID": 14, # Joint 4 ID |
| 27 | + "BAUDRATE": 1000000, |
| 28 | + "DEVICENAME": "/dev/ttyUSB0", # Connected USB port |
| 29 | + "TORQUE_ENABLE": 1, # Torque on |
| 30 | + "TORQUE_DISABLE": 0, # Torque off |
| 31 | +} |
0 commit comments