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'),
|
||||
])
|
Loading…
Add table
Add a link
Reference in a new issue