Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

There might be buffering in the launch use of subprocess but if adding flush to your program suggests that you can switch to making python's stdout process unbuffered in several ways.

https://stackoverflow.com/questions/881696/unbuffered-stdout-in-python-as-in-python-u-from-within-the-program

This could be a potentiality good feature to add to ros2 launch as an option especially in conjunction with the OnProcessIO handler enabled. @william can will have more insight into the launch system.