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

Localization motion in standby #1335

Merged
merged 1 commit into from
Jul 19, 2024

Conversation

MeiiMoon
Copy link
Contributor

@MeiiMoon MeiiMoon commented Jul 18, 2024

Why? What?

Due to the problem related filtered game state filter, it caused the problem for the robot to skip standby between initial and ready, and the robot goes straight from Initial to Ready.

In the correct order, the robot goes from Initial -> Standby -> Ready, and from Standby -> Ready, the robot does "generate_initial_pose", which is the correct pose. On the other hand, when the Standby is skipped, robot goes from Initial->Ready, and during Initial, the robot get unstiffed. When the robot is unstiffed, it does the 'generate_penalized_poses', therefore this caused the delocalization.

To fix the root of this issue, see issue #1333. What this PR does is though, we add PrimaryState:Initial -> PrimaryState:Ready transition, in case a robot ever skips Standby again, the delocalization due to "skipped Standby" will be prevented.

Fixes #1279

How to Test

@MeiiMoon MeiiMoon force-pushed the Localization_MotionInStandby branch from e2b371f to a41b705 Compare July 18, 2024 18:08
@MeiiMoon MeiiMoon added RC24 ParameterChangesOnly JSON as far as the eye can see. labels Jul 19, 2024
@MeiiMoon MeiiMoon enabled auto-merge July 19, 2024 08:44
Copy link
Contributor

@schluis schluis left a comment

Choose a reason for hiding this comment

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

Nice 👌🏻

@MeiiMoon MeiiMoon added this pull request to the merge queue Jul 19, 2024
@schluis schluis self-assigned this Jul 19, 2024
Merged via the queue into HULKs:main with commit 1646877 Jul 19, 2024
25 checks passed
@MeiiMoon MeiiMoon deleted the Localization_MotionInStandby branch July 19, 2024 10:29
pejotejo pushed a commit to pejotejo/hulk that referenced this pull request Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ParameterChangesOnly JSON as far as the eye can see.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Localization issue after motion in standby penalty
2 participants