source: cpp/frams/neuro/neurocls-f0-SDK-factory.h @ 924

Last change on this file since 924 was 921, checked in by Maciej Komosinski, 4 years ago

Added the declaration of "solid muscles"

  • Property svn:eol-style set to native
File size: 4.8 KB
Line 
1// This file is a part of Framsticks SDK.  http://www.framsticks.com/
2// Copyright (C) 1999-2015  Maciej Komosinski and Szymon Ulatowski.
3// See LICENSE.txt for details.
4
5
6// do not edit - generated automatically from "f0.def"
7// (to be included in "neurofactory.cpp")
8
9
10
11
12
13
14#define FIELDSTRUCT NI_StdNeuron
15ParamEntry NI_StdNeuron_tab []={
16{"Neuron",1, 4 ,"N",},
17{"in",1,0,"Inertia","f 0.0 1.0 0.8",FIELD(inertia),},
18{"fo",1,0,"Force","f 0.0 999.0 0.04",FIELD(force),},
19{"si",1,0,"Sigmoid","f -99999.0 99999.0 2.0",FIELD(sigmo),},
20{"s",2,0,"State","f -1.0 1.0 0.0",FIELD(newstate),},
21 {0,0,0,},};
22#undef FIELDSTRUCT
23
24#define FIELDSTRUCT NI_StdUNeuron
25ParamEntry NI_StdUNeuron_tab []={
26{"Unipolar neuron [EXPERIMENTAL!]",1, 4 ,"Nu",},
27{"in",1,0,"Inertia","f 0.0 1.0 0.8",FIELD(inertia),},
28{"fo",1,0,"Force","f 0.0 999.0 0.04",FIELD(force),},
29{"si",1,0,"Sigmoid","f -99999.0 99999.0 2.0",FIELD(sigmo),},
30{"s",2,0,"State","f -1.0 1.0 0.0",FIELD(newstate),},
31 {0,0,0,},};
32#undef FIELDSTRUCT
33
34#define FIELDSTRUCT NI_Gyro
35ParamEntry NI_Gyro_tab []={
36{"Gyroscope",1, 0 ,"G",},
37 {0,0,0,},};
38#undef FIELDSTRUCT
39
40#define FIELDSTRUCT NI_Touch
41ParamEntry NI_Touch_tab []={
42{"Touch",1, 1 ,"T",},
43{"r",1,0,"Range","f 0.0 1.0 1.0",FIELD(range),},
44 {0,0,0,},};
45#undef FIELDSTRUCT
46
47#define FIELDSTRUCT NI_Smell
48ParamEntry NI_Smell_tab []={
49{"Smell",1, 0 ,"S",},
50 {0,0,0,},};
51#undef FIELDSTRUCT
52
53#define FIELDSTRUCT NI_Const
54ParamEntry NI_Const_tab []={
55{"Constant",1, 0 ,"*",},
56 {0,0,0,},};
57#undef FIELDSTRUCT
58
59#define FIELDSTRUCT NI_BendMuscle
60ParamEntry NI_BendMuscle_tab []={
61{"Bend muscle",1, 2 ,"|",},
62{"p",0,0,"power","f 0.01 1.0 0.25",FIELD(power),},
63{"r",0,0,"bending range","f 0.0 1.0 1.0",FIELD(bendrange),},
64 {0,0,0,},};
65#undef FIELDSTRUCT
66
67#define FIELDSTRUCT NI_RotMuscle
68ParamEntry NI_RotMuscle_tab []={
69{"Rotation muscle",1, 1 ,"@",},
70{"p",0,0,"power","f 0.01 1.0 1.0",FIELD(power),},
71 {0,0,0,},};
72#undef FIELDSTRUCT
73
74#define FIELDSTRUCT NI_SolidMuscle
75ParamEntry NI_SolidMuscle_tab []={
76{"Muscle",1, 2 ,"M",},
77{"p",0,0,"power","f 0.01 1.0 1.0",FIELD(power),},
78{"a",0,0,"axis","d 0 1 0",FIELD(axis),},
79 {0,0,0,},};
80#undef FIELDSTRUCT
81
82#define FIELDSTRUCT NI_Diff
83ParamEntry NI_Diff_tab []={
84{"Differentiate",1, 0 ,"D",},
85 {0,0,0,},};
86#undef FIELDSTRUCT
87
88#define FIELDSTRUCT NI_FuzzyNeuro
89ParamEntry NI_FuzzyNeuro_tab []={
90{"Fuzzy system [EXPERIMENTAL!]",1, 4 ,"Fuzzy",},
91{"ns",0,0,"number of fuzzy sets","d 1  ",FIELD(fuzzySetsNr),},
92{"nr",0,0,"number of rules","d 1  ",FIELD(rulesNr),},
93{"fs",0,0,"fuzzy sets","s 0 -1 ",FIELD(fuzzySetString),},
94{"fr",0,0,"fuzzy rules","s 0 -1 ",FIELD(fuzzyRulesString),},
95 {0,0,0,},};
96#undef FIELDSTRUCT
97
98#define FIELDSTRUCT NI_Sticky
99ParamEntry NI_Sticky_tab []={
100{"Sticky [EXPERIMENTAL!]",1, 0 ,"Sti",},
101 {0,0,0,},};
102#undef FIELDSTRUCT
103
104#define FIELDSTRUCT NI_LinearMuscle
105ParamEntry NI_LinearMuscle_tab []={
106{"Linear muscle [EXPERIMENTAL!]",1, 1 ,"LMu",},
107{"p",0,0,"power","f 0.01 1.0 1.0",FIELD(power),},
108 {0,0,0,},};
109#undef FIELDSTRUCT
110
111#define FIELDSTRUCT NI_WaterDetect
112ParamEntry NI_WaterDetect_tab []={
113{"Water detector",1, 0 ,"Water",},
114 {0,0,0,},};
115#undef FIELDSTRUCT
116
117#define FIELDSTRUCT NI_Energy
118ParamEntry NI_Energy_tab []={
119{"Energy level",1, 0 ,"Energy",},
120 {0,0,0,},};
121#undef FIELDSTRUCT
122
123#define FIELDSTRUCT NI_Channelize
124ParamEntry NI_Channelize_tab []={
125{"Channelize",1, 0 ,"Ch",},
126 {0,0,0,},};
127#undef FIELDSTRUCT
128
129#define FIELDSTRUCT NI_ChMux
130ParamEntry NI_ChMux_tab []={
131{"Channel multiplexer",1, 0 ,"ChMux",},
132 {0,0,0,},};
133#undef FIELDSTRUCT
134
135#define FIELDSTRUCT NI_ChSel
136ParamEntry NI_ChSel_tab []={
137{"Channel selector",1, 1 ,"ChSel",},
138{"ch",0,0,"channel","d   ",FIELD(ch),},
139 {0,0,0,},};
140#undef FIELDSTRUCT
141
142#define FIELDSTRUCT NI_Random
143ParamEntry NI_Random_tab []={
144{"Random noise",1, 0 ,"Rnd",},
145 {0,0,0,},};
146#undef FIELDSTRUCT
147
148#define FIELDSTRUCT NI_Sinus
149ParamEntry NI_Sinus_tab []={
150{"Sinus generator",1, 2 ,"Sin",},
151{"f0",0,0,"base frequency","f -1.0 1.0 0.06283185307",FIELD(f0),},
152{"t",0,0,"time","f 0 6.283185307 0",FIELD(t),},
153 {0,0,0,},};
154#undef FIELDSTRUCT
155
156#define SETIMPLEMENTATION \
157setImplementation("N",new NI_StdNeuron); \
158setImplementation("Nu",new NI_StdUNeuron); \
159setImplementation("G",new NI_Gyro); \
160setImplementation("T",new NI_Touch); \
161setImplementation("S",new NI_Smell); \
162setImplementation("*",new NI_Const); \
163setImplementation("|",new NI_BendMuscle); \
164setImplementation("@",new NI_RotMuscle); \
165setImplementation("M",new NI_SolidMuscle); \
166setImplementation("D",new NI_Diff); \
167setImplementation("Fuzzy",new NI_FuzzyNeuro); \
168setImplementation("Sti",new NI_Sticky); \
169setImplementation("LMu",new NI_LinearMuscle); \
170setImplementation("Water",new NI_WaterDetect); \
171setImplementation("Energy",new NI_Energy); \
172setImplementation("Ch",new NI_Channelize); \
173setImplementation("ChMux",new NI_ChMux); \
174setImplementation("ChSel",new NI_ChSel); \
175setImplementation("Rnd",new NI_Random); \
176setImplementation("Sin",new NI_Sinus); \
177
Note: See TracBrowser for help on using the repository browser.