From 24643fce510d8cc836fe6e5277a1d3f86a21af04 Mon Sep 17 00:00:00 2001 From: Mikael Arguedas Date: Tue, 7 May 2024 13:57:28 +0200 Subject: [PATCH] [view_frames] log filenames after it's been determined (#674) Signed-off-by: Mikael Arguedas --- tf2_tools/tf2_tools/view_frames.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tf2_tools/tf2_tools/view_frames.py b/tf2_tools/tf2_tools/view_frames.py index fc2e194ca..657038036 100755 --- a/tf2_tools/tf2_tools/view_frames.py +++ b/tf2_tools/tf2_tools/view_frames.py @@ -67,7 +67,7 @@ def main(): while (time.time() - start_time) < parsed_args.wait_time: rclpy.spin_once(node, timeout_sec=0.1) - node.get_logger().info('Generating graph in frames.pdf file...') + node.get_logger().info('Generating graph...') cli = node.create_client(FrameGraph, 'tf2_frames') req = FrameGraph.Request() @@ -95,6 +95,7 @@ def main(): frames_gv = 'frames_{:s}.gv'.format(datetime) frames_pdf = 'frames_{:s}.pdf'.format(datetime) + node.get_logger().info(f'Exporting graph in {frames_pdf} file...') with open(frames_gv, 'w') as f: f.write(generate_dot(data, node.get_clock().now().seconds_nanoseconds()))