From ce17f503d1027ee603baa81d50f693e3df23b9fe Mon Sep 17 00:00:00 2001 From: Christophe Bedard Date: Sun, 13 Oct 2019 15:29:21 -0700 Subject: [PATCH] Add launch tracing example --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e9aa6ac..1ff0150 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,11 @@ By default, it will enable all ROS tracepoints and a few kernel tracepoints. The ### Launch file trace action -Another option is to use the `Trace` action in a launch file along with your `Node` action(s). +Another option is to use the `Trace` action in a launch file along with your `Node` action(s). This way, tracing happens when launching the launch file. + +``` +$ ros2 launch tracetools_launch example.launch.py +``` See [this example launch file](./tracetools_launch/launch/example.launch.py) for more information.