Skip to content

Commit

Permalink
[SW-822] Spot Driver without gripper (#125)
Browse files Browse the repository at this point in the history
* added gripperless parameter to driver

* switch has_arm and gripperless conditionals
  • Loading branch information
tcappellari-bdai authored Jul 15, 2024
1 parent 0880b95 commit dc662d0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spot_wrapper/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ def __init__(
rgb_cameras: bool = True,
payload_credentials_file: str = None,
cert_resource_glob: typing.Optional[str] = None,
gripperless: bool = False,
) -> None:
"""
Args:
Expand Down Expand Up @@ -387,6 +388,7 @@ def __init__(
self._keep_alive = True
self._lease_keepalive = None
self._valid = True
self.gripperless = gripperless

self._mobility_params = RobotCommandBuilder.mobility_params()
self._state = RobotState()
Expand Down Expand Up @@ -443,7 +445,7 @@ def __init__(
self._spot_check_client = self._robot.ensure_client(SpotCheckClient.default_service_name)
self._mission_client = self._robot.ensure_client(MissionClient.default_service_name)
self._license_client = self._robot.ensure_client(LicenseClient.default_service_name)
if self._robot.has_arm():
if not self.gripperless and self._robot.has_arm():
self._gripper_cam_param_client = self._robot.ensure_client(
GripperCameraParamClient.default_service_name
)
Expand Down

0 comments on commit dc662d0

Please sign in to comment.