Skip to content

Commit

Permalink
Fix the time_jump_callback signature. (#711)
Browse files Browse the repository at this point in the history
Because it accesses object data, the first argument
must be 'self'.

Signed-off-by: Chris Lalancette <[email protected]>
  • Loading branch information
clalancette authored Oct 4, 2024
1 parent 2df58f9 commit efc7845
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tf2_ros_py/tf2_ros/buffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit efc7845

Please sign in to comment.