Created
June 29, 2021 19:43
-
-
Save RDaneelOlivav/4229c11ef08e6df3e9391c01d5cbc9c1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from ament_index_python import get_package_share_directory | |
from launch import LaunchDescription | |
from launch.actions import DeclareLaunchArgument | |
from launch.actions import IncludeLaunchDescription | |
from launch.launch_description_sources import PythonLaunchDescriptionSource | |
from launch.substitutions import LaunchConfiguration | |
from launch_ros.actions import Node | |
import os | |
def generate_launch_description(): | |
carla_tc_pkg_path = get_package_share_directory('carla_tc') | |
map_publisher_param_file = os.path.join( | |
carla_tc_pkg_path, 'param/map_publisher.param.yaml') | |
map_publisher_param = DeclareLaunchArgument( | |
'map_publisher_param_file', | |
default_value=map_publisher_param_file, | |
description='Path to config file for Map Publisher' | |
) | |
map_publisher = Node( | |
package='ndt_nodes', | |
executable='ndt_map_publisher_exe', | |
namespace='localization', | |
parameters=[LaunchConfiguration('map_publisher_param_file')] | |
) | |
return LaunchDescription([ | |
map_publisher_param, | |
map_publisher, | |
]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment