You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used this library to control a simulated robot with obstacle avoidance. Fuzzy logic is used to calculate the turn radius based on 2 distance sensors.
I completely revamped the defuzzification part and cleaned things up. Rule is now responsible for collecting and preparing the conditions while all the logic is in defuzz.py. By doing so, I figured that I re-scaled an already valid result. Removing this redundant step it's now producing 0.0 as expected.
I used this library to control a simulated robot with obstacle avoidance. Fuzzy logic is used to calculate the turn radius based on 2 distance sensors.
For example, with the fuzzy system set up as:
when executing this rule:
R25 = Rule({(leftObstacleSensor.veryWeak, rightObstacleSensor.veryWeak) : turningRadius.noTurn})
the output is "-50.5" opposed to the expected "0"
My simulated robot project can be found here
The text was updated successfully, but these errors were encountered: