From cd6ad09bcc83d29c02aa49a7092d4656caf3f006 Mon Sep 17 00:00:00 2001 From: Adi Vardi Date: Thu, 17 Oct 2024 10:32:26 +0200 Subject: [PATCH] Use single quotes --- nav2_loopback_sim/nav2_loopback_sim/loopback_simulator.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nav2_loopback_sim/nav2_loopback_sim/loopback_simulator.py b/nav2_loopback_sim/nav2_loopback_sim/loopback_simulator.py index 3bf8f681a3..71560c5aa8 100644 --- a/nav2_loopback_sim/nav2_loopback_sim/loopback_simulator.py +++ b/nav2_loopback_sim/nav2_loopback_sim/loopback_simulator.py @@ -85,8 +85,8 @@ def __init__(self): self.publish_map_odom_tf = self.get_parameter( 'publish_map_odom_tf').get_parameter_value().bool_value - self.declare_parameter("publish_clock", True) - self.publish_clock = self.get_parameter("publish_clock").get_parameter_value().bool_value + self.declare_parameter('publish_clock', True) + self.publish_clock = self.get_parameter('publish_clock').get_parameter_value().bool_value self.t_map_to_odom = TransformStamped() self.t_map_to_odom.header.frame_id = self.map_frame_id @@ -118,7 +118,7 @@ def __init__(self): if self.publish_clock: self.clock_timer = self.create_timer(0.1, self.clockTimerCallback) - self.clock_pub = self.create_publisher(Clock, "/clock", 10) + self.clock_pub = self.create_publisher(Clock, '/clock', 10) self.setupTimer = self.create_timer(0.1, self.setupTimerCallback)