Skip to content

Commit

Permalink
remove repeated variable
Browse files Browse the repository at this point in the history
Signed-off-by: stevedan <[email protected]>
  • Loading branch information
stevedanomodolor committed Jun 20, 2024
1 parent 475df16 commit 2d29e0b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
4 changes: 1 addition & 3 deletions nav2_system_tests/src/system/test_system_launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ def generate_launch_description():
os.getenv('BT_NAVIGATOR_XML'),
)

bringup_dir = get_package_share_directory('nav2_bringup')

# Use local param file
launch_dir = os.path.dirname(os.path.realpath(__file__))
params_file = os.path.join(launch_dir, 'nav2_system_params.yaml')
Expand Down Expand Up @@ -132,7 +130,7 @@ def generate_launch_description():
),
IncludeLaunchDescription(
PythonLaunchDescriptionSource(
os.path.join(bringup_dir, 'launch', 'bringup_launch.py')
os.path.join(nav2_bringup_dir, 'launch', 'bringup_launch.py')
),
launch_arguments={
'namespace': '',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ def generate_launch_description():
os.getenv('BT_NAVIGATOR_XML'),
)

bringup_dir = get_package_share_directory('nav2_bringup')

# Use local param file
launch_dir = os.path.dirname(os.path.realpath(__file__))
params_file = os.path.join(launch_dir, 'nav2_system_params.yaml')
Expand Down Expand Up @@ -145,7 +143,7 @@ def generate_launch_description():
),
IncludeLaunchDescription(
PythonLaunchDescriptionSource(
os.path.join(bringup_dir, 'launch', 'bringup_launch.py')
os.path.join(nav2_bringup_dir, 'launch', 'bringup_launch.py')
),
launch_arguments={
'namespace': '',
Expand Down
4 changes: 1 addition & 3 deletions nav2_system_tests/src/system/test_wrong_init_pose_launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ def generate_launch_description():
os.getenv('BT_NAVIGATOR_XML'),
)

bringup_dir = get_package_share_directory('nav2_bringup')

# Use local param file
launch_dir = os.path.dirname(os.path.realpath(__file__))
params_file = os.path.join(launch_dir, 'nav2_system_params.yaml')
Expand Down Expand Up @@ -131,7 +129,7 @@ def generate_launch_description():
),
IncludeLaunchDescription(
PythonLaunchDescriptionSource(
os.path.join(bringup_dir, 'launch', 'bringup_launch.py')
os.path.join(nav2_bringup_dir, 'launch', 'bringup_launch.py')
),
launch_arguments={
'namespace': '',
Expand Down

0 comments on commit 2d29e0b

Please sign in to comment.