Skip to content

Commit

Permalink
Automated autoyapf fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Sep 28, 2023
1 parent 78e8ae2 commit cb79638
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 3 additions & 4 deletions mission/joystick_interface/scripts/joystick_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down Expand Up @@ -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):
Expand All @@ -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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()


0 comments on commit cb79638

Please sign in to comment.