From 267e67893d63eb5bb3873f3f846aab5061b3c4f8 Mon Sep 17 00:00:00 2001 From: rafal-gorecki Date: Tue, 10 Dec 2024 10:28:07 +0000 Subject: [PATCH] pre-commit --- .pre-commit-config.yaml | 2 +- rosbot_bringup/launch/bringup.launch.py | 6 +++--- rosbot_description/package.xml | 2 ++ 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ad732445..36d5e001 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -82,7 +82,7 @@ repos: - id: ament_copyright name: ament_copyright description: Check if copyright notice is available in all files. - stages: [commit] + stages: [pre-commit] entry: ament_copyright language: system exclude: ^.*\.md$ diff --git a/rosbot_bringup/launch/bringup.launch.py b/rosbot_bringup/launch/bringup.launch.py index f217f96c..5cfb9334 100644 --- a/rosbot_bringup/launch/bringup.launch.py +++ b/rosbot_bringup/launch/bringup.launch.py @@ -31,6 +31,7 @@ from launch_ros.substitutions import FindPackageShare from nav2_common.launch import ReplaceString + def generate_launch_description(): microros = LaunchConfiguration("microros") namespace = LaunchConfiguration("namespace") @@ -80,12 +81,11 @@ def generate_launch_description(): ) laser_filter_config = PathJoinSubstitution([rosbot_bringup, "config", "laser_filter.yaml"]) - + namespace_ext = PythonExpression(["'", namespace, "' + '/' if '", namespace, "' else ''"]) laser_filter_config = ReplaceString( - source_file=laser_filter_config, - replacements={'/': namespace_ext} + source_file=laser_filter_config, replacements={"/": namespace_ext} ) laser_filter_node = Node( diff --git a/rosbot_description/package.xml b/rosbot_description/package.xml index eb9c1995..b79d3f47 100644 --- a/rosbot_description/package.xml +++ b/rosbot_description/package.xml @@ -18,6 +18,8 @@ ament_cmake + depthai_descriptions + ament_cmake