BFM Toolchain Docs
Full-Body Teleoperation System

Environment Setup

Device preparation, Python/GMR environment, and code compilation for HEFT full-body teleoperation.

PICO and Xsens are two motion-capture device options, and they share the same robot-side code environment. This page is based on the Roban HEFT Full-Body Teleoperation Deployment Manual; for device calibration and startup, see PICO Teleoperation and Xsens Teleoperation respectively.

1. Prepare the Devices

OptionRequired materials
PICOOne headset, one pair of controllers, and one pair of foot straps; a network cable of 5 m or longer, a Beitong gamepad, a power bank, an Ethernet-to-USB-C dock, and a USB-to-Ethernet adapter
XsensOne host PC and one motion-capture suit; the wired option requires two network cables of 5 m or longer; the self-organizing network option requires two "master + slave" module sets and four short network cables

Follow the manual: use a wired connection and keep the device continuously powered, so as not to affect the quality of the raw motion data. Turn off PICO Wi-Fi during teleoperation. For Xsens connection requirements, see its operation page.

2. Prepare Python 3.10

The GMR online retargeting environment on the robot requires Python 3.10. If a working environment already exists, check it first with python3.10 --version; there is no need to reinstall.

Not installed yet: build Python 3.10.14 per the manual

The following steps are performed on the robot; skip sudo su if you are already root.

sudo su
apt-get update
apt-get install -y build-essential libssl-dev zlib1g-dev \
  libncurses5-dev libncursesw5-dev libreadline-dev libsqlite3-dev \
  libgdbm-dev libdb5.3-dev libbz2-dev libexpat1-dev \
  liblzma-dev tk-dev libffi-dev wget

cd /usr/src
wget https://www.python.org/ftp/python/3.10.14/Python-3.10.14.tgz
tar -xzf Python-3.10.14.tgz
cd Python-3.10.14
./configure --enable-optimizations --prefix=/opt/python3.10
make -j"$(nproc)"
make altinstall
export PATH=/opt/python3.10/bin:$PATH
python3.10 --version

The PATH setting applies only to the current shell; after opening a new terminal or switching users, verify that python3.10 can still be found.

3. Get the Code and Configure GMR

The manual specifies OpenLET/Lejulab_ARM, branch beta, version 9a064cab36ea026db4696a9c75221dbf75fd1e4c. This is the version the manual corresponds to and does not represent the repository's current latest version.

git clone --branch beta https://atomgit.com/OpenLET/Lejulab_ARM.git
cd Lejulab_ARM
git rev-parse HEAD

Verify the commit against the manual version before continuing; beta may have advanced, so checking out that branch does not pin you to the commit above. The original example uses the internal repository name lejulab_platform; this site consistently uses the public repository entry point above, but we have not verified whether the scripts and versions in the two repositories are fully identical. Before deployment, confirm that the specified commit and the scripts below exist, and run all subsequent commands from the actual repository root.

After switching to root, confirm the Python path, then configure GMR:

sudo su
export PATH=/opt/python3.10/bin:$PATH
python3.10 --version
PICO_GMR_PYTHON=python3.10 bash src/leju_launch/scripts/setup_pico_gmr_env.sh

When using Xsens, add the following on top of the environment above, per the manual:

bash src/leju_launch/scripts/setup_xsens_gmr_env.sh

4. Build and Sync the Teleop Bindings

Run from the repository root; the compiler is gcc-11 / g++-11:

CC=gcc-11 CXX=g++-11 scripts/cmake_configure.sh --fast build_cmake \
  -DCMAKE_BUILD_TYPE=Release
CC=gcc-11 CXX=g++-11 scripts/cmake_build.sh build_cmake
bash scripts/install_teleop_bindings.sh --overwrite

When using a Revo2 dexterous hand, also run:

bash scripts/enable_roban_revo2_hand.sh

When done, go to the corresponding device page for network configuration, calibration, and startup. Motion recording and replay are covered separately in Training-Free Motion Learning.