Skip to content

Commit eecb168

Browse files
Fix QoS profile loading for InitialPoseTool from rviz config files (#1544) (#1553)
(cherry picked from commit 8ad6fed) Signed-off-by: kosuke55 <[email protected]> Co-authored-by: Kosuke Takeuchi <[email protected]>
1 parent e44739e commit eecb168

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

rviz_default_plugins/src/rviz_default_plugins/tools/pose_estimate/initial_pose_tool.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,10 @@ void InitialPoseTool::onInitialize()
7777
{
7878
PoseTool::onInitialize();
7979
qos_profile_property_->initialize(
80-
[this](rclcpp::QoS profile) {this->qos_profile_ = profile;});
80+
[this](rclcpp::QoS profile) {
81+
this->qos_profile_ = profile;
82+
updateTopic();
83+
});
8184
setName("2D Pose Estimate");
8285
updateTopic();
8386
}

0 commit comments

Comments
 (0)