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

Method __init__

dynamixel_client.py:422–436  ·  view source on GitHub ↗
(self,
                 client: DynamixelClient,
                 motor_ids: Sequence[int],
                 pos_scale: float = 1.0,
                 vel_scale: float = 1.0,
                 cur_scale: float = 1.0)

Source from the content-addressed store, hash-verified

420 """Reads positions and velocities."""
421
422 def __init__(self,
423 client: DynamixelClient,
424 motor_ids: Sequence[int],
425 pos_scale: float = 1.0,
426 vel_scale: float = 1.0,
427 cur_scale: float = 1.0):
428 super().__init__(
429 client,
430 motor_ids,
431 address=ADDR_PRESENT_POS_VEL_CUR,
432 size=LEN_PRESENT_POS_VEL_CUR,
433 )
434 self.pos_scale = pos_scale
435 self.vel_scale = vel_scale
436 self.cur_scale = cur_scale
437
438 def _initialize_data(self):
439 """Initializes the cached data."""

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected