- Timestamp:
- 07/06/20 23:36:46 (4 years ago)
- Location:
- cpp/frams
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/config/f0-SDK.def
r975 r976 147 147 ENDNEUROCLASS 148 148 149 NEUROCLASS(GyroP,Gp ,Part Gyroscope,`Tilt sensor. Signal is directly proportional to the tilt angle.\n0=the part X axis is horizontal\n+1/-1=the axis is vertical',0,1,1)149 NEUROCLASS(GyroP,Gpart,Part Gyroscope,`Tilt sensor. Signal is directly proportional to the tilt angle.\n0=the part X axis is horizontal\n+1/-1=the axis is vertical',0,1,1) 150 150 VISUALHINTS(ReceptorClass) 151 151 SYMBOL(`8,7,100,50,90,50,90,40,70,40,80,50,70,60,90,60,90,50,12,43,24,48,24,48,19,38,19,38,24,43,24,43,54,48,54,48,64,43,69,38,64,38,54,43,54,5,63,69,58,74,48,79,38,79,28,74,23,69,1,43,79,43,74,1,23,69,26,66,1,63,69,60,66,1,55,76,53,73,1,31,75,33,72') … … 162 162 ENDNEUROCLASS 163 163 164 NEUROCLASS(TouchC,Tc ,Touch contact,`Touch sensor.\n-1=no contact\n0=the Part is touching the obstacle\n>0=pressing, value depends on the force applied (not implemented in ODE mode)',0,1,1)164 NEUROCLASS(TouchC,Tcontact,Touch contact,`Touch sensor.\n-1=no contact\n0=the Part is touching the obstacle\n>0=pressing, value depends on the force applied (not implemented in ODE mode)',0,1,1) 165 165 VISUALHINTS(ReceptorClass) 166 166 SYMBOL(`2,7,100,50,90,50,90,40,70,40,80,50,70,60,90,60,90,50,11,75,50,65,50,60,55,55,45,50,55,45,45,40,50,35,50,30,45,25,50,30,55,35,50') 167 167 ENDNEUROCLASS 168 168 169 NEUROCLASS(TouchP,Tp ,Touch proximity,`Proximity sensor detecting obstacles along the X axis.\n-1=distance is \'r\' or more\n0=zero distance',0,1,1)169 NEUROCLASS(TouchP,Tproximity,Touch proximity,`Proximity sensor detecting obstacles along the X axis.\n-1=distance is \'r\' or more\n0=zero distance',0,1,1) 170 170 VISUALHINTS(ReceptorClass) 171 171 SYMBOL(`2,7,100,50,90,50,90,40,70,40,80,50,70,60,90,60,90,50,11,75,50,65,50,60,55,55,45,50,55,45,45,40,50,35,50,30,45,25,50,30,55,35,50') -
cpp/frams/config/f0.def
r975 r976 147 147 ENDNEUROCLASS 148 148 149 NEUROCLASS(GyroP,Gp ,Part Gyroscope,`Tilt sensor. Signal is directly proportional to the tilt angle.\n0=the part X axis is horizontal\n+1/-1=the axis is vertical',0,1,1)149 NEUROCLASS(GyroP,Gpart,Part Gyroscope,`Tilt sensor. Signal is directly proportional to the tilt angle.\n0=the part X axis is horizontal\n+1/-1=the axis is vertical',0,1,1) 150 150 VISUALHINTS(ReceptorClass) 151 151 SYMBOL(`8,7,100,50,90,50,90,40,70,40,80,50,70,60,90,60,90,50,12,43,24,48,24,48,19,38,19,38,24,43,24,43,54,48,54,48,64,43,69,38,64,38,54,43,54,5,63,69,58,74,48,79,38,79,28,74,23,69,1,43,79,43,74,1,23,69,26,66,1,63,69,60,66,1,55,76,53,73,1,31,75,33,72') … … 162 162 ENDNEUROCLASS 163 163 164 NEUROCLASS(TouchC,Tc ,Touch contact,`Touch sensor.\n-1=no contact\n0=the Part is touching the obstacle\n>0=pressing, value depends on the force applied (not implemented in ODE mode)',0,1,1)164 NEUROCLASS(TouchC,Tcontact,Touch contact,`Touch sensor.\n-1=no contact\n0=the Part is touching the obstacle\n>0=pressing, value depends on the force applied (not implemented in ODE mode)',0,1,1) 165 165 VISUALHINTS(ReceptorClass) 166 166 SYMBOL(`2,7,100,50,90,50,90,40,70,40,80,50,70,60,90,60,90,50,11,75,50,65,50,60,55,55,45,50,55,45,45,40,50,35,50,30,45,25,50,30,55,35,50') 167 167 ENDNEUROCLASS 168 168 169 NEUROCLASS(TouchP,Tp ,Touch proximity,`Proximity sensor detecting obstacles along the X axis.\n-1=distance is \'r\' or more\n0=zero distance',0,1,1)169 NEUROCLASS(TouchP,Tproximity,Touch proximity,`Proximity sensor detecting obstacles along the X axis.\n-1=distance is \'r\' or more\n0=zero distance',0,1,1) 170 170 VISUALHINTS(ReceptorClass) 171 171 SYMBOL(`2,7,100,50,90,50,90,40,70,40,80,50,70,60,90,60,90,50,11,75,50,65,50,60,55,55,45,50,55,45,45,40,50,35,50,30,45,25,50,30,55,35,50') -
cpp/frams/genetics/preconfigured.h
r952 r976 28 28 if (Geno::useValidators(&validators) != NULL) 29 29 logPrintf("PreconfiguredGenetics", "init", LOG_WARN, "Geno validators already configured"); 30 static const char* genactive_classes[] = { "N", "G", "Gp ", "T", "S", "*", "|", "@", "M", NULL };30 static const char* genactive_classes[] = { "N", "G", "Gpart", "T", "S", "*", "|", "@", "M", NULL }; 31 31 NeuroClass::resetActive(); 32 32 NeuroClass::setGenActive(genactive_classes); -
cpp/frams/neuro/neurocls-f0-SDK-factory.h
r952 r976 41 41 #define FIELDSTRUCT NI_GyroP 42 42 ParamEntry NI_GyroP_tab []={ 43 {"Part Gyroscope",1, 2 ,"Gp ",},43 {"Part Gyroscope",1, 2 ,"Gpart",}, 44 44 {"ry",1,0,"rotation.y","f -6.282 6.282 0",FIELD(ry),}, 45 45 {"rz",1,0,"rotation.z","f -6.282 6.282 0",FIELD(rz),}, … … 58 58 #define FIELDSTRUCT NI_TouchC 59 59 ParamEntry NI_TouchC_tab []={ 60 {"Touch contact",1, 0 ,"Tc ",},60 {"Touch contact",1, 0 ,"Tcontact",}, 61 61 {0,0,0,},}; 62 62 #undef FIELDSTRUCT … … 64 64 #define FIELDSTRUCT NI_TouchP 65 65 ParamEntry NI_TouchP_tab []={ 66 {"Touch proximity",1, 3 ,"Tp ",},66 {"Touch proximity",1, 3 ,"Tproximity",}, 67 67 {"r",1,0,"Range","f 0.0 1.0 1.0",FIELD(range),}, 68 68 {"ry",1,0,"rotation.y","f -6.282 6.282 0",FIELD(ry),}, … … 184 184 setImplementation("Nu",new NI_StdUNeuron); \ 185 185 setImplementation("G",new NI_Gyro); \ 186 setImplementation("Gp ",new NI_GyroP); \186 setImplementation("Gpart",new NI_GyroP); \ 187 187 setImplementation("T",new NI_Touch); \ 188 setImplementation("Tc ",new NI_TouchC); \189 setImplementation("Tp ",new NI_TouchP); \188 setImplementation("Tcontact",new NI_TouchC); \ 189 setImplementation("Tproximity",new NI_TouchP); \ 190 190 setImplementation("S",new NI_Smell); \ 191 191 setImplementation("*",new NI_Const); \ -
cpp/frams/neuro/neurocls-f0-SDK-library.h
r975 r976 48 48 static int GyroP_xy[]={83,8,7,100,50,90,50,90,40,70,40,80,50,70,60,90,60,90,50,12,43,24,48,24,48,19,38,19,38,24,43,24,43,54,48,54,48,64,43,69,38,64,38,54,43,54,5,63,69,58,74,48,79,38,79,28,74,23,69,1,43,79,43,74,1,23,69,26,66,1,63,69,60,66,1,55,76,53,73,1,31,75,33,72}; 49 49 static ParamEntry NI_GyroP_tab[]={ 50 {"Part Gyroscope",1, 2 ,"Gp ",},50 {"Part Gyroscope",1, 2 ,"Gpart",}, 51 51 52 52 … … 71 71 static int TouchC_xy[]={43,2,7,100,50,90,50,90,40,70,40,80,50,70,60,90,60,90,50,11,75,50,65,50,60,55,55,45,50,55,45,45,40,50,35,50,30,45,25,50,30,55,35,50}; 72 72 static ParamEntry NI_TouchC_tab[]={ 73 {"Touch contact",1, 0 ,"Tc ",},73 {"Touch contact",1, 0 ,"Tcontact",}, 74 74 75 75 … … 80 80 static int TouchP_xy[]={43,2,7,100,50,90,50,90,40,70,40,80,50,70,60,90,60,90,50,11,75,50,65,50,60,55,55,45,50,55,45,45,40,50,35,50,30,45,25,50,30,55,35,50}; 81 81 static ParamEntry NI_TouchP_tab[]={ 82 {"Touch proximity",1, 3 ,"Tp ",},82 {"Touch proximity",1, 3 ,"Tproximity",}, 83 83 84 84
Note: See TracChangeset
for help on using the changeset viewer.