From efc784597ccbd8d246794e72b20358deab4ab114 Mon Sep 17 00:00:00 2001 From: Chris Lalancette Date: Fri, 4 Oct 2024 03:52:06 -0400 Subject: [PATCH] Fix the time_jump_callback signature. (#711) Because it accesses object data, the first argument must be 'self'. Signed-off-by: Chris Lalancette --- tf2_ros_py/tf2_ros/buffer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tf2_ros_py/tf2_ros/buffer.py b/tf2_ros_py/tf2_ros/buffer.py index f40463fcd1..8fe69ca412 100644 --- a/tf2_ros_py/tf2_ros/buffer.py +++ b/tf2_ros_py/tf2_ros/buffer.py @@ -104,7 +104,7 @@ def __get_frames( ) -> FrameGraphSrvResponse: return FrameGraph.Response(frame_yaml=self.all_frames_as_yaml()) - def time_jump_callback(time_jump: TimeJump): + def time_jump_callback(self, time_jump: TimeJump): rclpy.logging.get_logger("tf2_buffer").warning("Detected jump back in time. Clearing tf buffer.") self.clear()