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

Namespaces

namespace  anonymous_namespace{mobilitypath_visualizer.cpp}
 

Classes

struct  Config
 Stuct containing the algorithm configuration values for <package_name> More...
 
struct  MarkerColor
 
class  MobilityPathVisualizer
 

Functions

def generate_launch_description ()
 

Function Documentation

◆ generate_launch_description()

def mobilitypath_visualizer.generate_launch_description ( )

Definition at line 25 of file mobilitypath_visualizer.launch.py.

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