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

Fix false trajectory success when blocked by obstacle #156

Merged

Conversation

gaddison-bdai
Copy link
Collaborator

As per jira ticket, we previously denoted “reaching the goal” as being when basic_command_pb2.SE2TrajectoryCommand.Feedback.Status has value STATUS_GOING_TO_GOAL, or STATUS_NEAR_GOAL, both of which, according to spot-sdk, were “possibly confusing in situations where the robot cannot achieve the requested trajectory and are now deprecated” (link).

I have updated the logic in spot_wrapper to no longer use those deprecated flags. This is necessary for spot_driver in spot_ros2 to properly report when the robot is blocked by an obstacle.

…tionally querying spot-sdk's basic_command_pb2.Feedback.FinalGoalStatus, renaming some flags, and modifying some logic accordingly
@coveralls
Copy link

coveralls commented Feb 13, 2025

Pull Request Test Coverage Report for Build 13314308544

Details

  • 3 of 25 (12.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.1%) to 40.532%

Changes Missing Coverage Covered Lines Changed/Added Lines %
spot_wrapper/wrapper.py 3 25 12.0%
Totals Coverage Status
Change from base Build 13243904236: -0.1%
Covered Lines: 1875
Relevant Lines: 4626

💛 - Coveralls

Copy link
Collaborator

@tcappellari-bdai tcappellari-bdai left a comment

Choose a reason for hiding this comment

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

lgtm

@khughes-bdai khughes-bdai merged commit d96cfb8 into main Feb 14, 2025
4 checks passed
@khughes-bdai khughes-bdai deleted the gaddison/SW-2016-fix-trajectory-action-blocked-behavior branch February 14, 2025 18:10
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.

4 participants