Skip to content

Commit

Permalink
Fix path substitution in simple_agent
Browse files Browse the repository at this point in the history
  • Loading branch information
jcrm1 committed Apr 13, 2024
1 parent 451d6a1 commit 26034d8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/rktl_planner/launch/simple_agent.launch.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import launch
import launch_ros.actions
from ament_index_python.packages import get_package_share_directory
import os

def generate_launch_description():
ld = launch.LaunchDescription([
Expand All @@ -21,7 +23,7 @@ def generate_launch_description():
output="screen",
parameters=[
{
launch.substitutions.PathJoinSubstitution([launch_ros.substitutions.FindPackageShare('rktl_planner'), '/config/path_follower.yaml'])
os.path.join(get_package_share_directory('rktl_planner'), 'config', 'path_follower.yaml')
},
{
"car_name": launch.substitutions.LaunchConfiguration("car_name")
Expand All @@ -41,7 +43,7 @@ def generate_launch_description():
output="screen",
parameters=[
{
launch.substitutions.PathJoinSubstitution([launch_ros.substitutions.FindPackageShare('rktl_planner'), '/config/path_planner.yaml'])
os.path.join(get_package_share_directory('rktl_planner'), 'config', 'path_planner.yaml')
},
{
"car_name": launch.substitutions.LaunchConfiguration("car_name")
Expand Down

0 comments on commit 26034d8

Please sign in to comment.