Skip to content

Commit 102d201

Browse files
authored
Tutorials/Demos/Logging: Added note about colorizing ros2 launch (#5726)
Signed-off-by: Martin Pecka <[email protected]>
1 parent c52285a commit 102d201

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

source/Tutorials/Demos/Logging-and-logger-configuration.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,11 @@ You should see that debug, warn, error and fatal logs aren't colorized now.
446446
If it is forced you will get a new warning saying that colorization failed.
447447
The default behavior already checks if the output is a console or not, so forcing colorization is not recommended.
448448

449+
.. note::
450+
451+
If you start several nodes via ``ros2 launch``, no node has an active terminal attached to it (unless you set ``emulate_tty=True``).
452+
This means that to get colorized output for ``ros2 launch``, you need to set ``RCUTILS_COLORIZED_OUTPUT=1`` explicitly.
453+
449454
Default stream for console output
450455
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
451456

0 commit comments

Comments
 (0)