Is there any way to force flush ROS2 topic hz command to log file?

asked 2021-10-19 08:14:53 -0500

ROS_LOVER gravatar image

I have try many solution stdout ,stderr but it seem not work: $ ros2 topic hz [topic name] >log.log I try to for stdbuf with option -o0 (no buffer) but it still not work. The issue is not happen with ROS. Could someone give me some advice?

edit retag flag offensive close merge delete

Comments

I just tried running ros2 topic hz > output.txt and it redirected the output into the file just fine.

Are you getting any error, or is the log.log file just empty?

Geoff gravatar image Geoff  ( 2021-10-19 18:40:04 -0500 )edit