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.
master
Michael Grupp 2018-09-19 11:37:56 +02:00 committed by gaschler
parent 578b5df9ce
commit 4a2b19a86e
1 changed files with 1 additions and 0 deletions

View File

@ -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()));
}