MCPcopy Create free account
hub / github.com/MarkFzp/act-plus-plus / _update_data

Method _update_data

dynamixel_client.py:409–412  ·  view source on GitHub ↗

Updates the data index for the given motor ID.

(self, index: int, motor_id: int)

Source from the content-addressed store, hash-verified

407 self._data = np.zeros(len(self.motor_ids), dtype=np.float32)
408
409 def _update_data(self, index: int, motor_id: int):
410 """Updates the data index for the given motor ID."""
411 self._data[index] = self.operation.getData(motor_id, self.address,
412 self.size)
413
414 def _get_data(self):
415 """Returns a copy of the data."""

Callers 1

readMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected