Go to Post Then as soon as we get the kit loaded into the back of my truck, we ferociously rip it open screaming "How many CIMs!?" - sanddrag [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 05-09-2008, 10:08
mluckham's Avatar
mluckham mluckham is offline
Registered User
FRC #0758 (Sky Robotics)
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2006
Location: Ontario, Canada
Posts: 116
mluckham will become famous soon enoughmluckham will become famous soon enough
Re: Kalman Filters

The first I heard of Kalman Filters was in articles related to the Darpa challenge ... it was my impression it was a means to process signal inputs AND combine inputs from multiple sensors (like wheel encoders plus gyro plus accelerometer) into some sort of matrix which would evaluate the most correct decision data.

From reading this thread I now understand that the Kalman Filter is a means to extract a good signal (opinion/estimate) from a noisy one - usually from ONE sensor.

Since it seems that the Kalman Filter is a very advanced topic, in First we can use simpler filtering techniques such as moving averages, throwing out "obviously bad" minimum and maximum sensor readings, and more advanced filters such as FIR and FFT. Some more discussion about filtering sensor inputs, and combining multiple sensors into decision-making software, can be found at http://www.servomagazine.com/search.php and searching for filter.

Searching for sensor fusion on the same site produces some interesting articles about combining multiple sensors to make decisions, particularly the July and August 2006 articles entitled "Autonomous Robots and Multiple Sensors".
  #2   Spotlight this post!  
Unread 05-09-2008, 17:46
Samuel H. Samuel H. is offline
Registered User
no team
 
Join Date: Dec 2005
Rookie Year: 1000
Location: World
Posts: 40
Samuel H. has a spectacular aura aboutSamuel H. has a spectacular aura about
Re: Kalman Filters

Quote:
Originally Posted by mluckham View Post
The first I heard of Kalman Filters was in articles related to the Darpa challenge ... it was my impression it was a means to process signal inputs AND combine inputs from multiple sensors (like wheel encoders plus gyro plus accelerometer) into some sort of matrix which would evaluate the most correct decision data.

From reading this thread I now understand that the Kalman Filter is a means to extract a good signal (opinion/estimate) from a noisy one - usually from ONE sensor.
Actually, because the Kalman filter is based on matrix operations, it is very flexible and can be used for varying numbers of sensors and state variables. For a comprehensive set of links see http://www.cs.unc.edu/~welch/kalman/

Last edited by Samuel H. : 06-09-2008 at 02:45.
  #3   Spotlight this post!  
Unread 05-09-2008, 18:14
Richard Wallace's Avatar
Richard Wallace Richard Wallace is online now
I live for the details.
FRC #3620 (Average Joes)
Team Role: Engineer
 
Join Date: Jan 2003
Rookie Year: 1996
Location: Southwestern Michigan
Posts: 3,650
Richard Wallace has a reputation beyond reputeRichard Wallace has a reputation beyond reputeRichard Wallace has a reputation beyond reputeRichard Wallace has a reputation beyond reputeRichard Wallace has a reputation beyond reputeRichard Wallace has a reputation beyond reputeRichard Wallace has a reputation beyond reputeRichard Wallace has a reputation beyond reputeRichard Wallace has a reputation beyond reputeRichard Wallace has a reputation beyond reputeRichard Wallace has a reputation beyond repute
Re: Kalman Filters

Several summers ago, a college mentor from FRC 931 built a low cost self-balancing scooter as a demonstration project while working as an intern in my lab at Emerson. His creation looked very much like one built earlier by Trevor Blackwell. Both versions employ Kalman filters to correct for drift in the tilt angle estimated by integrating a gyro's output.

While that student has gone on to pursue PhD level work since then, he had never heard of a Kalman filter before starting the project. Full comprehension of the Kalman filter's mathematical beauty requires the kind of study that previous posters in this thread have described -- and that study is rewarding for its own sake. However, you can apply what others have done without getting to that depth.

Yes, the mathematical basis for balancing an inverted pendulum really is rocket science. Be encouraged by the evidence that the math works, not intimidated by its beautiful details.
__________________
Richard Wallace

Mentor since 2011 for FRC 3620 Average Joes (St. Joseph, Michigan)
Mentor 2002-10 for FRC 931 Perpetual Chaos (St. Louis, Missouri)
since 2003

I believe in intuition and inspiration. Imagination is more important than knowledge. For knowledge is limited, whereas imagination embraces the entire world, stimulating progress, giving birth to evolution. It is, strictly speaking, a real factor in scientific research.
(Cosmic Religion : With Other Opinions and Aphorisms (1931) by Albert Einstein, p. 97)
  #4   Spotlight this post!  
Unread 05-09-2008, 19:22
nickmagus's Avatar
nickmagus nickmagus is offline
Registered User
AKA: Nick Clayton
FRC #0008 (Paly Robotics)
Team Role: Programmer
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Palo Alto, Califorinia
Posts: 56
nickmagus is an unknown quantity at this point
Send a message via AIM to nickmagus
Re: Kalman Filters

its true i can utilize someone else's implementation but i don't like to do that unless i at least understand their implementation myself. and typically apart from basic framework code (which is a pain) i like to implement code myself (or use code implemented by my teammates) its just hard to properly use code that you don't understand. for example i was looking at the code for an old robot fixing it up and i found the PID loop was adding the D term to the output which is exactly the opposite of what you want so i like to at least understand the basics (including the basic math) behind the code i write. Anyone can use someone else's algorithms but if they don't try to understand them they get nothing from it. so when i wrote a auto tune loop for a PID earlier this year based on zigler-nicoles it was only after reading an entire text book from a cal tech course (which was fascinating and free btw i recommend it http://www.cds.caltech.edu/~murray/a...itle=Main_Page)
  #5   Spotlight this post!  
Unread 05-09-2008, 21:31
Richard Wallace's Avatar
Richard Wallace Richard Wallace is online now
I live for the details.
FRC #3620 (Average Joes)
Team Role: Engineer
 
Join Date: Jan 2003
Rookie Year: 1996
Location: Southwestern Michigan
Posts: 3,650
Richard Wallace has a reputation beyond reputeRichard Wallace has a reputation beyond reputeRichard Wallace has a reputation beyond reputeRichard Wallace has a reputation beyond reputeRichard Wallace has a reputation beyond reputeRichard Wallace has a reputation beyond reputeRichard Wallace has a reputation beyond reputeRichard Wallace has a reputation beyond reputeRichard Wallace has a reputation beyond reputeRichard Wallace has a reputation beyond reputeRichard Wallace has a reputation beyond repute
Re: Kalman Filters

Quote:
Originally Posted by nickmagus View Post
its true i can utilize someone else's implementation but i don't like to do that unless i at least understand their implementation myself. ...
OK, so you like the beautiful details. I do too.

BTW, the former FRC 931 college mentor that I mentioned above is Brandon Heller. He is a PhD student at Stanford now. I think he also was one of the mentors for FRC 8 (your team) last year.

As Sam mentioned a couple of posts up, Kalman filters are good for much more than just figuring out which way is up (whatever your frame of reference). Your exploration of the details might lead to applications beyond balancing an inverted pendulum, and one of those might find its way onto your team's next robot. Have fun with it.
__________________
Richard Wallace

Mentor since 2011 for FRC 3620 Average Joes (St. Joseph, Michigan)
Mentor 2002-10 for FRC 931 Perpetual Chaos (St. Louis, Missouri)
since 2003

I believe in intuition and inspiration. Imagination is more important than knowledge. For knowledge is limited, whereas imagination embraces the entire world, stimulating progress, giving birth to evolution. It is, strictly speaking, a real factor in scientific research.
(Cosmic Religion : With Other Opinions and Aphorisms (1931) by Albert Einstein, p. 97)
  #6   Spotlight this post!  
Unread 05-09-2008, 23:20
nickmagus's Avatar
nickmagus nickmagus is offline
Registered User
AKA: Nick Clayton
FRC #0008 (Paly Robotics)
Team Role: Programmer
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Palo Alto, Califorinia
Posts: 56
nickmagus is an unknown quantity at this point
Send a message via AIM to nickmagus
Re: Kalman Filters

ya he was a mentor of ours last year. Im not sure of his status this year but thanks i'll ask him about it. but first for research into the beautiful details and some other concepts in control theory, beyond what i already know. thanks all for your help and support.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Collaborate on LabView virtual Kalman robot? KHall Technical Discussion 3 09-06-2008 23:18
Kalman Filter for Heading information. Tatsu Programming 1 22-02-2007 02:20
Digital Filters? archiver 2000 2 23-06-2002 22:55


All times are GMT -5. The time now is 00:13.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi