Skip to content

Commit

Permalink
Fix submap pose marker toggling. (cartographer-project#1019)
Browse files Browse the repository at this point in the history
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 cartographer-project#1012, sorry for that.
  • Loading branch information
MichaelGrupp authored and gaschler committed Sep 19, 2018
1 parent 578b5df commit 4a2b19a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cartographer_rviz/cartographer_rviz/drawable_submap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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()));
}

Expand Down

0 comments on commit 4a2b19a

Please sign in to comment.