diff --git a/demos/processor_imu.yaml b/demos/processor_imu.yaml index 055909d989bef1f391a19a7f4bf28d22a838376e..405d69fca8af9b36462b8f9ec35ebb2a5b09c10a 100644 --- a/demos/processor_imu.yaml +++ b/demos/processor_imu.yaml @@ -1,4 +1,5 @@ -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 time tolerance: 0.0025 # Time tolerance for joining KFs keyframe vote: diff --git a/demos/processor_imu_no_vote.yaml b/demos/processor_imu_no_vote.yaml index 4804c9d5b65b54c28766add0715216bf9df5b6c0..e01ed1cc4e6322ea606c5c98ddd2440cf7f5178d 100644 --- a/demos/processor_imu_no_vote.yaml +++ b/demos/processor_imu_no_vote.yaml @@ -1,4 +1,5 @@ -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 unmeasured perturbation std: 0.00001 keyframe vote: diff --git a/demos/sensor_imu.yaml b/demos/sensor_imu.yaml index 35386a9f80603973aa75fa4f8f9bd0350f4be15f..2716803c363406d38673d3cba2a2b62b181784c8 100644 --- a/demos/sensor_imu.yaml +++ b/demos/sensor_imu.yaml @@ -1,4 +1,5 @@ -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: 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 diff --git a/src/yaml/processor_IMU_yaml.cpp b/src/yaml/processor_IMU_yaml.cpp index 58c9d3b3b0a007d8c7e20e9db527c03d05c4f00e..b6f3137eafff8d0d1cacbc3ac361cc9d1ad8a27d 100644 --- a/src/yaml/processor_IMU_yaml.cpp +++ b/src/yaml/processor_IMU_yaml.cpp @@ -24,7 +24,7 @@ static ProcessorParamsBasePtr createProcessorIMUParams(const std::string & _file { 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"]; diff --git a/src/yaml/sensor_IMU_yaml.cpp b/src/yaml/sensor_IMU_yaml.cpp index 358c592821ebb3b240e3404386a7468eb34d8657..0d6d4c5d49ffa98f7db71aac0a174826a07264c1 100644 --- a/src/yaml/sensor_IMU_yaml.cpp +++ b/src/yaml/sensor_IMU_yaml.cpp @@ -25,7 +25,7 @@ static IntrinsicsBasePtr createIntrinsicsIMU(const std::string & _filename_dot_y { 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 kf_vote = config["keyframe vote"];