mirror of
https://github.com/bjoernellens1/rmp220_teleop.git
synced 2024-11-21 23:43:47 +00:00
update
This commit is contained in:
parent
33a99d98c3
commit
e8ba76ce3a
@ -20,10 +20,10 @@ class TeleopTwistJoy(Node):
|
||||
self.twist.angular.z = 1.0 * joy_msg.axes[0]
|
||||
if joy_msg.buttons[8]:
|
||||
self.enable = True
|
||||
enable_chassis()
|
||||
enable_chassis(self)
|
||||
if joy_msg.buttons[4]:
|
||||
self.enable = False
|
||||
disable_chassis()
|
||||
disable_chassis(self)
|
||||
|
||||
def timer_callback(self):
|
||||
self.cmd_vel_pub.publish(self.twist)
|
||||
|
Loading…
Reference in New Issue
Block a user