Skip to content

Commit

Permalink
pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
rafal-gorecki committed Dec 10, 2024
1 parent 252192f commit 267e678
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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$
Expand Down
6 changes: 3 additions & 3 deletions rosbot_bringup/launch/bringup.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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>/': namespace_ext}
source_file=laser_filter_config, replacements={"<namespace>/": namespace_ext}
)

laser_filter_node = Node(
Expand Down
2 changes: 2 additions & 0 deletions rosbot_description/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

<buildtool_depend>ament_cmake</buildtool_depend>

<depend>depthai_descriptions</depend>

<export>
<build_type>ament_cmake</build_type>
</export>
Expand Down

0 comments on commit 267e678

Please sign in to comment.