Skip to content

Instantly share code, notes, and snippets.

@cotramarko
Last active September 15, 2019 18:51
Show Gist options
  • Save cotramarko/1eea9bcbef3b0f3e12262e245fb196c2 to your computer and use it in GitHub Desktop.
Save cotramarko/1eea9bcbef3b0f3e12262e245fb196c2 to your computer and use it in GitHub Desktop.
# Pseudo code in Python of how the sensor fusion predict-update loop could look like
sf_algo = SFalgo(motion_model, measurement_model)
for (i, y) in enumerate(measurements):
if i == 0:
pred = sf_algo.predict(prior)
post = sf_algo.update(y, pred)
else:
pred = sf_algo.predict(post)
post = sf_algo.update(y, pred)
@bsarthak173
Copy link

Can you show your SFalgo function code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment