Redirecting launchfile output called from Python

asked 2021-12-22 16:32:26 -0500

dsonyy gravatar image

I have a simple piece of code which runs a specified launchfile:

roslaunch.configure_logging(uuid)
uuid = roslaunch.rlutil.get_or_generate_uuid(None, False)
file = [(roslaunch.rlutil.resolve_launch_arguments(cli)[0], cli[2:])]
launch = roslaunch.parent.ROSLaunchParent(uuid, file)

Execution of the launch file stuff generates lots of logging output on stdout/err, so the actual script's output is getting lost.

Is it possible to somehow redirect or disable printing it on the screen?

edit retag flag offensive close merge delete