Robotics StackExchange | Archived questions

Setting loglevel for tf2 and/or console_bridge

We use tf2 and tf2ros pretty extensively and would like to suppress or change the log levels for tf2 related things. I see in the code that tf2 uses consolebridge with preset levels. Of course we could build from source but it would be so nice if the user could set this log level. If I instantiate a tf2_ros::Buffer then use it to look up transforms or whatever, I am using the built in tooling to determine if that was successful or not, I don't need the warn spam that tf2 outputs in addition to that and would appreciate a method to turn it off. Is this already possible and I'm just missing how to do it? We're using foxy.

Asked by Chuck Claunch on 2022-02-23 17:03:58 UTC

Comments

I'm looking for the solution too. The warning msg is so annoying.

Asked by DC pig on 2022-04-24 21:54:22 UTC

Answers