Skip to content

Conversation

@Jarr0d161
Copy link

Summary

This PR updates unitree_sdk2_python to the current high-level interface defined in the C++ headers shipped with Go2 firmware V 1.1.6 (May 2025).
It adds all new motion-switcher APIs, removes deprecated calls, corrects every numeric ID, and provides a clean demo script.


Motivation

  • The Go2 V 1.1.6 C++ API introduces new AI modes (FreeWalk, HandStand, ClassicWalk, …) and moves three base gaits to a new 106x block.
  • The published Python SDK still targets the pre-1.1.6 interface; users hit NameError / 3203 unknown api on current robots.
  • Updating the SDK ensures that Python control is feature-complete and consistent with the C++ reference.

Changes

Module Key updates
go2/sport/sport_api.py * Rebuilt constant table from sport_api.hpp (IDs 1001-2058).
* Added new V 2.0 IDs 2044‒2058 and aliases for StaticWalk, TrotRun, EconomicGait (1061‒1063).
go2/sport/sport_client.py * Registers every valid ID once.
* Added wrappers: HandStand, ClassicWalk, FreeBound, FreeJump, FreeAvoid, WalkUpright, CrossStep, StaticWalk, TrotRun, AutoRecoverSet/Get, SwitchAvoidMode.
* Removed deprecated WalkStair.
Example go2_sport_client.py * Interactive CLI demo covering all new commands; type list to show IDs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant