ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A answers.ros.org
Ask Your Question
0

How can I specify the log level for all nodes when running a launch file?

asked 2021-07-26 14:53:47 -0500

lexi gravatar image

I want to use an existing launch file, but I want to run it while overiding every nodes log level with error. Something like

roslaunch --loglevel=error my_package my_launch.launch

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-07-30 02:20:28 -0500

Arne Nordmann gravatar image

updated 2021-07-30 02:21:49 -0500

I wrote an issue on exactly this, see https://github.com/ros2/launch/issues...

It should be possible to declare a launch argument in your launch file and then pass in to the nodes as arguments, see this answer.

Edit: Nevermind, I just realized you were talking about ROS 1. Keeping this answer in case someone is looking for the same issue for ROS 2.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2021-07-26 14:53:47 -0500

Seen: 88 times

Last updated: Jul 30 '21