Update rmp220_teleop.py

fixup for namespacing
This commit is contained in:
bjoernellens1 2023-08-03 12:28:35 +02:00 committed by GitHub
parent a3fa9e1eaa
commit 43dccba6d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,7 +9,7 @@ class TeleopTwistJoy(Node):
def __init__(self): def __init__(self):
super().__init__('teleop_twist_joy') super().__init__('teleop_twist_joy')
self.cmd_vel_pub = self.create_publisher(Twist, '/cmd_vel', 10) self.cmd_vel_pub = self.create_publisher(Twist, 'cmd_vel', 10)
self.joy_sub = self.create_subscription(Joy, 'joy', self.joy_callback, 10) self.joy_sub = self.create_subscription(Joy, 'joy', self.joy_callback, 10)
self.timer = self.create_timer(0.01, self.timer_callback) self.timer = self.create_timer(0.01, self.timer_callback)
self.twist = Twist() self.twist = Twist()