From 1d846d9ea1bb2867b4c655ad4a9c62c6c8c78837 Mon Sep 17 00:00:00 2001 From: Takayuki Murooka Date: Wed, 6 Sep 2023 22:36:19 +0900 Subject: [PATCH] fix(tier4_planning_rviz_plugin): update vehicle info parameters in panel received from global parameter Signed-off-by: Takayuki Murooka --- .../tier4_planning_rviz_plugin/include/path/display_base.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/tier4_planning_rviz_plugin/include/path/display_base.hpp b/common/tier4_planning_rviz_plugin/include/path/display_base.hpp index 55c7a9c53d72d..ccedcceefaaf9 100644 --- a/common/tier4_planning_rviz_plugin/include/path/display_base.hpp +++ b/common/tier4_planning_rviz_plugin/include/path/display_base.hpp @@ -506,6 +506,10 @@ class AutowarePathBaseDisplay : public rviz_common::MessageFilterDisplay vehicle_footprint_info_ = std::make_shared( vehicle_info_->vehicle_length_m, vehicle_info_->vehicle_width_m, vehicle_info_->rear_overhang_m); + + property_vehicle_length_.setValue(vehicle_info_->vehicle_length_m); + property_vehicle_width_.setValue(vehicle_info_->vehicle_width_m); + property_rear_overhang_.setValue(vehicle_info_->rear_overhang_m); } else { const float length{property_vehicle_length_.getFloat()}; const float width{property_vehicle_width_.getFloat()};