Skip to content

Commit 2f18019

Browse files
authored
Fix reading arm_id (#204)
1 parent aa5cb2e commit 2f18019

File tree

1 file changed

+7
-0
lines changed
  • clearpath_config/manipulators/types

1 file changed

+7
-0
lines changed

clearpath_config/manipulators/types/arms.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,9 +407,16 @@ def __init__(
407407
def from_dict(self, d: dict) -> None:
408408
self.config = d
409409
super().from_dict(d)
410+
if 'arm_id' in d:
411+
self.arm_id = d['arm_id']
410412
if 'gripper' in d:
411413
self.gripper.arm_id = self.arm_id
412414

415+
def to_dict(self) -> dict:
416+
d = super().to_dict()
417+
d['arm_id'] = self.arm_id
418+
return d
419+
413420
@property
414421
def arm_id(self) -> str:
415422
return self._arm_id

0 commit comments

Comments
 (0)