Skip to content

Commit ede45f6

Browse files
authored
Merge pull request #14 from ijnek/patch-1
Use '--reliability RELIABLE' instead of '--reliable'
2 parents d3b9a9f + 1691e4b commit ede45f6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/Guides/ros2_tracing_trace_and_analyze.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,15 +102,15 @@ We need to run `performance_test` as root to be able to use real-time priorities
102102

103103
```sh
104104
$ # terminal 2
105-
$ sudo ./install/performance_test/lib/performance_test/perf_test -c rclcpp-single-threaded-executor -p 1 -s 1 -r 0 -m Array1m --reliable --max-runtime 60 --use-rt-prio 98
105+
$ sudo ./install/performance_test/lib/performance_test/perf_test -c rclcpp-single-threaded-executor -p 1 -s 1 -r 0 -m Array1m --reliability RELIABLE --max-runtime 60 --use-rt-prio 98
106106
```
107107

108108
If that last command doesn't work for you (with an error like: "error while loading shared libraries"), run the slightly-different command below.
109109
This is because, for security reasons, we need to manually pass `*PATH` environment variables for some shared libraries to be found (see [this explanation](https://unix.stackexchange.com/a/251374)).
110110

111111
```sh
112112
$ # terminal 2
113-
$ sudo env PATH="$PATH" LD_LIBRARY_PATH="$LD_LIBRARY_PATH" ./install/performance_test/lib/performance_test/perf_test -c rclcpp-single-threaded-executor -p 1 -s 1 -r 0 -m Array1m --reliable --max-runtime 60 --use-rt-prio 98
113+
$ sudo env PATH="$PATH" LD_LIBRARY_PATH="$LD_LIBRARY_PATH" ./install/performance_test/lib/performance_test/perf_test -c rclcpp-single-threaded-executor -p 1 -s 1 -r 0 -m Array1m --reliability RELIABLE --max-runtime 60 --use-rt-prio 98
114114
```
115115

116116
```eval_rst
@@ -120,7 +120,7 @@ $ sudo env PATH="$PATH" LD_LIBRARY_PATH="$LD_LIBRARY_PATH" ./install/performance
120120
.. code-block:: bash
121121
122122
$ # terminal 2
123-
$ ./install/performance_test/lib/performance_test/perf_test -c rclcpp-single-threaded-executor -p 1 -s 1 -r 0 -m Array1m --reliable --max-runtime 60
123+
$ ./install/performance_test/lib/performance_test/perf_test -c rclcpp-single-threaded-executor -p 1 -s 1 -r 0 -m Array1m --reliability RELIABLE --max-runtime 60
124124
```
125125

126126
Once the experiment is done, in the first terminal, press enter again to stop tracing.

0 commit comments

Comments
 (0)