mirror of
https://github.com/bjoernellens1/rmp220_middleware.git
synced 2024-11-21 23:43:46 +00:00
optimize
This commit is contained in:
parent
6242c59ee9
commit
836a02d57c
@ -94,7 +94,7 @@ class StateMachineNode(Node):
|
||||
self.state = State.ENABLED
|
||||
self.get_logger().info("State: ENABLED (cmd_vel)")
|
||||
self.enable_chassis()
|
||||
else:
|
||||
if self.state == State.DISABLED and (self.abs_x < 0.1 and self.abs_z < 0.1):
|
||||
self.cmd_vel_pub.publish(self.twist)
|
||||
|
||||
def main(args=None):
|
||||
|
Loading…
Reference in New Issue
Block a user