From 1819a443d184df432c45c6586944ab9c3318b5b7 Mon Sep 17 00:00:00 2001 From: Shumpei Wakabayashi Date: Mon, 27 Jun 2022 14:24:59 +0900 Subject: [PATCH 1/2] fix(simple_planning_simlator): keep alive tf Signed-off-by: Shumpei Wakabayashi --- .../simple_planning_simulator_core.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simulator/simple_planning_simulator/src/simple_planning_simulator/simple_planning_simulator_core.cpp b/simulator/simple_planning_simulator/src/simple_planning_simulator/simple_planning_simulator_core.cpp index d29ba626aa01d..8a7c1d5aeeb03 100644 --- a/simulator/simple_planning_simulator/src/simple_planning_simulator/simple_planning_simulator_core.cpp +++ b/simulator/simple_planning_simulator/src/simple_planning_simulator/simple_planning_simulator_core.cpp @@ -76,7 +76,7 @@ namespace simple_planning_simulator SimplePlanningSimulator::SimplePlanningSimulator(const rclcpp::NodeOptions & options) : Node("simple_planning_simulator", options), tf_buffer_(get_clock()), - tf_listener_(tf_buffer_, std::shared_ptr(this, [](auto) {}), false) + tf_listener_(tf_buffer_) { simulated_frame_id_ = declare_parameter("simulated_frame_id", "base_link"); origin_frame_id_ = declare_parameter("origin_frame_id", "odom"); From e39764059048dca072267d660d09e87f937bab04 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 27 Jun 2022 05:38:14 +0000 Subject: [PATCH 2/2] ci(pre-commit): autofix --- .../simple_planning_simulator_core.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/simulator/simple_planning_simulator/src/simple_planning_simulator/simple_planning_simulator_core.cpp b/simulator/simple_planning_simulator/src/simple_planning_simulator/simple_planning_simulator_core.cpp index 8a7c1d5aeeb03..3e262928e46c9 100644 --- a/simulator/simple_planning_simulator/src/simple_planning_simulator/simple_planning_simulator_core.cpp +++ b/simulator/simple_planning_simulator/src/simple_planning_simulator/simple_planning_simulator_core.cpp @@ -74,9 +74,7 @@ namespace simple_planning_simulator { SimplePlanningSimulator::SimplePlanningSimulator(const rclcpp::NodeOptions & options) -: Node("simple_planning_simulator", options), - tf_buffer_(get_clock()), - tf_listener_(tf_buffer_) +: Node("simple_planning_simulator", options), tf_buffer_(get_clock()), tf_listener_(tf_buffer_) { simulated_frame_id_ = declare_parameter("simulated_frame_id", "base_link"); origin_frame_id_ = declare_parameter("origin_frame_id", "odom");