mirror of
https://github.com/bjoernellens1/rmp220_teleop.git
synced 2024-11-22 07:53:47 +00:00
update
This commit is contained in:
parent
ef964834fa
commit
40028c5f7e
@ -19,7 +19,7 @@ class TeleopTwistJoy(Node):
|
|||||||
def joy_callback(self, joy_msg):
|
def joy_callback(self, joy_msg):
|
||||||
if joy_msg.buttons[4]: #lb
|
if joy_msg.buttons[4]: #lb
|
||||||
self.limit -= 0.5
|
self.limit -= 0.5
|
||||||
elif joy_msg.buttons[5]: #rb
|
if joy_msg.buttons[5]: #rb
|
||||||
self.limit += 0.5
|
self.limit += 0.5
|
||||||
self.twist.linear.x = self.limit * joy_msg.axes[1]
|
self.twist.linear.x = self.limit * joy_msg.axes[1]
|
||||||
self.twist.angular.z = self.limit * joy_msg.axes[0]
|
self.twist.angular.z = self.limit * joy_msg.axes[0]
|
||||||
|
Loading…
Reference in New Issue
Block a user