Skip to content
Snippets Groups Projects

Draft: Resolve "Implementation of new nodes creation"

Open Joan Vallvé Navarro requested to merge 454-implementation-of-new-nodes-creation into devel
1 file
+ 0
5
Compare changes
  • Side-by-side
  • Inline
@@ -169,11 +169,6 @@ void SensorBase::loadPriors(const Priors& _priors,
toString(prior.getState()) +
" and should be of size: " + toString(state_spec.size) +
"\nDoc:\n" + state_spec.doc);
// additional size checks for P, O, V
if ((key == 'P' or key == 'V') and prior.getState().size() != _dim)
throw std::runtime_error("Prior state for P or V has wrong size: " + toString(prior.getState().size()) + " in " + (_dim == 2 ? "2D" : "3D"));
if (key == '0' and prior.getState().size() != (_dim == 2 ? 1 : 4))
throw std::runtime_error("Prior state for O has wrong size: " + toString(prior.getState().size()) + " in " + (_dim == 2 ? "2D" : "3D"));
// --- CREATE STATE BLOCK ---
auto sb = FactoryStateBlock::create(prior.getType(), prior.getState(), prior.isFixed());
Loading