[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:
parent
4c53ed372a
commit
9b245ce152
|
@ -67,6 +67,10 @@ csv-file = /tmp/owlps-positioning.log
|
||||||
# received.
|
# received.
|
||||||
#generate-reference-points = false
|
#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
|
# This option allows the calibration requests sent during the
|
||||||
# positioning phase to be added to the calibration request's list. They
|
# positioning phase to be added to the calibration request's list. They
|
||||||
# are added to the calibration requests read by InputDataReader during
|
# are added to the calibration requests read by InputDataReader during
|
||||||
|
|
|
@ -437,7 +437,8 @@ void Stock::regenerate_reference_points()
|
||||||
Configuration::string_value("positioning.minmax-start")) ;
|
Configuration::string_value("positioning.minmax-start")) ;
|
||||||
Point3D stop(
|
Point3D stop(
|
||||||
Configuration::string_value("positioning.minmax-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
|
float z = 1 ; // FIXME
|
||||||
for (float x = start.get_x() ; x <= stop.get_x() ; x += step)
|
for (float x = start.get_x() ; x <= stop.get_x() ; x += step)
|
||||||
for (float y = start.get_y() ; y <= stop.get_y() ; y += step)
|
for (float y = start.get_y() ; y <= stop.get_y() ; y += step)
|
||||||
|
|
|
@ -197,6 +197,10 @@ void UserInterface::fill_positioning_options()
|
||||||
po::value<bool>()->default_value(false),
|
po::value<bool>()->default_value(false),
|
||||||
"Generate reference points from the (auto)calibration requests"
|
"Generate reference points from the (auto)calibration requests"
|
||||||
" received.")
|
" 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",
|
("positioning.accept-new-calibration-requests",
|
||||||
po::value<bool>()->default_value(false),
|
po::value<bool>()->default_value(false),
|
||||||
"Add the calibration requests received during the run-time to"
|
"Add the calibration requests received during the run-time to"
|
||||||
|
|
Loading…
Reference in New Issue