Changeset 1017 for cpp/frams/genetics/fS/fS_general.h
- Timestamp:
- 07/20/20 16:37:38 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/genetics/fS/fS_general.h
r1006 r1017 54 54 #define RZ "rz" 55 55 //@} 56 /** @name Macros and values used in collision detection */ 57 //@{ 58 #define DISJOINT 0 59 #define COLLISION 1 60 #define ADJACENT 2 61 //@} 56 62 57 63 58 #define HINGE_X 'b' … … 87 82 const string ALL_JOINTS = "abc"; 88 83 const int JOINT_COUNT = JOINTS.length(); 89 const string MODIFIERS = "IFS T";84 const string MODIFIERS = "IFS"; 90 85 const char SIZE_MODIFIER = 's'; 91 const vector<string> PARAMS {INGESTION, FRICTION, ROT_X, ROT_Y, ROT_Z, RX, RY, RZ, SIZE, SIZE_X, SIZE_Y, SIZE_Z, 92 STIFFNESS}; 86 const vector<string> PARAMS {INGESTION, FRICTION, ROT_X, ROT_Y, ROT_Z, RX, RY, RZ, SIZE, SIZE_X, SIZE_Y, SIZE_Z}; 93 87 const vector<string> SIZE_PARAMS {SIZE, SIZE_X, SIZE_Y, SIZE_Z}; 94 88 … … 214 208 double ing = 1.0; /// Ingestion multiplier 215 209 double s = 1.0; /// Size multipliers 216 double stif = 1.0; /// Stiffness multipliers217 210 218 211 State(State *_state); /// Derive the state from parent … … 272 265 Part *part; /// A part object built from node. Used in building the Model 273 266 int partCodeLen; /// The length of substring that directly describes the corresponding part 274 std::map<string, double> defaultValues;275 267 GenotypeParams genotypeParams; 276 268 … … 335 327 * @param _state state of the parent 336 328 */ 337 void getState(State *_state );329 void getState(State *_state, bool calculateLocation); 338 330 339 331 /** … … 370 362 371 363 public: 364 static std::map<string, double> minValues; 365 static std::map<string, double> defaultValues; 366 static std::map<string, double> maxValues; 372 367 char joint = DEFAULT_JOINT; /// Set of all joints 373 368 Part::Shape partType; /// The type of the part … … 389 384 * @return The effective size 390 385 */ 391 Pt3D calculateSize();386 void calculateSize(Pt3D &scale); 392 387 393 388 /** … … 407 402 * @return the param value 408 403 */ 409 double getParam(string key); 404 double getParam(const string &key); 405 double getParam(const string &key, double defaultValue); 410 406 }; 411 407 … … 454 450 ~fS_Genotype(); 455 451 456 void getState( );452 void getState(bool calculateLocation); 457 453 458 454 /**
Note: See TracChangeset
for help on using the changeset viewer.