Skip to content

Commit

Permalink
(qr) fix construction
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthijsBurgh committed May 7, 2024
1 parent 2a7eb01 commit 3d7313e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hmi/scripts/qr_code_decoder
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ class QRCodeDecode(AbstractHMIServer):
QRCodeDecode class for decoding QR codes.
"""

def __init__(self, max_tries: int = 5, loop_rate: float = 1.0, *args, **kwargs) -> None:
super().__init__(*args, **kwargs)
def __init__(self, name: str, max_tries: int = 5, loop_rate: float = 1.0, *args, **kwargs) -> None:
super().__init__(name, *args, **kwargs)

# Image
self._image_sub: Optional[rospy.Subscriber] = None
Expand Down Expand Up @@ -133,5 +133,5 @@ class QRCodeDecode(AbstractHMIServer):

if __name__ == "__main__":
rospy.init_node("qr_code_decode")
QRCodeDecode(rospy.get_name())
QRCodeDecode(name=rospy.get_name())
rospy.spin()

0 comments on commit 3d7313e

Please sign in to comment.