Add example launch file with Trace action
This commit is contained in:
		
							parent
							
								
									bf8a2b01ad
								
							
						
					
					
						commit
						152fa2f5f3
					
				
					 2 changed files with 24 additions and 0 deletions
				
			
		
							
								
								
									
										21
									
								
								launch/example.launch.py
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								launch/example.launch.py
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,21 @@
 | 
				
			||||||
 | 
					# Example launch file for the Trace action
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					from launch import LaunchDescription
 | 
				
			||||||
 | 
					from launch_ros.actions import Node
 | 
				
			||||||
 | 
					from tracetools_launch.trace import Trace
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					def generate_launch_description():
 | 
				
			||||||
 | 
					    return LaunchDescription([
 | 
				
			||||||
 | 
					        Trace(
 | 
				
			||||||
 | 
					            session_name='my-tracing-session',
 | 
				
			||||||
 | 
					            base_path='/tmp'),
 | 
				
			||||||
 | 
					        Node(
 | 
				
			||||||
 | 
					            package='examples_rclcpp_minimal_publisher',
 | 
				
			||||||
 | 
					            node_executable='publisher_member_function',
 | 
				
			||||||
 | 
					            output='screen'),
 | 
				
			||||||
 | 
					        Node(
 | 
				
			||||||
 | 
					            package='examples_rclcpp_minimal_subscriber',
 | 
				
			||||||
 | 
					            node_executable='subscriber_member_function',
 | 
				
			||||||
 | 
					            output='screen'),
 | 
				
			||||||
 | 
					    ])
 | 
				
			||||||
							
								
								
									
										3
									
								
								setup.py
									
										
									
									
									
								
							
							
						
						
									
										3
									
								
								setup.py
									
										
									
									
									
								
							| 
						 | 
					@ -1,3 +1,5 @@
 | 
				
			||||||
 | 
					import glob
 | 
				
			||||||
 | 
					
 | 
				
			||||||
from setuptools import find_packages
 | 
					from setuptools import find_packages
 | 
				
			||||||
from setuptools import setup
 | 
					from setuptools import setup
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -9,6 +11,7 @@ setup(
 | 
				
			||||||
    packages=find_packages(exclude=['test']),
 | 
					    packages=find_packages(exclude=['test']),
 | 
				
			||||||
    data_files=[
 | 
					    data_files=[
 | 
				
			||||||
        ('share/' + package_name, ['package.xml']),
 | 
					        ('share/' + package_name, ['package.xml']),
 | 
				
			||||||
 | 
					        ('share/' + package_name + '/launch', glob.glob('launch/*.launch.py')),
 | 
				
			||||||
    ],
 | 
					    ],
 | 
				
			||||||
    install_requires=['setuptools'],
 | 
					    install_requires=['setuptools'],
 | 
				
			||||||
    maintainer='Christophe Bedard',
 | 
					    maintainer='Christophe Bedard',
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue