Skip to content
Snippets Groups Projects
Commit 49d9d1f0 authored by Joan Solà Ortega's avatar Joan Solà Ortega
Browse files

Fis Capture and Feature print methods

parent effca50c
No related branches found
No related tags found
1 merge request!403Resolve "Merge Aux/KeyFrames into Estimated Frames"
Pipeline #6190 passed
......@@ -236,6 +236,8 @@ void CaptureBase::setProblem(ProblemPtr _problem)
void CaptureBase::printHeader(int _depth, bool _constr_by, bool _metric, bool _state_blocks, std::ostream& _stream, std::string _tabs) const
{
_stream << _tabs << "Cap" << id() << " " << getType();
if(getSensor() != nullptr)
{
_stream << " -> Sen" << getSensor()->id();
......@@ -260,7 +262,7 @@ void CaptureBase::printHeader(int _depth, bool _constr_by, bool _metric, bool _s
{
auto sb = getStateBlock(key);
if (sb)
_stream << _tabs << key << "[" << (sb->isFixed() ? "Fix" : "Est") << "] = ( " << sb->getState().transpose() << " ) @ " << sb << std::endl;
_stream << " " + _tabs << key << "[" << (sb->isFixed() ? "Fix" : "Est") << "] = ( " << sb->getState().transpose() << " ) @ " << sb << std::endl;
}
}
else if (_metric)
......
......@@ -194,7 +194,6 @@ void FeatureBase::printHeader(int _depth, bool _constr_by, bool _metric, bool _s
void FeatureBase::print(int _depth, bool _constr_by, bool _metric, bool _state_blocks, std::ostream& _stream, std::string _tabs) const
{
_stream << _tabs << "id: " << id() << std::endl;
printHeader(_depth, _constr_by, _metric, _state_blocks, _stream, _tabs);
if (_depth >= 4)
for (auto c : getFactorList())
......
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