changed joystick topic
This commit is contained in:
parent
3441dc2812
commit
2cae6005f9
@ -42,7 +42,7 @@ class TwistPublisher(Node):
|
|||||||
Twist, "/diff_cont/cmd_vel_unstamped", 1
|
Twist, "/diff_cont/cmd_vel_unstamped", 1
|
||||||
)
|
)
|
||||||
|
|
||||||
self.publisher_2 = self.create_publisher(Twist, "/cmd_vel", 1)
|
self.publisher_2 = self.create_publisher(Twist, "/cmd_vel_joystick", 1)
|
||||||
|
|
||||||
self.create_subscription(Joy, "/joy", self.joy_callback, 1)
|
self.create_subscription(Joy, "/joy", self.joy_callback, 1)
|
||||||
self.timer = self.create_timer(1 / publish_frequency_hz, self.timer_callback)
|
self.timer = self.create_timer(1 / publish_frequency_hz, self.timer_callback)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user