From 4a2b19a86ebb6fb5cf479cb53ebca97deefda737 Mon Sep 17 00:00:00 2001 From: Michael Grupp Date: Wed, 19 Sep 2018 11:37:56 +0200 Subject: [PATCH] Fix submap pose marker toggling. (#1019) Set the visibility in he constructor, otherwise the setting won't have an effect on newly created submap slices unless it's toggled again. Somehow this got lost in #1012, sorry for that. --- cartographer_rviz/cartographer_rviz/drawable_submap.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/cartographer_rviz/cartographer_rviz/drawable_submap.cc b/cartographer_rviz/cartographer_rviz/drawable_submap.cc index c984b2e..2432ac2 100644 --- a/cartographer_rviz/cartographer_rviz/drawable_submap.cc +++ b/cartographer_rviz/cartographer_rviz/drawable_submap.cc @@ -81,6 +81,7 @@ DrawableSubmap::DrawableSubmap(const ::cartographer::mapping::SubmapId& id, ::rviz::MovableText::V_ABOVE); submap_id_text_node_->setPosition(ToOgre(kSubmapIdPosition)); submap_id_text_node_->attachObject(&submap_id_text_); + TogglePoseMarkerVisibility(); connect(this, SIGNAL(RequestSucceeded()), this, SLOT(UpdateSceneNode())); }