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 motion_computation_node.
25 Though in carma-platform it may be launched directly
from the base launch file.
29def generate_launch_description():
32 param_file_path = os.path.join(
33 get_package_share_directory(
"motion_computation"),
"config/parameters.yaml"
37 container = ComposableNodeContainer(
38 package=
"carma_ros2_utils",
39 name=
"motion_computation_container",
40 namespace=GetCurrentNamespace(),
41 executable=
"carma_component_container_mt",
42 composable_node_descriptions=[
45 package=
"motion_computation",
46 plugin=
"motion_computation::MotionComputationNode",
47 name=
"motion_computation_node",
49 {
"use_intra_process_comms":
True},
51 parameters=[param_file_path],
56 return LaunchDescription([container])