Skip to content
Snippets Groups Projects
Commit 3dfafb0a authored by Joan Solà Ortega's avatar Joan Solà Ortega
Browse files

simplify "sen type" / "prc type" --> "type" in YAML files

parent 7cf40563
No related branches found
No related tags found
3 merge requests!39release after RAL,!38After 2nd RAL submission,!9Remove sensor from processor creators
processor type: "IMU" # This must match the KEY used in the SensorFactory. Otherwise it is an error. type: "IMU" # This must match the KEY used in the SensorFactory. Otherwise it is an error.
unmeasured perturbation std: 0.00001 unmeasured perturbation std: 0.00001
time tolerance: 0.0025 # Time tolerance for joining KFs time tolerance: 0.0025 # Time tolerance for joining KFs
keyframe vote: keyframe vote:
......
processor type: "IMU" # This must match the KEY used in the SensorFactory. Otherwise it is an error. type: "IMU" # This must match the KEY used in the SensorFactory. Otherwise it is an error.
time tolerance: 0.0025 # Time tolerance for joining KFs time tolerance: 0.0025 # Time tolerance for joining KFs
unmeasured perturbation std: 0.00001 unmeasured perturbation std: 0.00001
keyframe vote: keyframe vote:
......
sensor type: "IMU" # This must match the KEY used in the SensorFactory. Otherwise it is an error. type: "IMU" # This must match the KEY used in the SensorFactory. Otherwise it is an error.
motion variances: motion variances:
a_noise: 0.053 # standard deviation of Acceleration noise (same for all the axis) in m/s2 a_noise: 0.053 # standard deviation of Acceleration noise (same for all the axis) in m/s2
w_noise: 0.0011 # standard deviation of Gyroscope noise (same for all the axis) in rad/sec w_noise: 0.0011 # standard deviation of Gyroscope noise (same for all the axis) in rad/sec
......
...@@ -24,7 +24,7 @@ static ProcessorParamsBasePtr createProcessorIMUParams(const std::string & _file ...@@ -24,7 +24,7 @@ static ProcessorParamsBasePtr createProcessorIMUParams(const std::string & _file
{ {
YAML::Node config = YAML::LoadFile(_filename_dot_yaml); YAML::Node config = YAML::LoadFile(_filename_dot_yaml);
if (config["processor type"].as<std::string>() == "IMU") if (config["type"].as<std::string>() == "IMU")
{ {
YAML::Node kf_vote = config["keyframe vote"]; YAML::Node kf_vote = config["keyframe vote"];
......
...@@ -25,7 +25,7 @@ static IntrinsicsBasePtr createIntrinsicsIMU(const std::string & _filename_dot_y ...@@ -25,7 +25,7 @@ static IntrinsicsBasePtr createIntrinsicsIMU(const std::string & _filename_dot_y
{ {
YAML::Node config = YAML::LoadFile(_filename_dot_yaml); YAML::Node config = YAML::LoadFile(_filename_dot_yaml);
if (config["sensor type"].as<std::string>() == "IMU") if (config["type"].as<std::string>() == "IMU")
{ {
YAML::Node variances = config["motion variances"]; YAML::Node variances = config["motion variances"];
YAML::Node kf_vote = config["keyframe vote"]; YAML::Node kf_vote = config["keyframe vote"];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment