Ignore:
Timestamp:
06/20/20 01:09:57 (4 years ago)
Author:
Maciej Komosinski
Message:

Added new receptors (Gp:"gyroscope" on a Part, Tp:Touch-proximity and Tc:Touch-contact) and improved existing ones (T, G)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/config/f0-SDK.def

    r945 r952  
    1 CLASS(Model,f0_model,m)
     1CLASS(Model,f0_model,m,Model)
    22GROUP(Properties)
    33GROUP(Visual)
     
    66ENDCLASS
    77
    8 CLASS(Part,f0_part,p)
     8CLASS(Part,f0_part,p,Part)
    99GROUP(Geometry)
    1010GROUP(Other properties)
     
    3939ENDCLASS
    4040
    41 CLASS(Joint,f0_joint,j)
     41CLASS(Joint,f0_joint,j,Joint)
    4242GROUP(Connections)
    4343GROUP(Geometry)
     
    7373ENDCLASS
    7474
    75 CLASS(Joint,f0_nodeltajoint,j,NOXML)
     75CLASS(Joint,f0_nodeltajoint,j,Joint,NOXML)
    7676GROUP(Connections)
    7777GROUP(Geometry)
     
    101101ENDCLASS
    102102
    103 CLASS(Neuro,f0_neuro,n)
     103CLASS(Neuro,f0_neuro,n,Neuro)
    104104GROUP(Connections)
    105105GROUP(Other)
     
    117117ENDCLASS
    118118
    119 CLASS(NeuroConn,f0_neuroconn,c)
     119CLASS(NeuroConn,f0_neuroconn,c,Neuron connection)
    120120GROUP(Connection)
    121121GROUP(Other)
     
    141141ENDNEUROCLASS
    142142
    143 NEUROCLASS(Gyro,G,Gyroscope,`Equilibrium sensor.\n0=the stick is horizontal\n+1/-1=the stick is vertical',0,1,2)
     143NEUROCLASS(Gyro,G,Gyroscope,`Tilt sensor.\nSignal is proportional to sin(angle) = most sensitive in horizontal orientation.\n0=the stick is horizontal\n+1/-1=the stick is vertical',0,1,2)
     144SHAPETYPE(BallAndStickShapeType)
    144145VISUALHINTS(ReceptorClass)
    145146SYMBOL(`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')
    146147ENDNEUROCLASS
    147148
    148 NEUROCLASS(Touch,T,Touch,`Touch sensor.\n-1=no contact\n0=just touching\n>0=pressing, value depends on the force applied',0,1,1)
     149NEUROCLASS(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)
     150VISUALHINTS(ReceptorClass)
     151SYMBOL(`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')
     152NEUROPROP(ry,1,0,rotation.y,f,-6.282,6.282,0,ry)
     153NEUROPROP(rz,1,0,rotation.z,f,-6.282,6.282,0,rz)
     154ENDNEUROCLASS
     155
     156NEUROCLASS(Touch,T,Touch,`Touch and proximity sensor (Tc+Tp combined)\n-1=no contact\n0=just touching\n>0=pressing, value depends on the force applied (not implemented in ODE mode)',0,1,1)
    149157VISUALHINTS(ReceptorClass)
    150158SYMBOL(`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')
    151159NEUROPROP(r,1,0,Range,f,0.0,1.0,1.0,range)
     160NEUROPROP(ry,1,0,rotation.y,f,-6.282,6.282,0,ry)
     161NEUROPROP(rz,1,0,rotation.z,f,-6.282,6.282,0,rz)
     162ENDNEUROCLASS
     163
     164NEUROCLASS(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)
     165VISUALHINTS(ReceptorClass)
     166SYMBOL(`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')
     167ENDNEUROCLASS
     168
     169NEUROCLASS(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)
     170VISUALHINTS(ReceptorClass)
     171SYMBOL(`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')
     172NEUROPROP(r,1,0,Range,f,0.0,1.0,1.0,range)
     173NEUROPROP(ry,1,0,rotation.y,f,-6.282,6.282,0,ry)
     174NEUROPROP(rz,1,0,rotation.z,f,-6.282,6.282,0,rz)
    152175ENDNEUROCLASS
    153176
Note: See TracChangeset for help on using the changeset viewer.