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

How to use batch_filter, and rts_smoother for multiple sensors with different sampling rates #22

Closed
bcordo opened this issue Sep 8, 2015 · 2 comments

Comments

@bcordo
Copy link
Contributor

bcordo commented Sep 8, 2015

Thanks for this amazing library coupled with your very informative book. I am really grateful that you spent so much time making this great.

In you book you have an example of creating a filter that could handle measurements from two sensors with different sampling frequencies. The solution there was to create different R and H matrices depending on which sensor we have at a particular time.

My question is how we can do this but using the batch_filter, and rts_smoother functions? Is that already implemented in filterPy and I just missed that, or do you have a recommended way to implement this myself.

Thanks so much.

Best,

Brad

@rlabbe
Copy link
Owner

rlabbe commented Sep 8, 2015

It is not built into the library, unfortunately. You can pass in a
list of Rs, but not Hs, to batch_filter. I would kind of like to add
this, just haven't gotten to it yet.

Just look at the code for batch_filter and rts. They are just loops.
Write your own loops, and substitute in your own R and H at the
appropriate places.

I know that is a brief answer; if you have more questions just ask.

On 9/8/15, Brad Cordova notifications@github.com wrote:

Thanks for this amazing library coupled with your very informative book. I
am really grateful that you spent so much time making this great.

In you book you have an
example
of creating a filter that could handle measurements from two sensors with
different sampling frequencies. The solution there was to create different R
and H matrices depending on which sensor we have at a particular time.

My question is how we can do this but using the batch_filter, and
rts_smoother functions? Is that already implemented in filterPy and I just
missed that, or do you have a recommended way to implement this myself.

Thanks so much.

Best,

Brad


Reply to this email directly or view it on GitHub:
#22

)..(
(.o)
.( ) |||| "'"

@bcordo
Copy link
Contributor Author

bcordo commented Sep 8, 2015

Great thanks so much for the quick response. Will try that now.

Brad

On Sep 8, 2015, at 12:03 PM, Roger Labbe notifications@github.com wrote:

It is not built into the library, unfortunately. You can pass in a
list of Rs, but not Hs, to batch_filter. I would kind of like to add
this, just haven't gotten to it yet.

Just look at the code for batch_filter and rts. They are just loops.
Write your own loops, and substitute in your own R and H at the
appropriate places.

I know that is a brief answer; if you have more questions just ask.

On 9/8/15, Brad Cordova notifications@github.com wrote:

Thanks for this amazing library coupled with your very informative book. I
am really grateful that you spent so much time making this great.

In you book you have an
example
of creating a filter that could handle measurements from two sensors with
different sampling frequencies. The solution there was to create different R
and H matrices depending on which sensor we have at a particular time.

My question is how we can do this but using the batch_filter, and
rts_smoother functions? Is that already implemented in filterPy and I just
missed that, or do you have a recommended way to implement this myself.

Thanks so much.

Best,

Brad


Reply to this email directly or view it on GitHub:
#22

)..(
(.o)
.( ) |||| "'"

Reply to this email directly or view it on GitHub.

@rlabbe rlabbe closed this as completed Dec 25, 2015
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