mirror of
https://github.com/bjoernellens1/rmp220_middleware.git
synced 2024-11-25 00:55:06 +00:00
changes in operation: testing
This commit is contained in:
parent
1104c8024c
commit
4df74b50a8
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user