Skip to content

Commit

Permalink
Fix to prevent including the same package multiple times
Browse files Browse the repository at this point in the history
  • Loading branch information
roni-kreinin committed Dec 11, 2024
1 parent 9c306ef commit 0bf9662
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,11 @@ def generate_file(self):
self.write_comment('Include Packages')
for launch_file in self.included_launch_files:
if launch_file.package:
self.write(launch_file.package.find_package_share())
# Add package to included_packages if it has not already been added
self.find_package(launch_file.package)
# Include each package
for package in self.included_packages:
self.write(package.find_package_share())
self.write_newline()
# Declare launch files
self.write_comment('Declare launch files')
Expand Down

0 comments on commit 0bf9662

Please sign in to comment.