Skip to content

Commit

Permalink
[view_frames] log filenames after it's been determined (#674)
Browse files Browse the repository at this point in the history
Signed-off-by: Mikael Arguedas <[email protected]>
  • Loading branch information
mikaelarguedas authored May 7, 2024
1 parent 6dfa3df commit 24643fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tf2_tools/tf2_tools/view_frames.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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()))

Expand Down

0 comments on commit 24643fc

Please sign in to comment.