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
parent
578b5df9ce
commit
4a2b19a86e
|
@ -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()));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue