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

Method _initialize_data

dynamixel_client.py:405–407  ·  view source on GitHub ↗

Initializes the cached data.

(self)

Source from the content-addressed store, hash-verified

403 return self._get_data()
404
405 def _initialize_data(self):
406 """Initializes the cached data."""
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."""

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected