15from ament_index_python
import get_package_share_directory
16from launch
import LaunchDescription
17from launch_ros.actions
import ComposableNodeContainer
18from launch_ros.descriptions
import ComposableNode
19from launch.actions
import DeclareLaunchArgument
20from launch.substitutions
import LaunchConfiguration
21from carma_ros2_utils.launch.get_current_namespace
import GetCurrentNamespace
28 log_level = LaunchConfiguration(
'log_level')
29 declare_log_level_arg = DeclareLaunchArgument(
30 name =
'log_level', default_value=
'DEBUG')
33 param_file_path = os.path.join(
34 get_package_share_directory(
'mobilitypath_visualizer'),
'config/params.yaml')
38 container = ComposableNodeContainer(
39 package=
'carma_ros2_utils',
40 name=
'mobilitypath_visualizer_container',
41 namespace=GetCurrentNamespace(),
42 executable=
'carma_component_container_mt',
43 composable_node_descriptions=[
47 package=
'mobilitypath_visualizer',
48 plugin=
'mobilitypath_visualizer::MobilityPathVisualizer',
49 name=
'mobilitypath_visualizer_node',
51 {
'use_intra_process_comms':
True},
52 {
'--log-level' : log_level }
54 parameters=[ param_file_path ]
59 return LaunchDescription([
60 declare_log_level_arg,
def generate_launch_description()