Skip to content
Snippets Groups Projects
Unverified Commit 14f8cc3e authored by Carlos A. Orduno's avatar Carlos A. Orduno Committed by GitHub
Browse files

Fix bt xml paths on tests (#1293)

parent ac4d0aff
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,7 @@
import os
import sys
from ament_index_python.packages import get_package_prefix, get_package_share_directory
from ament_index_python.packages import get_package_share_directory
from launch import LaunchDescription, LaunchService
from launch.actions import (ExecuteProcess, GroupAction,
......@@ -35,7 +35,7 @@ def generate_launch_description():
urdf = os.getenv('TEST_URDF')
sdf = os.getenv('TEST_SDF')
bt_xml_file = os.path.join(get_package_prefix('nav2_bt_navigator'),
bt_xml_file = os.path.join(get_package_share_directory('nav2_bt_navigator'),
'behavior_trees',
os.getenv('BT_NAVIGATOR_XML'))
......
......@@ -17,7 +17,7 @@
import os
import sys
from ament_index_python.packages import get_package_prefix, get_package_share_directory
from ament_index_python.packages import get_package_share_directory
from launch import LaunchDescription
from launch import LaunchService
......@@ -33,7 +33,7 @@ def generate_launch_description():
map_yaml_file = os.getenv('TEST_MAP')
world = os.getenv('TEST_WORLD')
bt_navigator_xml = os.path.join(get_package_prefix('nav2_bt_navigator'),
bt_navigator_xml = os.path.join(get_package_share_directory('nav2_bt_navigator'),
'behavior_trees',
os.getenv('BT_NAVIGATOR_XML'))
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment