This commit is contained in:
Björn Ellensohn 2023-04-18 11:39:00 +02:00
parent 33a99d98c3
commit e8ba76ce3a

View File

@ -20,10 +20,10 @@ class TeleopTwistJoy(Node):
self.twist.angular.z = 1.0 * joy_msg.axes[0] self.twist.angular.z = 1.0 * joy_msg.axes[0]
if joy_msg.buttons[8]: if joy_msg.buttons[8]:
self.enable = True self.enable = True
enable_chassis() enable_chassis(self)
if joy_msg.buttons[4]: if joy_msg.buttons[4]:
self.enable = False self.enable = False
disable_chassis() disable_chassis(self)
def timer_callback(self): def timer_callback(self):
self.cmd_vel_pub.publish(self.twist) self.cmd_vel_pub.publish(self.twist)