Skip to content

Commit

Permalink
Merge pull request #84 from clearpathrobotics/lcamero/0.3-attachments
Browse files Browse the repository at this point in the history
0.3 Attachments
  • Loading branch information
tonybaltovski authored Sep 9, 2024
2 parents 71028f3 + 3ef3cb6 commit 01f4602
Show file tree
Hide file tree
Showing 37 changed files with 735 additions and 277 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@

from clearpath_config.platform.attachments.a200 import A200Attachment
from clearpath_config.platform.attachments.config import BaseAttachment
from clearpath_config.platform.attachments.dd100 import DD100Attachment
from clearpath_config.platform.attachments.dd150 import DD150Attachment
from clearpath_config.platform.attachments.do100 import DO100Attachment
from clearpath_config.platform.attachments.do150 import DO150Attachment
from clearpath_config.platform.attachments.j100 import J100Attachment
from clearpath_config.platform.attachments.r100 import R100Attachment
from clearpath_config.platform.attachments.w200 import W200Attachment
from clearpath_config.platform.types.bumper import Bumper

Expand Down Expand Up @@ -74,6 +79,46 @@ def __init__(self, attachment: Bumper) -> None:
self.EXTENSION: attachment.extension
})

class DingoTopPlateDescription(BaseDescription):
HEIGHT = 'height'

def __init__(self, attachment: BaseAttachment) -> None:
super().__init__(attachment)
self.parameters.update({
self.HEIGHT: attachment.height
})

class RidgebackFAMSDescription(BaseDescription):
TABLE_HEIGHT = 'table_height'

def __init__(self, attachment: BaseAttachment) -> None:
super().__init__(attachment)
self.parameters.update({
self.TABLE_HEIGHT: attachment.table_height
})

class RidgebackHAMSDescription(BaseDescription):
TABLE_HEIGHT = 'table_height'
MOUNT_HEIGHT = 'mount_height'

def __init__(self, attachment: BaseAttachment) -> None:
super().__init__(attachment)
self.parameters.update({
self.TABLE_HEIGHT: attachment.table_height,
self.MOUNT_HEIGHT: attachment.mount_height
})

class RidgebackTowerDescription(BaseDescription):
LEFT_HEIGHT = 'left_height'
RIGHT_HEIGHT = 'right_height'

def __init__(self, attachment: BaseAttachment) -> None:
super().__init__(attachment)
self.parameters.update({
self.LEFT_HEIGHT: attachment.left_height,
self.RIGHT_HEIGHT: attachment.right_height
})

MODEL = {
# A200
A200Attachment.BUMPER: BumperDescription,
Expand All @@ -86,6 +131,15 @@ def __init__(self, attachment: Bumper) -> None:
W200Attachment.GENERATOR: BaseDescription,
W200Attachment.BULKHEAD: BaseDescription,
W200Attachment.ARM_PLATE: BaseDescription,
# DD100
DD100Attachment.TOP_PLATE: DingoTopPlateDescription,
DD150Attachment.TOP_PLATE: DingoTopPlateDescription,
DO100Attachment.TOP_PLATE: DingoTopPlateDescription,
DO150Attachment.TOP_PLATE: DingoTopPlateDescription,
# R100
R100Attachment.FAMS: RidgebackFAMSDescription,
R100Attachment.HAMS: RidgebackHAMSDescription,
R100Attachment.TOWER: RidgebackTowerDescription,
}

def __new__(cls, attachment: BaseAttachment) -> BaseDescription:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class KinovaArmDescription(ArmDescription):
GRIPPER_COMM = 'use_internal_bus_gripper_comm'
GRIPPER_NAMES = {
Kinova2FLite.get_manipulator_model(): '_right_finger_bottom_joint',
Robotiq2F140.get_manipulator_model(): '_robotiq_85_left_knuckle_joint',
Robotiq2F140.get_manipulator_model(): '_finger_joint',
Robotiq2F85.get_manipulator_model(): '_robotiq_85_left_knuckle_joint',
}

Expand Down
2 changes: 1 addition & 1 deletion clearpath_manipulators_description/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.5)
project(clearpath_manipulators_description)

find_package(ament_cmake REQUIRED)
install(DIRECTORY urdf config srdf launch
install(DIRECTORY urdf config srdf launch meshes
DESTINATION share/${PROJECT_NAME}
)

Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 01f4602

Please sign in to comment.