-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
undefined topic on unitreego2 air #8
Comments
for move you need additional parameters to be passed (so it needs a custom message). Does the move works using the joysticks? |
hmm, btw based on the image the you did not connect to the robot. can you check from your computer if http://192.168.123.161:8081/ address is accessible ? |
I have tried the go2_joystick.py script, but encountered the error "aiortc.exceptions.InvalidStateError" when trying to move or stand up/stand down. |
I also tried turning off the main control service "sport_mode" from the mobile app, but none of the attempts made the robot move |
OK, something is really odd. In the last image (the mqtt one) you can clearly see incoming messages, so the connection is established. That's a good sign and shows that there is hope :D On the web, can you try to connect with an empty token while you do not use the mobile app (you should close the app on your phone)? Then please share the contents of your dev console - that's where we should see what's wrong |
@kvkcon we are dealing with the same errors. The joystick code throws the Invalid State error. The MQTT code is successful in connecting and receiving data. We tried to change the code slightly - to issue a command from within MQTT (inside on_validate). Commands such as StandUp and StandDown work perfectly (command IDs 1004 and 1005, for example). However, when we tried to execute a movement command (akin to gen_mov_command in go2_joystick.py), that fails. Also, the dog goes into a sitting down position, the front LED turns red, and becomes unresponsive. Attaching the changed code. This was the response in the terminal: |
can you change one thing in your code? Instead of x: 0 and y:0, try x: 0.01 and y: 0.01 to force float types in the parameter? what firmware are you on? I will create another small example just to move the robot and we can test how it works on your end |
Hello, thank you for your excellent work! I attempted to establish a connection on the Go2 Air by following the method outlined in the README to obtain the secure token, and it was successful. However, I encountered errors when trying several commands, such as Move, Dance1, and Sit. The error message is as follows:
Connecting to robot on ip 192.168.123.161...
Offer created
{"type":"offer","sdp":"v=0\r\no=mozilla...THIS_IS_SDPARTA-99.0 8394188148764726281 0 IN IP4 0.0.0.0\r\ns=-\r\nt=0 0\r\na=sendrecv\r\na=fingerprint:sha-256 B2:64:E7:9C:59:5E:1C:C4:EE:44:3E:35:58:BF:52:D3:92:C5:D6:19:2F:DB:E8:90:36:27:3E:5D:8C:18:A6:83\r\na=group:BUNDLE 0 1 2\r\na=ice-options:trickle...
Establishing connection...
WebRTC connection established
<- msg type:undefined topic:rt/api/sport/request data:{"header":{"identity":{"id":846821836,"api_id":1008}},"parameter":"1008"}
Connecting to robot on ip 192.168.123.161...
Offer created
{"type":"offer","sdp":"v=0\r\no=mozilla...THIS_IS_SDPARTA-99.0 8307359442818234896 0 IN IP4 0.0.0.0\r\ns=-\r\nt=0 0\r\na=sendrecv\r\na=fingerprint:sha-256 1E:B7:48:C7:A7:FD:B7:93:BF:37:21:FA:C6:61:F8:83:03:14:83:51:01:90:B2:47:CC:23:58:CC:11:A5:66:44\r\na=group:BUNDLE 0 1 2\r\na=ice-options:trickle...
Establishing connection...
WebRTC connection established
<- msg type:undefined topic:rt/api/sport/request data:{"header":{"identity":{"id":846834977,"api_id":1008}},"parameter":"1008"}
<- msg type:undefined topic:rt/api/sport/request data:{"header":{"identity":{"id":846842190,"api_id":1022}},"parameter":"1022"}
I look forward to your response. Thank you sincerely
The text was updated successfully, but these errors were encountered: