mirror of
https://github.com/bjoernellens1/rmp220_teleop.git
synced 2024-11-21 15:33:48 +00:00
Update rmp220_teleop.py
fixup for namespacing
This commit is contained in:
parent
a3fa9e1eaa
commit
43dccba6d2
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user