From 4df74b50a85a09d9688863f94c2810d252b00a35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Ellensohn?= Date: Tue, 22 Aug 2023 10:28:38 +0200 Subject: [PATCH] changes in operation: testing --- rmp220_middleware/rmp220_middleware.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/rmp220_middleware/rmp220_middleware.py b/rmp220_middleware/rmp220_middleware.py index 47b4f49..0b27be1 100644 --- a/rmp220_middleware/rmp220_middleware.py +++ b/rmp220_middleware/rmp220_middleware.py @@ -114,13 +114,11 @@ class StateMachineNode(Node): select_button = msg.buttons[6] # Joystick button 'select' if start_button == 1: - self.state = State.ENABLED self.get_logger().info("State: ENABLED (Button 'start')") self.enable_chassis() if select_button == 1: - self.state = State.PAUSED self.get_logger().info("State: DISABLED (Button 'select')") - self.disable_chassis() + self.pause_chassis() def cmd_vel_callback(self, msg): # This method shall only update the latest_cmd_vel attribute so it can be republished by the timer_callback with 100 HZ. Should have a look at performance though.