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

sensor prints capture state blocks if dynamic

parent 35adc354
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
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