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 carma_ros2_utils.launch.get_current_namespace
import GetCurrentNamespace
24This file is can be used to launch the CARMA stop_controlled_intersection_tactical_plugin_container.
25 Though in carma-platform it may be launched directly
from the base launch file.
29def generate_launch_description():
31 stop_controlled_intersection_tactical_plugin_file_path = os.path.join(
32 get_package_share_directory('stop_controlled_intersection_tactical_plugin'),
'config/parameters.yaml')
35 container = ComposableNodeContainer(
36 package=
'carma_ros2_utils',
37 name=
'stop_controlled_intersection_tactical_plugin_container',
38 namespace=GetCurrentNamespace(),
39 executable=
'carma_component_container_mt',
40 composable_node_descriptions=[
44 package=
'stop_controlled_intersection_tactical_plugin',
45 plugin=
'stop_controlled_intersection_tactical_plugin::StopControlledIntersectionTacticalPlugin',
46 name=
'stop_controlled_intersection_tactical_plugin',
48 {
'use_intra_process_comms':
True},
51 stop_controlled_intersection_tactical_plugin_file_path
57 return LaunchDescription([