Skip to content

Commit

Permalink
Update the default system file, print the keys instead of the enums
Browse files Browse the repository at this point in the history
  • Loading branch information
civerachb-cpr committed Sep 23, 2024
1 parent 77e8c52 commit 03ea9be
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions etc/turtlebot4/system
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
MODEL:standard
VERSION:1.0.0
MODEL:lite
VERSION:2.0.0
ROS:Jazzy
HOSTNAME:ubuntu
4 changes: 2 additions & 2 deletions turtlebot4_setup/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
}
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 03ea9be

Please sign in to comment.