Skip to content

Commit

Permalink
Added filename argument to LaunchFile
Browse files Browse the repository at this point in the history
  • Loading branch information
roni-kreinin committed Dec 11, 2024
1 parent 0bf9662 commit 03235b6
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 03235b6

Please sign in to comment.