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

Namespaces

namespace  anonymous_namespace{route_following_plugin.cpp}
 

Classes

struct  Config
 Struct containing config values values for route_following_plugin. More...
 
class  RouteFollowingPlugin
 

Functions

def generate_launch_description ()
 

Function Documentation

◆ generate_launch_description()

def route_following_plugin.generate_launch_description ( )

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