mirror of
https://github.com/bjoernellens1/rmp220_middleware.git
synced 2024-11-24 16:45:07 +00:00
works but needs improvement
This commit is contained in:
parent
a4c0f9c0e4
commit
0c99c96aff
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user