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 predict covariance #973

Merged
merged 2 commits into from
Jan 28, 2024
Merged

Fix predict covariance #973

merged 2 commits into from
Jan 28, 2024

Conversation

Chris7462
Copy link
Contributor

Reference issue

Fix #972

What does this implement/fix?

Additional information

CheckList

  • Did you add an unittest for your new example or defect fix?
  • Did you add documents for your new example?
  • All CIs are green? (You can check it after submitting)

@@ -30,9 +30,9 @@
def ekf_slam(xEst, PEst, u, z):
# Predict
S = STATE_SIZE
Copy link
Owner

Choose a reason for hiding this comment

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

Can we remove S?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Certainly, S is used to denote the innovation covariance in the update step, so using STATE_SIZE in the predict step enhances code clarity.

@AtsushiSakai
Copy link
Owner

@Chris7462
Copy link
Contributor Author

Als, is it possible the EKF SLAM doc too? https://github.com/AtsushiSakai/PythonRobotics/blob/master/docs/modules/slam/ekf_slam/ekf_slam_main.rst

Done. I have also removed all the trailing white space.

@@ -197,7 +196,7 @@ def pi_2_pi(angle):


def main():
print(__file__ + " start!!")
Copy link
Owner

Choose a reason for hiding this comment

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

Why did you remove the file name?

Copy link
Owner

@AtsushiSakai AtsushiSakai left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you!!

@AtsushiSakai AtsushiSakai merged commit 0874d50 into AtsushiSakai:master Jan 28, 2024
7 of 8 checks passed
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.

EKF SLAM predict
2 participants