Changeset 1261 for cpp/frams


Ignore:
Timestamp:
06/22/23 17:25:06 (18 months ago)
Author:
Maciej Komosinski
Message:

Disabled mutating joint stiffness in fH and fB

Location:
cpp/frams/genetics/fH
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/genetics/fH/fH_general.cpp

    r1257 r1261  
    1818const char *fH_part_names[FH_PART_PROPS_COUNT] = { "fr" }; // , "dn", "ing", "as" };
    1919
    20 const char *fH_joint_names[FH_JOINT_PROPS_COUNT] = { "stif", "rotstif" }; //, "stam" };
     20const char *fH_joint_names[FH_JOINT_PROPS_COUNT] = { "rotstif" }; //"stif", "stam" }; //actually we would want to disable "rotstif" too (we assume the default value is the best, lower values are good to test technical abilities of phenotypes, but in most cases not useful for evolution - the structures and muscles get weaker and even more elastic), but having no joint properties was never tested, so better leave at least one
    2121
    2222void fH_Handle::loadProperties(Param par)
     
    397397        model->addJoint(newjoint);
    398398
    399         newjoint->stif = par.getDoubleById("stif");
    400399        newjoint->rotstif = par.getDoubleById("rotstif");
     400        //newjoint->stif = par.getDoubleById("stif");
    401401        //newjoint->stamina = par.getDoubleById("stam");
    402402        newjoint->attachToParts(firstpart, secondpart);
  • cpp/frams/genetics/fH/fH_general.h

    r1257 r1261  
    1919#define STICKH_LENGTH_TYPE "f 0.001 1.999 1.0" ///<Length of stick handle. Minimum should not be equal to 0, because calculating direction of next part from current stick with length 0 would be impossible
    2020#define FH_PART_PROPS_COUNT   1 ///<Count of part properties
    21 #define FH_JOINT_PROPS_COUNT  2 ///<Count of joint properties
     21#define FH_JOINT_PROPS_COUNT  1 ///<Count of joint properties
    2222#define FH_PE_NEURO_DET       "d" ///<Id of details type definition in f0_neuro_paramtab
    2323#define FH_PE_CONN_WEIGHT     "w" ///<Id of weight type definition in f0_neuroconn_paramtab
Note: See TracChangeset for help on using the changeset viewer.