From e14c309d0fd2753e5de9f68b22c08ef48222585d Mon Sep 17 00:00:00 2001
From: joanvallve <jvallve@iri.upc.edu>
Date: Sun, 14 Jun 2020 11:19:23 +0200
Subject: [PATCH] sensor prints capture state blocks if dynamic

---
 src/sensor/sensor_base.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/sensor/sensor_base.cpp b/src/sensor/sensor_base.cpp
index f8c3c76c7..7d15881a6 100644
--- a/src/sensor/sensor_base.cpp
+++ b/src/sensor/sensor_base.cpp
@@ -480,7 +480,7 @@ void SensorBase::printHeader(int _depth, bool _constr_by, bool _metric, bool _st
         for (auto& _key : getStructure())
         {
             auto key = std::string(1,_key);
-            auto sb = getStateBlock(key);
+            auto sb = getStateBlockDynamic(key);
             _stream << key << "[" << (isStateBlockDynamic(key) ? "Dyn" : "Sta") << "," << (sb->isFixed() ? "Fix" : "Est") << "] = ( " << sb->getState().transpose() << " ); ";
         }
         _stream << std::endl;
@@ -491,7 +491,7 @@ void SensorBase::printHeader(int _depth, bool _constr_by, bool _metric, bool _st
         for (auto& _key : getStructure())
         {
             auto key = std::string(1,_key);
-            auto sb = getStateBlock(key);
+            auto sb = getStateBlockDynamic(key);
             _stream << sb->getState().transpose() << " ";
         }
         _stream << ")" << std::endl;
@@ -502,7 +502,7 @@ void SensorBase::printHeader(int _depth, bool _constr_by, bool _metric, bool _st
         for (auto& _key : getStructure())
         {
             auto key = std::string(1,_key);
-            auto sb = getStateBlock(key);
+            auto sb = getStateBlockDynamic(key);
             _stream << key << "[" << (isStateBlockDynamic(key) ? "Dyn" : "Sta") << "," << (sb->isFixed() ? "Fix" : "Est") << "]; ";
         }
         _stream << std::endl;
-- 
GitLab