Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SW-1890] changed take_lease_handler to acquire lease if possible, not force take #568

Open
wants to merge 6 commits into
base: mixed_level_api
Choose a base branch
from

Conversation

tcappellari-bdai
Copy link
Collaborator

@tcappellari-bdai tcappellari-bdai commented Feb 3, 2025

Change Overview

spot_driver will acquire the lease (if available) instead of forcefully taking it. If lease is not available, print an error message. Tablet can still take the lease away but needs to be manually released from the tablet for the driver to acquire it.

Related to bdaiinstitute/spot_wrapper#154

Testing Done

Tested on robot with a few simple trigger services

Please create a checklist of tests you plan to do and check off the ones that have been completed successfully. Ensure that ROS 2 tests use domain_coordinator to prevent port conflicts. Further guidance for testing can be found on the ros utilities wiki.

dependabot bot and others added 2 commits January 29, 2025 08:52
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@@ -226,7 +226,7 @@ def __init__(self, parameter_list: Optional[typing.List[Parameter]] = None, **kw
self.declare_parameter("auto_power_on", False)
self.declare_parameter("auto_stand", False)

self.declare_parameter("use_take_lease", True)
self.declare_parameter("use_take_lease", False)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tcappellari-bdai meta: if we keep this parameter (e.g. for backwards compatibility), I believe we should at least warn the user of the implications of enabling it.

spot_driver/spot_driver/spot_ros2.py Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants