From 03ea9be1c6d7091e5e471f1708f642605a11139b Mon Sep 17 00:00:00 2001 From: Chris Iverach-Brereton Date: Mon, 23 Sep 2024 12:32:49 -0400 Subject: [PATCH] Update the default system file, print the keys instead of the enums --- etc/turtlebot4/system | 5 +++-- turtlebot4_setup/conf.py | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/etc/turtlebot4/system b/etc/turtlebot4/system index efc36e3..9d9ae4a 100644 --- a/etc/turtlebot4/system +++ b/etc/turtlebot4/system @@ -1,3 +1,4 @@ -MODEL:standard -VERSION:1.0.0 +MODEL:lite +VERSION:2.0.0 ROS:Jazzy +HOSTNAME:ubuntu \ No newline at end of file diff --git a/turtlebot4_setup/conf.py b/turtlebot4_setup/conf.py index a0ac129..db6762b 100644 --- a/turtlebot4_setup/conf.py +++ b/turtlebot4_setup/conf.py @@ -76,7 +76,7 @@ class Conf(): default_system_conf = { SystemOptions.MODEL: 'lite', - SystemOptions.VERSION: '1.0.0', + SystemOptions.VERSION: '2.0.0', SystemOptions.ROS: 'Jazzy', SystemOptions.HOSTNAME: 'ubuntu', } @@ -203,7 +203,7 @@ def write_system(self): is_conf = False for k in [SystemOptions.MODEL, SystemOptions.VERSION, SystemOptions.ROS]: if k in line: - system[i] = '{0}:{1}\n'.format(k, self.system_conf[k]) + system[i] = f'{k.value}:{self.system_conf[k]}\n' is_conf = True break