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

[skip ci] debugging yaml problems

parent 2addf052
No related branches found
No related tags found
1 merge request!448Draft: Resolve "Implementation of new nodes creation"
Pipeline #12079 skipped
......@@ -29,7 +29,7 @@ namespace wolf
Priors::Priors(const YAML::Node& priors_node)
{
WOLF_INFO("Priors: \n", priors_node);
WOLF_INFO("Priors...");
if (not priors_node.IsMap())
{
throw std::runtime_error("Priors: constructor with a non-map yaml node");
......@@ -38,6 +38,7 @@ Priors::Priors(const YAML::Node& priors_node)
{
this->emplace(prior_pair.first.as<char>(), Prior(prior_pair.second));
}
WOLF_INFO("Exiting priors constructor");
}
Prior::Prior(const std::string& _type,
......@@ -53,6 +54,7 @@ Prior::Prior(const std::string& _type,
Prior::Prior(const YAML::Node& prior_node)
{
WOLF_INFO("Prior...\n", prior_node);
type_ = prior_node["type"].as<std::string>();
state_ = prior_node["state"].as<Eigen::VectorXd>();
mode_ = prior_node["mode"].as<std::string>();
......@@ -68,7 +70,9 @@ Prior::Prior(const YAML::Node& prior_node)
else
drift_std_ = Eigen::VectorXd(0);
WOLF_INFO("checking");
check();
WOLF_INFO("Exiting prior constructor");
}
void Prior::check() const
......
......@@ -441,6 +441,7 @@ TEST(SensorBase, factory)
// create sensor
auto S = FactorySensor::create("SensorDummyPoia3d", 3, server.getNode());
WOLF_INFO("created");
// noise
ASSERT_MATRIX_APPROX(S->computeNoiseCov(vector0),
......
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