-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
Conversation
SLAM/EKFSLAM/ekf_slam.py
Outdated
@@ -30,9 +30,9 @@ | |||
def ekf_slam(xEst, PEst, u, z): | |||
# Predict | |||
S = STATE_SIZE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we remove S?
There was a problem hiding this comment.
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.
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. |
SLAM/EKFSLAM/ekf_slam.py
Outdated
@@ -197,7 +196,7 @@ def pi_2_pi(angle): | |||
|
|||
|
|||
def main(): | |||
print(__file__ + " start!!") |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thank you!!
Reference issue
Fix #972
What does this implement/fix?
Additional information
CheckList