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

Method _initialize_data

dynamixel_client.py:482–484  ·  view source on GitHub ↗

Initializes the cached data.

(self)

Source from the content-addressed store, hash-verified

480 self.pos_scale = pos_scale
481
482 def _initialize_data(self):
483 """Initializes the cached data."""
484 self._pos_data = np.zeros(len(self.motor_ids), dtype=np.float32)
485
486 def _update_data(self, index: int, motor_id: int):
487 """Updates the data index for the given motor ID."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected