22 from .robotis_def
import *
26 def __init__(self, port, ph, start_address, data_length):
40 if self.
ph.getProtocolVersion() == 1.0:
49 self.
param.append(dxl_id)
52 if self.
ph.getProtocolVersion() == 1.0:
64 if self.
ph.getProtocolVersion() == 1.0:
75 if self.
ph.getProtocolVersion() == 1.0:
81 if self.
ph.getProtocolVersion() == 1.0
or len(self.
data_dict.keys()) == 0:
82 return COMM_NOT_AVAILABLE
93 if self.
ph.getProtocolVersion() == 1.0:
94 return COMM_NOT_AVAILABLE
99 return COMM_NOT_AVAILABLE
103 if result != COMM_SUCCESS:
106 if result == COMM_SUCCESS:
112 if self.
ph.getProtocolVersion() == 1.0:
113 return COMM_NOT_AVAILABLE
116 if result != COMM_SUCCESS:
130 def getData(self, dxl_id, address, data_length):
131 if not self.
isAvailable(dxl_id, address, data_length):
136 elif data_length == 2:
139 elif data_length == 4: