From 03235b67e7d4039964ebaaabbe3d673f6e16660d Mon Sep 17 00:00:00 2001 From: Roni Kreinin Date: Wed, 11 Dec 2024 13:54:11 -0500 Subject: [PATCH] Added filename argument to LaunchFile --- .../clearpath_generator_common/common.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/clearpath_generator_common/clearpath_generator_common/common.py b/clearpath_generator_common/clearpath_generator_common/common.py index d600f2b..2129f69 100644 --- a/clearpath_generator_common/clearpath_generator_common/common.py +++ b/clearpath_generator_common/clearpath_generator_common/common.py @@ -131,13 +131,17 @@ def __init__(self, name: str, path: str = 'launch', package: Package = None, - args: List[tuple] = None + args: List[tuple] = None, + filename: str = None, ) -> None: self.package = package self.path = path self.name = 'launch_' + name self.declaration = 'launch_file_{0}'.format(name) - self.file = '{0}.launch.py'.format(name) + if filename: + self.file = '{0}.launch.py'.format(filename) + else: + self.file = '{0}.launch.py'.format(name) self.args = args def get_full_path(self):