ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
5

ros2 log filter out rcl?

asked 2021-01-27 09:55:36 -0600

I'd like some way to filter out rcl debug logs. My output is full of this after starting a component container and I need to see what else is happening:

[component_container-3] [DEBUG] [1611762747.548037385] [rcl]: Timeout calculated based on next scheduled timer: true
[component_container-3] [DEBUG] [1611762747.553074317] [rcl]: Subscription in wait set is ready
[component_container-3] [DEBUG] [1611762747.553092612] [rcl]: Subscription taking message
[component_container-3] [DEBUG] [1611762747.553102522] [rcl]: Subscription take succeeded: true
[component_container-3] [DEBUG] [1611762747.553116454] [rcl]: Waiting with timeout: 0s + 37156435ns

Secondary, Is there a way I could enable debug per-component instead of on the whole container?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2022-10-14 13:50:09 -0600

melwin gravatar image

You can do this by passing --ros-args --log-level node_name:=DEBUG

For example ros2 run package mynode --ros-args --log-level mynode:=DEBUG

edit flag offensive delete link more

Question Tools

3 followers

Stats

Asked: 2021-01-27 09:55:36 -0600

Seen: 240 times

Last updated: Oct 14 '22