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

Can't process my data #9

Closed
CateDeku opened this issue Oct 9, 2019 · 2 comments
Closed

Can't process my data #9

CateDeku opened this issue Oct 9, 2019 · 2 comments

Comments

@CateDeku
Copy link

CateDeku commented Oct 9, 2019

Hi, sorry for my dumb question but i'm a newbie.
I'm trying to use your algorithm with my Gps data, but i keep getting error message: "unsupported operand type(s) for -: 'GPXTrackSegment' and 'float'"
How can i correctly implement it?
Polo_match.txt

@oseiskar
Copy link
Owner

oseiskar commented Oct 9, 2019

Hi. You should probably start by figuring out how to get your input data, which seems to be XML, into a matrix of observations, something like

[
    [latitude1, longitude1],
    [latitude2, longitude2],
    [latitude3, longitude3],
    ...
]

see, for example https://stackoverflow.com/questions/1912434/how-do-i-parse-xml-in-python

Then you can start designing your Kalman filter. Also transforming the GPS coordinates (in degrees) to a metric coordinate system may be a good idea at some point.

I'm closing this as the topic is general data wrangling and Kalman filter design, not this library.

@oseiskar oseiskar closed this as completed Oct 9, 2019
@CateDeku
Copy link
Author

Thank you very much!

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

No branches or pull requests

2 participants