Update rmp220_teleop.py

This commit is contained in:
bjoernellens1 2023-08-03 11:47:13 +02:00 committed by GitHub
parent d5758fe47f
commit a3fa9e1eaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,7 +39,7 @@ class TeleopTwistJoy(Node):
def enable_chassis(node):
chassis_enable = node.create_client(RosSetChassisEnableCmd, '/set_chassis_enable')
chassis_enable = node.create_client(RosSetChassisEnableCmd, 'set_chassis_enable')
req = RosSetChassisEnableCmd.Request()
req.ros_set_chassis_enable_cmd = True
while not chassis_enable.wait_for_service(timeout_sec=1.0):
@ -47,7 +47,7 @@ def enable_chassis(node):
chassis_enable.call_async(req)
def disable_chassis(node):
chassis_disable = node.create_client(RosSetChassisEnableCmd, '/set_chassis_enable')
chassis_disable = node.create_client(RosSetChassisEnableCmd, 'set_chassis_enable')
req = RosSetChassisEnableCmd.Request()
req.ros_set_chassis_enable_cmd = False
while not chassis_disable.wait_for_service(timeout_sec=1.0):