Membership Function in Fuzzy Logic in C

I am trying to implement a fuzzy logic membership function in C for a robotic hobby project, but I'm not quite sure how to get started.

I have data about objects near a point, for example, about distance or which directions are clear / difficult, and I want to indicate how strongly these inputs relate to sets, how very close, close, far, very far. Does anyone have a clue on how to get started? Thanks.

+3
source share
4 answers

Disclaimer . I never implemented a fuzzy controller (I only ever used a PI or PID in real life), and the management class was 10 years ago.

Here's a presentation demonstrating the transition to a goal using distance and angle for inputs and power as an output. FuzzyTech Example of faucet positioning
This simply represents the topic and theory, that is, no code.

The best source is probably one of the robotics groups, for example, the Seattle Robotic Society fuzzy logic textbook , it's technical ... and long.

if you can access technical journals, then look for a Google scientist for “fuzzy logic” “path planning” robotics

, , , , Note , , Microchip paper . , Arduino, Microchips, , .

, , ++, , , . .

+5

, , , , (, 10 ) (, 1 ), ( 55 50% , 50% ). - , , .

?

, . , , , fuzzification defuzzification.

0

MakeProto Fuzzy Systems, C Matlab .

.

http://makeproto.com/blog/?p=35

0

The fuzzy inference system can be implemented in both C and C ++. Learn How to create fuzzy logic in c

0
source

Source: https://habr.com/ru/post/1723630/


All Articles