mirror of
https://github.com/bjoernellens1/rmp220_teleop.git
synced 2024-11-25 01:05:07 +00:00
update
This commit is contained in:
parent
184ab19119
commit
1e7748e0af
@ -61,14 +61,6 @@ def main(args=None):
|
||||
teleop_twist_joy = TeleopTwistJoy()
|
||||
enable_chassis(teleop_twist_joy) # Call the function to enable the chassis
|
||||
rclpy.spin(teleop_twist_joy)
|
||||
if joy_msg.buttons[4]: #lb
|
||||
self.limit -= 0.5
|
||||
if self.limit < 0.2:
|
||||
self.limit = 0.2
|
||||
if joy_msg.buttons[5]: #rb
|
||||
self.limit += 0.5
|
||||
if self.limit > 3:
|
||||
self.limit = 3
|
||||
except KeyboardInterrupt:
|
||||
disable_chassis(teleop_twist_joy) # chassis disable for safe close
|
||||
req = RosSetChassisEnableCmd.Request()
|
||||
|
Loading…
Reference in New Issue
Block a user