mirror of
https://github.com/bjoernellens1/rmp220_middleware.git
synced 2024-11-21 23:43:46 +00:00
works but needs improvement
This commit is contained in:
parent
0c99c96aff
commit
998045b794
@ -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