[Positioning] Add option generated-meshing-grain

The option positioning.generated-meshing-grain allows to set the
grain of the generated reference points' meshing.
This commit is contained in:
Matteo Cypriani 2011-07-23 18:08:54 +02:00
parent 4c53ed372a
commit 9b245ce152
3 changed files with 10 additions and 1 deletions

View File

@ -67,6 +67,10 @@ csv-file = /tmp/owlps-positioning.log
# received.
#generate-reference-points = false
# When the above option is activated, the reference points are generated
# with the specified distance (in meters) between one another.
#generated-meshing-grain = 0.5
# This option allows the calibration requests sent during the
# positioning phase to be added to the calibration request's list. They
# are added to the calibration requests read by InputDataReader during

View File

@ -437,7 +437,8 @@ void Stock::regenerate_reference_points()
Configuration::string_value("positioning.minmax-start")) ;
Point3D stop(
Configuration::string_value("positioning.minmax-stop")) ;
float step = 0.5 ; // FIXME
float step =
Configuration::float_value("positioning.generated-meshing-grain") ;
float z = 1 ; // FIXME
for (float x = start.get_x() ; x <= stop.get_x() ; x += step)
for (float y = start.get_y() ; y <= stop.get_y() ; y += step)

View File

@ -197,6 +197,10 @@ void UserInterface::fill_positioning_options()
po::value<bool>()->default_value(false),
"Generate reference points from the (auto)calibration requests"
" received.")
("positioning.generated-meshing-grain",
po::value<float>()->default_value(0.5),
"When generating reference points, this distance (in meters) will"
" separate each point to the next.")
("positioning.accept-new-calibration-requests",
po::value<bool>()->default_value(false),
"Add the calibration requests received during the run-time to"