UNITREE SDK2 · HIGH-LEVEL VS LOW-LEVEL · SAFE BRING-UP

Unitree SDK2: High-Level or Low-Level Control?

Most Unitree development incidents start with one wrong assumption: that you can mix the onboard walking controller with your own joint commands. This guide separates the high-level sport/loco clients from low-level rt/lowcmd control, shows which one fits your project, and gives a pre-run safety checklist you can paste into your lab SOP.

Unitree G1 EDU humanoid used for SDK2 high-level and low-level development

Direct Answer: when to use which level

Use the high-level clients when you want the robot to walk, turn or stand while your code only sends velocity or posture goals; use low-level control when your code must own every joint every cycle. High-level control keeps Unitree's onboard locomotion controller in charge, which is the safest path for navigation, perception and interaction projects. Low-level control means you publish LowCmd messages to rt/lowcmd and read rt/lowstate yourself, which is how reinforcement-learning policies and custom whole-body controllers are deployed, but it requires an unlocked EDU-class trim and a deliberate bring-up sequence.

Not sure which Unitree trim exposes the control level you need? Get a written answer in 15 seconds.

Tell us your country, team size and target workload. A GUMA engineer replies in writing within one business day, and we ship genuine Unitree hardware worldwide with 1-on-1 development coaching.

1. Side-by-side: high-level clients vs low-level control

DimensionHigh-level (sport / loco client)Low-level (rt/lowcmd + rt/lowstate)
What your code commandsVelocity, posture and pre-defined motions; the onboard controller handles balance and gaitPer-joint targets, gains and torques every control cycle; you own balance and gait
Who keeps the robot uprightUnitree's onboard locomotion controllerYour controller or policy. A bug can fall the robot within a fraction of a second
Typical useNavigation, perception and conversation front-ends, ROS 2 bridges, trade-show interactionReinforcement-learning deployment, whole-body control research, custom gait and actuator studies
Access you needSDK2 clients on a trim that exposes themAn unlocked EDU-class trim; the standard consumer trims do not expose the low-level interface
Setup effortLow: network discovery and a client callHigh: DDS version pinning, joint-index tables, release of the onboard controller, gain ramps, e-stop plan
Main failure modeCommands rejected or ignored when the wrong mode is activeTwo controllers fighting for the same motors, or a policy exceeding limits

Interface names follow Unitree's public SDK2 repositories; exact service and topic names, message fields and CRC handling differ by robot model and SDK version, so always start from the official example for your model.

2. The safe low-level bring-up sequence, step by step

Unitree G1 EDU suspended on a gantry before the first low-level run
STEP 1 · SUSPEND THE ROBOT

First contact happens on a load-rated gantry

Hang the robot so its feet are clear of the floor, with a hardware e-stop within reach of a second person. Your first commands should never be able to drop 35 kg or more onto a shared lab floor.

Unitree G1 read-only telemetry check on rt/lowstate
STEP 2 · READ BEFORE YOU WRITE

Subscribe to rt/lowstate and audit it first

Confirm joint count, zero offsets, temperatures, IMU sanity and a steady message rate with no gaps. If the read path is unreliable, a write path will be worse; fix discovery and the network interface before sending any command.

Unitree trim with unlocked SDK2 control after releasing the onboard controller
STEP 3 · RELEASE THE ONBOARD CONTROLLER

Never run two controllers on the same motors

Use the official motion-switcher or release service for your model to stop the onboard locomotion controller before publishing LowCmd. If both are active the motors receive conflicting targets, which shows up as jitter, ignored commands or sudden torque.

Unitree G1-Comp low-level controller with gain ramp and torque limits
STEP 4 · RAMP GAINS, LIMIT TORQUE, HOLD A DAMPING EXIT

Start soft and always keep a safe way out

Ramp stiffness from zero over a second or two, clamp targets to joint limits and cap torque for the first runs. Keep a damping-mode exit that runs on SIGINT and on any exception, and send valid, well-formed commands at a steady rate; Unitree's own examples run their control thread at a fixed period, so copy that structure.

3. Pre-run safety checklist you can paste into your SOP

CheckPass criterionWhat it prevents
1. Trim and interface accessWritten confirmation that low-level SDK2 is enabled on the delivered unit (EDU-class trim)Discovering after delivery that the interface is locked
2. Version pinningPython, CycloneDDS and SDK2 versions recorded and identical on every lab machineWorks on one laptop, fails on the next
3. Read-only auditStable rt/lowstate stream, correct joint count, plausible zero offsets and temperaturesCommanding a robot whose state you cannot trust
4. Controller releasedOnboard locomotion controller confirmed stopped before the first LowCmdTwo controllers fighting for the same motors
5. Gantry and e-stopRobot suspended, hardware e-stop within reach, clear perimeterFalls and hand or cover damage on first runs
6. Soft startGains ramped from zero, targets clamped to limits, torque capped for the first sessionsSudden motion from an uninitialised target or a mis-signed joint
7. Exit pathCtrl+C and any exception drive the robot to a damping hold, then close channels cleanlyDropping the robot when a script crashes

Honest engineering boundaries

  • Interface access depends on the trim. The standard G1 and other consumer trims do not expose low-level SDK control; see our G1 variant selection guide before you buy.
  • Model differences are real. Service names, message fields and CRC handling are model- and version-specific. Treat this guide as a method, and follow Unitree's official example for your exact robot.
  • Unitree Go2 scope. Factory Go2 uses a closed WebRTC transport and is not enrolled in GUMA Robots Studio remote SSH fleet management, which targets unlocked G1-EDU fleets.
  • Software never replaces physical safety. A gantry, a hardware e-stop and a clear perimeter are mandatory for low-level bring-up on any trim.

Want a second pair of eyes on your first low-level bring-up? We coach it.

Send your robot model and the controller you plan to run. We will confirm interface access, the safe bring-up sequence and the spares to budget, in writing, before you place the order.

Unitree SDK2 control-level FAQ

Can I mix high-level walking with my own low-level commands?

Not on the same joints at the same time. Release the onboard controller first, then own the motors from your code, or stay on the high-level clients and let Unitree's controller handle balance. Mixing both on the same motors produces conflicting targets.

Do I need low-level control for ROS 2 navigation?

Usually not. Navigation, perception and conversation front-ends normally send velocity goals through the high-level clients and run on the DDS or ROS 2 side. Choose low-level control only when your policy or controller must command joints directly. Read our ROS 2 and CycloneDDS troubleshooting checklist for discovery issues.

Which trims expose low-level control?

EDU-class trims expose the secondary-development interfaces, including high- and low-level control, DDS and ROS 2 compatibility, according to Unitree's public specifications. The standard consumer trims do not. Confirm the delivered configuration in writing before you rely on it.

Can GUMA help with the first low-level bring-up?

Yes. We ship genuine Unitree hardware worldwide and provide English remote onboarding and 1-on-1 development coaching, including JetPack 6 provisioning, CycloneDDS configuration and bring-up planning. Start with a 15-second quote request or message us on WhatsApp.

Related reading: Which Unitree G1 should you buy for development? · CycloneDDS and JetPack 6 hardening · G1 fleet operations and RaaS TCO