Skip to content

Commit

Permalink
[N/A] Services correctly created if not gripperless (#444)
Browse files Browse the repository at this point in the history
Co-authored-by: Katie Hughes <[email protected]>
  • Loading branch information
khughes-bdai and Katie Hughes authored Jul 31, 2024
1 parent c236edf commit 0f48be8
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions spot_driver/spot_driver/spot_ros2.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,14 +428,9 @@ def __init__(self, parameter_list: Optional[typing.List[Parameter]] = None, **kw
self.get_logger().error(error_msg)
raise ValueError(error_msg)

all_cameras = ["frontleft", "frontright", "left", "right", "back"]
has_arm = self.mock_has_arm
if self.spot_wrapper is not None:
has_arm = self.spot_wrapper.has_arm()
if has_arm and not self.gripperless:
all_cameras.append("hand")
self.declare_parameter("cameras_used", all_cameras)
self.cameras_used = self.get_parameter("cameras_used")

if self.publish_graph_nav_pose.value:
# graph nav pose will be published both on a topic
Expand Down Expand Up @@ -866,7 +861,7 @@ def __init__(self, parameter_list: Optional[typing.List[Parameter]] = None, **kw
self.handle_graph_nav_set_localization,
callback_group=self.group,
)
if has_arm and self.gripperless:
if has_arm and not self.gripperless:
self.create_service(
GetGripperCameraParameters,
"get_gripper_camera_parameters",
Expand Down

0 comments on commit 0f48be8

Please sign in to comment.