Method
__init__
(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
Tested by
no test coverage detected