go_away

Author Topic: Sensor fusion  (Read 593 times)

0 Members and 1 Guest are viewing this topic.

Offline kasuntTopic starter

  • Jr. Member
  • **
  • Posts: 7
  • Helpful? 0
Sensor fusion
« on: October 25, 2011, 03:40:16 AM »
Hi,

Im wondering if someone here is able to provide me with some info on sensor fusion.

I have a differential drive robot with a 360 degree IR sensor network (14 IRs in total) and two encoders.

I can provide more information if needed but all I want to do is fuse both the encoder and the IRs to provide the heading.

I think a technique called weighted average is quite simple but im not able to find any useful documentation on this.

Thanks in advance

Offline peterb

  • Beginner
  • *
  • Posts: 4
  • Helpful? 0
Re: Sensor fusion
« Reply #1 on: November 03, 2011, 02:28:25 PM »
Hello,

About "weighted average".

Probably this is it:
Let's say, that you have two inputs: x and y (x, y are numbers).
We need two other numbers (the "weights"), let them are a and b.
Weighted average of x,y is the next: (a*x + b*y)/(a+b)

The normal average is (x+y)/2, where the x and y are equally "important".

With weighted average, you can make one of x and y more "stronger" than the other. The stronger input will influence the output more.

Now back to your question:
You have three inputs: IR, E1 and E2 encoders.
Let us say, that you counted the headings from the inputs : hIR, hE1,hE2, for example:
hIR=60, hE1=50, hE2=52 (grads).
The average will be (60+50+52)/3=54, so your robot's head is in 54 grad.

But, you experimented, that the encoders are not as good as you planned, so you should make the IR inputs stronger:
(2*60+1*50+1*52)/(2+1+1)=55

Now your problem is, which numbers should you use as weights.

 


Get Your Ad Here