Skip to content
Snippets Groups Projects
Commit c84371df authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

add a warning if more keys provided in sensorBase

parent 85164117
No related branches found
No related tags found
1 merge request!448Draft: Resolve "Implementation of new nodes creation"
Pipeline #15132 passed
......@@ -45,6 +45,13 @@ SensorBase::SensorBase(const std::string& _type,
{
setName(_params->name);
// WARN if more keys are provided than the StatesKeys:
WOLF_WARN_COND(_priors.getKeys().size() > _params->getStatesKeys().size(),
"SensorBase: provided 'prior' with more keys than required. Provided: ",
_priors.getKeys(),
", only required: ",
_params->getStatesKeys());
// Drift covariance rates
WOLF_INFO("SensorBase state keys: ", _params->getStatesKeys());
for (auto state_pair : getStateBlockMap())
......
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