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 route_following_plugin_container.
25 Though in carma-platform it may be launched directly
from the base launch file.
29def generate_launch_description():
32 container = ComposableNodeContainer(
33 package=
'carma_ros2_utils',
34 name=
'route_following_plugin_container',
35 namespace=GetCurrentNamespace(),
36 executable=
'carma_component_container_mt',
37 composable_node_descriptions=[
41 package=
'route_following_plugin',
42 plugin=
'route_following_plugin::RouteFollowingPlugin',
43 name=
'route_following_plugin',
45 {
'use_intra_process_comms':
True},
51 return LaunchDescription([