From cb7963853703478e960c8f9d234c17516bdb1edb Mon Sep 17 00:00:00 2001 From: github-actions Date: Thu, 28 Sep 2023 13:12:32 +0000 Subject: [PATCH] Automated autoyapf fixes --- mission/joystick_interface/scripts/joystick_interface.py | 7 +++---- .../scripts/test/test_joystick_interface.py | 2 -- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/mission/joystick_interface/scripts/joystick_interface.py b/mission/joystick_interface/scripts/joystick_interface.py index 32791744..74f5adfc 100755 --- a/mission/joystick_interface/scripts/joystick_interface.py +++ b/mission/joystick_interface/scripts/joystick_interface.py @@ -9,7 +9,7 @@ class JoystickInterface(Node): def __init__(self): - rclpy.init() + rclpy.init() #Mapping copy pasted from the original file self.joystick_buttons_map = [ @@ -37,12 +37,10 @@ def __init__(self): "dpad_vertical", ] - - super().__init__('joystick_interface_node') self.subscriber = self.create_subscription(Joy, 'joy', self.joystick_cb, 1) - + #self.wrench_publisher = self.create_publisher(Wrench, 'wrench_topic', 1) def create_2d_wrench_message(self, x, y, yaw): @@ -64,6 +62,7 @@ def joystick_cb(self, msg): a = msg.buttons return a + def main(args=None): #rclpy.init(args=args) print("hello from main") diff --git a/mission/joystick_interface/scripts/test/test_joystick_interface.py b/mission/joystick_interface/scripts/test/test_joystick_interface.py index c6298ad1..af611b7a 100644 --- a/mission/joystick_interface/scripts/test/test_joystick_interface.py +++ b/mission/joystick_interface/scripts/test/test_joystick_interface.py @@ -22,5 +22,3 @@ def test_suscriber(self): joy_msg.buttons = [1, 0, 1] assert JoystickInterface().joystick_cb(joy_msg) == joy_msg.buttons rclpy.shutdown() - -