Skip to content

Commit 85c93db

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

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
@@ -76,7 +76,10 @@ void InitialPoseTool::onInitialize()
7676
{
7777
PoseTool::onInitialize();
7878
qos_profile_property_->initialize(
79-
[this](rclcpp::QoS profile) {this->qos_profile_ = profile;});
79+
[this](rclcpp::QoS profile) {
80+
this->qos_profile_ = profile;
81+
updateTopic();
82+
});
8083
setName("2D Pose Estimate");
8184
updateTopic();
8285
}

0 commit comments

Comments
 (0)