Is there any way to force flush ROS2 topic hz command to log file?
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?
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?