Skip to content

Commit

Permalink
Use the ROS_DISTRO variable from clearpath_generator_common instead o…
Browse files Browse the repository at this point in the history
…f hard-coding the distro
  • Loading branch information
civerachb-cpr committed Nov 4, 2024
1 parent cba24ec commit 70fccb6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions clearpath_config/manipulators/types/arms.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
from clearpath_config.common.types.port import Port
from clearpath_config.manipulators.types.grippers import Gripper
from clearpath_config.manipulators.types.manipulator import BaseManipulator
from clearpath_generator_common.ros import ROS_DISTRO


class BaseArm(BaseManipulator):
Expand Down Expand Up @@ -123,23 +124,23 @@ class KinovaGen3Dof6(BaseArm):

@staticmethod
def assert_is_supported():
raise UnsupportedAccessoryException("Kinova Gen3 is not yet supported for Jazzy")
raise UnsupportedAccessoryException(f"Kinova Gen3 is not yet supported in {ROS_DISTRO}")


class KinovaGen3Dof7(BaseArm):
MANIPULATOR_MODEL = "kinova_gen3_7dof"

@staticmethod
def assert_is_supported():
raise UnsupportedAccessoryException("Kinova Gen3 is not yet supported for Jazzy")
raise UnsupportedAccessoryException(f"Kinova Gen3 is not yet supported in {ROS_DISTRO}")


class KinovaGen3Lite(BaseArm):
MANIPULATOR_MODEL = "kinova_gen3_lite"

@staticmethod
def assert_is_supported():
raise UnsupportedAccessoryException("Kinova Gen3 Lite is not yet supported for Jazzy")
raise UnsupportedAccessoryException(f"Kinova Gen3 Lite is not yet supported in {ROS_DISTRO}")


class Arm():
Expand Down

0 comments on commit 70fccb6

Please sign in to comment.