From 998045b7941cb9ccfc3f0502e2885844416a7e32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Ellensohn?= Date: Mon, 14 Aug 2023 13:00:40 +0200 Subject: [PATCH] works but needs improvement --- rmp220_middleware/rmp220_middleware.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rmp220_middleware/rmp220_middleware.py b/rmp220_middleware/rmp220_middleware.py index 8a02353..4857bc1 100644 --- a/rmp220_middleware/rmp220_middleware.py +++ b/rmp220_middleware/rmp220_middleware.py @@ -94,8 +94,8 @@ class StateMachineNode(Node): if abs(msg.linear.x) > 0.03 or abs(msg.angular.z) > 0.03: self.latest_cmd_vel = msg - # else: - # self.latest_cmd_vel = Twist() + else: + self.latest_cmd_vel = Twist() def timer_callback(self): #self.cmd_vel_pub.publish(self.twist)