Skip to content

Commit

Permalink
Changed the parent link of attachments
Browse files Browse the repository at this point in the history
  • Loading branch information
luis-camero committed Nov 14, 2023
1 parent 47212fc commit ddc20f3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
9 changes: 6 additions & 3 deletions clearpath_config/platform/attachments/a200.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,14 @@ class A200TopPlate(BaseAttachment):
LARGE = "large"
PACS = "pacs"
MODELS = [DEFAULT, LARGE, PACS]
PARENT = "mid_mount"

def __init__(
self,
name: str = ATTACHMENT_MODEL,
model: str = DEFAULT,
enabled: bool = BaseAttachment.ENABLED,
parent: str = Accessory.PARENT,
parent: str = PARENT,
xyz: List[float] = Accessory.XYZ,
rpy: List[float] = Accessory.RPY
) -> None:
Expand All @@ -60,14 +61,15 @@ class A200Bumper(Bumper):
EXTENSION = 0.0
DEFAULT = "default"
MODELS = [DEFAULT]
PARENT = "front_bumper_mount"

def __init__(
self,
name: str = ATTACHMENT_MODEL,
model: str = DEFAULT,
enabled: bool = BaseAttachment.ENABLED,
extension: float = EXTENSION,
parent: str = Accessory.PARENT,
parent: str = PARENT,
xyz: List[float] = Accessory.XYZ,
rpy: List[float] = Accessory.RPY
) -> None:
Expand All @@ -81,13 +83,14 @@ class A200SensorArch(BaseAttachment):
ARCH_510 = "sensor_arch_510"
DEFAULT = ARCH_300
MODELS = [ARCH_300, ARCH_510]
PARENT = "mid_mount"

def __init__(
self,
name: str = ATTACHMENT_MODEL,
model: str = DEFAULT,
enabled: bool = BaseAttachment.ENABLED,
parent: str = Accessory.PARENT,
parent: str = PARENT,
xyz: List[float] = Accessory.XYZ,
rpy: List[float] = Accessory.RPY
) -> None:
Expand Down
1 change: 1 addition & 0 deletions clearpath_config/platform/attachments/j100.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ class J100TopPlate(BaseAttachment):
ARK_ENCLOSURE = "ark_enclosure"
DEFAULT = ARK_ENCLOSURE
MODELS = [DEFAULT]
PARENT = "mid_mount"

def __init__(
self,
Expand Down

0 comments on commit ddc20f3

Please sign in to comment.