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-822] Spot Driver without gripper #430

Merged
merged 5 commits into from
Jul 16, 2024
Merged

Conversation

tcappellari-bdai
Copy link
Collaborator

Change Overview

Added a parameter "gripperless" to indicate if the gripper is attached to the arm or not. If the arm is present but gripper is not, it will skip making the gripper and hand camera services.

Goes with bdaiinstitute/spot_wrapper#125

Testing Done

Tested on a Spot with a special gripperless firmware

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.

Copy link
Collaborator

@bhung-bdai bhung-bdai left a comment

Choose a reason for hiding this comment

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

I didn't realize this wasn't already a feature??

@coveralls
Copy link

coveralls commented Jul 15, 2024

Pull Request Test Coverage Report for Build 9961613953

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 426 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+0.01%) to 52.897%

Files with Coverage Reduction New Missed Lines %
spot_ros2/spot_ros2/spot_driver/spot_driver/spot_ros2.py 426 45.25%
Totals Coverage Status
Change from base Build 9958396788: 0.01%
Covered Lines: 1908
Relevant Lines: 3607

💛 - Coveralls

Copy link
Collaborator

This is maybe a topic for another PR, but how does this work with the image publishers? Eg what will happen if the robot is gripperless but the C++ image publishers try to request the hand camera?

Comment on lines +436 to 438
if has_arm and not self.gripperless:
all_cameras.append("hand")
self.declare_parameter("cameras_used", all_cameras)
Copy link
Collaborator

@khughes-bdai khughes-bdai Jul 15, 2024

Choose a reason for hiding this comment

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

I think this param is not used at all in this node and can be completely deleted (it's all in C++ now)

@tcappellari-bdai tcappellari-bdai merged commit dac7d40 into main Jul 16, 2024
5 checks passed
@tcappellari-bdai tcappellari-bdai deleted the tcap/gripperless_driver branch July 16, 2024 18:01
@@ -861,7 +867,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:
if has_arm and self.gripperless:
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 shouldn't this be if has_arm and not self.gripperless?

marlow-fawn pushed a commit to marlow-fawn/spot_ros2 that referenced this pull request Aug 19, 2024
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.

6 participants