Legged robots are no longer science projects — they are tools with a price tag and a payback period.

This guide covers “capture and label training data for locomotion” on the Unitree B2. It assumes you have the robot, a development machine and the official SDK.

What you need

  • A Unitree B2 with a charged battery and a safe open area for testing.
  • SDK 2.0 installed (C++/Python) and a ROS 2 workspace if you use it.
  • A host machine on the same network as the robot.
  • The Unitree account and the robot’s serial for licence-linked features.

Step by step

  1. Update firmware and confirm the robot reports healthy telemetry.
  2. Connect from the SDK and read a live state sample to prove the link.
  3. Implement the smallest version of “capture and label training data for locomotion” you can, and log every run.
  4. Add safety limits: speed caps, geofence and an e-stop path.
  5. Test on flat ground, then one harder surface, before any real deployment.
  6. Document the routine so the next operator can repeat it.

Common pitfalls

  • Skipping the flat-ground test and going straight to hard terrain.
  • Forgetting spare batteries for long autonomous schedules.
  • Writing custom gait code before the stock stack is understood.
  • No e-stop or geofence — never skip the safety path.

Next steps

Once the basics work, move the behaviour into simulation (NVIDIA Isaac) to tune it safely, then deploy to the real Unitree B2 with logging turned on.

Frequently asked questions

Do I need ROS 2 for this?
No. The Python SDK is enough for most tasks; ROS 2 helps when you already run a robotics stack.

Can I run it without writing code?
Yes for patrol and mapping via the app; custom “capture and label training data for locomotion” needs the SDK.

Want the hardware to try this on? Unitree B2 Request a quote How to deploy navigation on the B2 on a Unitree Unitree B2 run a custom gait with reinforcement learning with the Unitree A2: developer notes run a custom gait with reinforcement learning with the Unitree G1: developer notes.

Specifications are publicly reported and approximate; exact figures depend on configuration, region and production batch. Confirm the current sheet with your supplier before purchase.