works but needs improvement

This commit is contained in:
Björn Ellensohn 2023-08-14 13:00:40 +02:00
parent 0c99c96aff
commit 998045b794

View File

@ -94,8 +94,8 @@ class StateMachineNode(Node):
if abs(msg.linear.x) > 0.03 or abs(msg.angular.z) > 0.03: if abs(msg.linear.x) > 0.03 or abs(msg.angular.z) > 0.03:
self.latest_cmd_vel = msg self.latest_cmd_vel = msg
# else: else:
# self.latest_cmd_vel = Twist() self.latest_cmd_vel = Twist()
def timer_callback(self): def timer_callback(self):
#self.cmd_vel_pub.publish(self.twist) #self.cmd_vel_pub.publish(self.twist)