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.
mock_controller_driver Namespace Reference

Classes

class  MockControllerDriver
 responsible for replicating behavior of control driver More...
 

Functions

def generate_launch_description ()
 

Function Documentation

◆ generate_launch_description()

def mock_controller_driver.generate_launch_description ( )

Definition at line 31 of file mock_controller_driver.launch.py.

32
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 # Launch node(s) in a carma container to allow logging to be configured
40 container = ComposableNodeContainer(
41 package='carma_ros2_utils',
42 name='mock_controller_driver_container',
43 namespace=GetCurrentNamespace(),
44 executable='carma_component_container_mt',
45 composable_node_descriptions=[
46
47 # Launch the core node(s)
48 ComposableNode(
49 package='mock_controller_driver',
50 plugin='mock_controller_driver::MockControllerDriver',
51 name='mock_controller_driver_node',
52 extra_arguments=[
53 {'use_intra_process_comms': True},
54 {'--log-level' : log_level }
55 ]
56 ),
57 ]
58 )
59
60 return LaunchDescription([
61 declare_log_level_arg,
62 container
63 ])