summaryrefslogtreecommitdiff
path: root/2005/i/robert/src/ovision/see/oconfig.cc
diff options
context:
space:
mode:
authorgaillaro2005-04-23 18:58:44 +0000
committergaillaro2005-04-23 18:58:44 +0000
commitfb075a07e3347a357e18b7df3795909b0d6f4918 (patch)
treecfb7093961ecece093cc9644b5f031a1d904a395 /2005/i/robert/src/ovision/see/oconfig.cc
parentf10b66edc5bd8af45d1013e56679cbf3efb930a3 (diff)
* ajout détection des groupes de quilles
* essai de detection des vis * detection verticalité
Diffstat (limited to '2005/i/robert/src/ovision/see/oconfig.cc')
-rw-r--r--2005/i/robert/src/ovision/see/oconfig.cc52
1 files changed, 27 insertions, 25 deletions
diff --git a/2005/i/robert/src/ovision/see/oconfig.cc b/2005/i/robert/src/ovision/see/oconfig.cc
index 41337a8..60f38e1 100644
--- a/2005/i/robert/src/ovision/see/oconfig.cc
+++ b/2005/i/robert/src/ovision/see/oconfig.cc
@@ -48,33 +48,35 @@ OConfig::parse (const char *var, const char *arg)
return;
}
// Affecte la valeur de arg a la variable varName
- if (varName == "NN_step_learning") nnSl = atof(arg);
- else if (varName == "NN_neighborhood_learning") nnNl = atof(arg);
+ if (varName == "NN_step_learning") nnSl = atof (arg);
+ else if (varName == "NN_neighborhood_learning") nnNl = atof (arg);
else if (varName == "NN_number_of_iteration_learning") nnNil = atol(arg);
- else if (varName == "NN_threshold_output") nnThresholdOutput = atoi(arg);
- else if (varName == "NN_lum_inosity_influence") nnInfluLum = atof(arg);
+ else if (varName == "NN_threshold_output") nnThresholdOutput = atoi (arg);
+ else if (varName == "NN_lum_inosity_influence") nnInfluLum = atof (arg);
else if (varName == "UI_img_path ") strcpy(imgPath, arg);
- else if (varName == "NN_lazy_threshold") nnLazyThreshold = atoi(arg);
-// else if (varName == "Map_error") mapError = atoi(arg);
-// else if (varName == "Map_error_part") mapErrorPart = atoi(arg);
-// else if (varName == "Map_angle_ball_weight") angleBallWeight= atoi(arg);
-// else if (varName == "Map_distance_ball_robot_weight") distanceBallRobotWeight = atoi(arg);
-// else if (varName == "Map_distance_ball_goal_weight") distanceBallGoalWeight = atoi(arg);
-// else if (varName == "Map_ball_density_weight") ballDensityWeight = atoi(arg);
-// else if (varName == "Map_ennemy_presence_weight") ennemyPresenceWeight = atoi(arg);
-// else if (varName == "Map_ball_precision_weight") ballPrecisionWeight = atoi(arg);
-// else if (varName == "Map_skepticism_weight") skepticismWeight = atoi(arg);
-// else if (varName == "Map_skepticism_max") skepticismMax = atoi(arg);
-// else if (varName == "Map_ball_lost_weight") ballLostWeight = atoi(arg);
-// else if (varName == "Map_ball_bottom_time_out") ballBottomTimeOut = atoi(arg);
- else if (varName == "Group_minimum_length_zone") minLengthZone = atoi(arg);
- else if (varName == "Group_jump_point_distance") jumpPointDist = atoi(arg);
- else if (varName == "UI_group_to_display") uiGroupToDisplay = atoi(arg);
- else if (varName == "Skittle_border") skittleBorder = atoi(arg);
- else if (varName == "Skittle_grow") skittleGrow = atoi(arg);
- else if (varName == "Skittle_div_jump") skittleDivJump = atoi(arg);
- else if (varName == "Skittle_vertical_ratio") skittleVerticalRatio = atof(arg);
- else if (varName == "Skittle_score_bend_ratio") skittleScoreBendRatio = atof(arg);
+ else if (varName == "NN_lazy_threshold") nnLazyThreshold = atoi (arg);
+// else if (varName == "Map_error") mapError = atoi (arg);
+// else if (varName == "Map_error_part") mapErrorPart = atoi (arg);
+// else if (varName == "Map_angle_ball_weight") angleBallWeight= atoi (arg);
+// else if (varName == "Map_distance_ball_robot_weight") distanceBallRobotWeight = atoi (arg);
+// else if (varName == "Map_distance_ball_goal_weight") distanceBallGoalWeight = atoi (arg);
+// else if (varName == "Map_ball_density_weight") ballDensityWeight = atoi (arg);
+// else if (varName == "Map_ennemy_presence_weight") ennemyPresenceWeight = atoi (arg);
+// else if (varName == "Map_ball_precision_weight") ballPrecisionWeight = atoi (arg);
+// else if (varName == "Map_skepticism_weight") skepticismWeight = atoi (arg);
+// else if (varName == "Map_skepticism_max") skepticismMax = atoi (arg);
+// else if (varName == "Map_ball_lost_weight") ballLostWeight = atoi (arg);
+// else if (varName == "Map_ball_bottom_time_out") ballBottomTimeOut = atoi (arg);
+ else if (varName == "Group_minimum_length_zone") minLengthZone = atoi (arg);
+ else if (varName == "Group_jump_point_distance") jumpPointDist = atoi (arg);
+ else if (varName == "UI_group_to_display") uiGroupToDisplay = atoi (arg);
+ else if (varName == "Skittle_border") skittleBorder = atoi (arg);
+ else if (varName == "Skittle_grow") skittleGrow = atoi (arg);
+ else if (varName == "Skittle_div_jump") skittleDivJump = atoi (arg);
+ else if (varName == "Skittle_vertical_ratio") skittleVerticalRatio = atof (arg);
+ else if (varName == "Skittle_score_bend_ratio") skittleScoreBendRatio = atof (arg);
+ else if (varName == "Mag_uniqueness") magUniqueness = atoi (arg);
+ else if (varName == "Cam_brightness") brightness = atoi (arg);
}