From 4bf4680115d8af13f7af81777c07769030809b0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joan=20Sol=C3=A0?= <jsola@iri.upc.edu> Date: Tue, 5 Dec 2017 23:10:08 +0100 Subject: [PATCH] Fix render of Captures without Sensor --- src/problem.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/problem.cpp b/src/problem.cpp index bd22dcaf6..8f1a4f366 100644 --- a/src/problem.cpp +++ b/src/problem.cpp @@ -752,15 +752,15 @@ void Problem::print(int depth, bool constr_by, bool metric, bool state_blocks) for (auto C : F->getCaptureList()) { cout << " C" << (C->isMotion() ? "M" : "") << C->id() << " " << C->getType(); - if (C->getSensorPtr()) cout << " -> S" << C->getSensorPtr()->id(); - else cout << " -> S-"; - cout << " ["; - if(C->getSensorPtr() != nullptr) - cout << (C->getSensorPtr()->isExtrinsicDynamic() ? "Dyn, ": "Sta, "); - if(C->getSensorPtr() != nullptr) + { + cout << " -> S" << C->getSensorPtr()->id(); + cout << (C->getSensorPtr()->isExtrinsicDynamic() ? " [Dyn, ": " [Sta, "); cout << (C->getSensorPtr()->isIntrinsicDynamic() ? "Dyn]" : "Sta]"); + } + else + cout << " -> S-"; cout << ((depth < 3) ? " -- " + std::to_string(C->getFeatureList().size()) + "f" : ""); if (constr_by) -- GitLab