changes in operation: testing

This commit is contained in:
Björn Ellensohn 2023-08-22 10:21:15 +02:00
parent 6aa2e7a101
commit 1f2f0d7bf9

View File

@ -142,7 +142,7 @@ class StateMachineNode(Node):
self.timeout -= 0.01
self.cmd_vel_pub.publish(self.latest_cmd_vel)
#if self.state == State.PAUSED and (self.abs_x > 0.1 or self.abs_z > 0.1): # This is a hack to enable the chassis when receiving commands e.g. from Nav2
if self.state == State.PAUSED and (self.abs_x > 0.1 or self.abs_z > 0.1): # This is a hack to enable the chassis when receiving commands e.g. from Nav2
if self.state == State.DISABLED and (self.abs_x > 0.1 or self.abs_z > 0.1): # This is a hack to enable the chassis when receiving commands e.g. from Nav2
self.state = State.ENABLED
self.get_logger().info("State: ENABLED (cmd_vel)")
self.enable_chassis()