Browse Source
Initialize ChannelFactory in LocoClientWrapper
using --input-mode=controller, error
main
Yunjai, Lee
4 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
1 deletions
-
teleop/utils/motion_switcher.py
|
|
|
@ -33,6 +33,7 @@ class MotionSwitcher: |
|
|
|
|
|
|
|
class LocoClientWrapper: |
|
|
|
def __init__(self): |
|
|
|
ChannelFactoryInitialize(0) |
|
|
|
self.client = LocoClient() |
|
|
|
self.client.SetTimeout(0.0001) |
|
|
|
self.client.Init() |
|
|
|
@ -51,4 +52,4 @@ if __name__ == '__main__': |
|
|
|
time.sleep(5) |
|
|
|
status, result = ms.Exit_Debug_Mode() |
|
|
|
print("Exit debug mode:", status, result) |
|
|
|
time.sleep(2) |
|
|
|
time.sleep(2) |