Presentation is loading. Please wait.

Presentation is loading. Please wait.

Hexmoor, 2001 Henry Hexmoor Southern Illinois University Faner Hall, Room 2130 Carbondale, IL 62901 Fuzzy logic.

Similar presentations


Presentation on theme: "Hexmoor, 2001 Henry Hexmoor Southern Illinois University Faner Hall, Room 2130 Carbondale, IL 62901 Fuzzy logic."— Presentation transcript:

1 Hexmoor, 2001 Henry Hexmoor Southern Illinois University Faner Hall, Room 2130 Carbondale, IL 62901 Fuzzy logic

2 Hexmoor, 2001 The value of a proposition “John has a fever” takes truth value in the interval [0-1]. Fuzzy Logic Temperatures 95 96 97 98 99 100 101 102 103 014 105 106 107 1.0 0.0

3 Hexmoor, 2001 T(p and q) = min (T(p), T(q)) T(p or q) = max (T(p), T(q)) T(not p) = 1 – T(p) T(p  q) = min (1, 1 - T(p) + T(q)) Fuzzy Logic

4 Hexmoor, 2001 Let's consider the following rules: 1. obstacle very-close and left-side clear and right-side clear -> move left 2. obstacle very-close and left-side tight and right-side tight -> move tight-left 3. obstacle very-close and left-side tight and right-side clear -> move right 4. obstacle very-close and left-side clear and right-side tight -> move left 5. obstacle very-close and left-side closed and right-side tight -> move tight-right 6. obstacle very-close and left-side tight and right-side closed -> move tight-left Fuzzy Logic

5 Hexmoor, 2001 Let's have the following functions: Fuzzy Logic 1.0 0.0 Dist to obstacle 1’ 10’ Very Close 1.0 0.0 Side Clearance 1’ 10’ Clear 1.0 0.0 Side Clearance 1’ 10’ Tight 1.0 0.0 Side Clearance 1’ 10’ Closed 1.0 0.0 Direction change -90 0 +90 Move Left 1.0 0.0 Direction change -90 0 +90 Move Right 1.0 0.0 Direction change -90 0 +90 Tight Left 1.0 0.0 Direction change -90 0 +90 Tight Right

6 Hexmoor, 2001 To apply the rules, we follow these steps: 1. Get input. Suppose we get input of obstacle being 3 feet in front left side has a 1 foot clearance and right side has a 5 foot clearance. 2. Let's examine the applicability of left hand sides of the rules. AND in the left hand side means minimum. The resulting numbers are MODULATED values. I.e., the degree to which the rules will be activated..8,.0, 1. ==> 0..8,.8,.5 ==>.5.8,.8,.2 ==>.2.8,.2,.8 ==>.2.8,.8,.5 ==>.5.8,.8..8 ==>.8 3. Scale down curves on the right hand side by the modulation factors. 4. Overlap and sum the scaled down function on the right hand side. Scale the summed curve to fit the range 0-1. 5. Find the place on the horizontal axis of output furntions that divides the space under the functions into two equal areas to the left and right. This is called finding the center of gravity for the output function. The value on the horizontal axis found is the ARBITRATED value sent to the actuators. In this case this will be amount of steering. Fuzzy Logic

7 Hexmoor, 2001 3. Scale down curves on the right hand side by the modulation factors. 4. Overlap and sum the scaled down function on the right hand side. Scale the summed curve to fit the range [0.0-1.0]. 5. Find the place on the horizontal axis of output functions that divides the space under the functions into two equal areas to the left and right. This is called finding the center of gravity for the output function. The value on the horizontal axis found is the ARBITRATED value sent to the actuators. In this case this will be amount of steering. Fuzzy Logic


Download ppt "Hexmoor, 2001 Henry Hexmoor Southern Illinois University Faner Hall, Room 2130 Carbondale, IL 62901 Fuzzy logic."

Similar presentations


Ads by Google