Carma-platform v4.2.0
CARMA Platform is built on robot operating system (ROS) and utilizes open source software (OSS) that enables Cooperative Driving Automation (CDA) features to allow Automated Driving Systems to interact and cooperate with infrastructure and other vehicles through communication.
motion_computation_launch Namespace Reference

Functions

def generate_launch_description ()
 

Function Documentation

◆ generate_launch_description()

def motion_computation_launch.generate_launch_description ( )

Definition at line 32 of file motion_computation_launch.py.

33 # Declare the log_level launch argument
34 log_level = LaunchConfiguration("log_level")
35 declare_log_level_arg = DeclareLaunchArgument(
36 name="log_level", default_value="WARN"
37 )
38
39 # Get parameter file path
40 param_file_path = os.path.join(
41 get_package_share_directory("motion_computation"), "config/parameters.yaml"
42 )
43
44 # Launch node(s) in a carma container to allow logging to be configured
45 container = ComposableNodeContainer(
46 package="carma_ros2_utils",
47 name="motion_computation_container",
48 namespace=GetCurrentNamespace(),
49 executable="carma_component_container_mt",
50 composable_node_descriptions=[
51 # Launch the core node(s)
52 ComposableNode(
53 package="motion_computation",
54 plugin="motion_computation::MotionComputationNode",
55 name="motion_computation_node",
56 extra_arguments=[
57 {"use_intra_process_comms": True},
58 {"--log-level": log_level},
59 ],
60 parameters=[param_file_path],
61 ),
62 ],
63 )
64
65 return LaunchDescription([declare_log_level_arg, container])