Skip to content

About

WoLF: Whole-body Locomotion Framework for quadruped robots

Topics

Resources

Stars

134 stars

Watchers

9 watching

Forks

Latest commit

 

History

395 Commits

Folders and files

Repository files navigation

WoLF: Whole-body Locomotion Framework for quadruped robots

WoLF logo

WoLF brings whole-body control, locomotion planning and robot descriptions into one framework. This repository provides the installation tools for the work presented in A simple yet effective whole-body locomotion framework for quadruped robots and WoLF: the Whole-body Locomotion Framework for Quadruped Robots. The original project artwork, demonstrations and publication references are retained here alongside the current ROS 2 instructions.

Push recovery Step reflex Model predictive locomotion
Historical WoLF push-recovery demonstration Historical WoLF step-reflex demonstration Historical WoLF MPC demonstration

These are research demonstrations from the project's history. They do not qualify the current ROS 2 deployment, hardware, navigation or arm integration.

Run controller and planner together

WoLF is delivered as a Docker image with compiled ROS 2 code. The image uses Ubuntu 24.04, ROS 2 Jazzy and Gazebo Harmonic. The normal image includes the controller, default/adaptive MPC planner, its pinned numerical dependencies, and the Spot, Go1 and Vision60 descriptions.

With Docker Engine and Buildx available:

git clone https://github.com/graiola/wolf-setup.git
cd wolf-setup
./install.sh
./run_docker.sh --gui -- ros2 launch vision60_description controller.launch.xml

install.sh builds and loads wolf-app:jazzy locally. It delegates to support/build_docker.sh; it does not install ROS or WoLF packages on the host. The build compiles public source inside Docker. There is no separate WoLF Debian package distribution, binary archive download or package compilation at container startup. These commands do not assume that a prebuilt registry image is already published. Image builds and robot qualification are separate gates.

The description-owned launch starts controller and planner together. Use spot_description or go1_description for the other supported robots. All three live in wolf_descriptions and use controller.launch.xml. Planner autostart means guarded MPC adoption after an explicit operator stand-up; image preparation and launch do not request stand-up or motion. planner_type:=adaptive selects the adaptive planner.

The entrypoint loads /opt/wolf_ws/install/setup.bash and executes the command literally. Starting the image without a command opens Bash; it does not launch a robot. One normal setup chain loads the ROS underlay, workspace and numerical runtime. No external OCS2 workspace or ANYbotics terrain workspace is required.

What the compiled image contains

Installed location Contents
/opt/wolf_ws/install Compiled controller/planner, robot and sensor assets, ROS launch/configuration, installed numerical headers
/opt/wolf_ws/numerical Matching Pinocchio/HPP-FCL libraries, headers and numerical build receipts
/usr/share/wolf/source-revisions.json Actual WoLF HEAD, recursive gitlink status and a digest of the setup build context
/usr/share/wolf/licenses Original component and third-party license notices

A separate builder stage owns source checkouts, colcon build/log directories and numerical source/build caches. Those directories are not copied into the runtime image. Fixed install prefixes preserve ament hooks and library paths; moving a binary prefix to a different toolchain or location requires a rebuild.

The planner still generates numerical model derivatives on first use. The runtime deliberately retains C/C++ compilers, standard headers and installed CppAD/CppADCodeGen headers for that operation. WoLF packages are precompiled; this numerical model generation is distinct from building ROS packages. A new model or incompatible model cache can require generation again.

The runner removes its container on exit, including its default model cache. To retain generated models between runs, use the existing workspace mount:

mkdir -p "$HOME/wolf-runtime"
./run_docker.sh --workspace "$HOME/wolf-runtime" --gui -- \
  env XDG_CACHE_HOME=/workspace/.cache \
  ros2 launch vision60_description controller.launch.xml

Keep this runtime cache local to the same runtime machine and ABI. It is separate from the dependency source cache used for offline image builds below.

The final image build runs support/verify_runtime.sh in a fresh environment. It checks the installed controller plugin, planner executable, numerical headers, compiler probes and ELF dependency closure after loading normal setup. It does not launch a robot or qualify simulation, navigation or hardware behavior.

Build inputs and image publishing

./install.sh --dry-run
./install.sh --branch master
./install.sh --source /absolute/path/to/wolf --tag registry.example.com/team/wolf

--branch selects a public branch or tag when cloning the coordinated WoLF repository; each child is taken from its recorded gitlink. A moving branch is resolved at build time. For a release, use --source with a clean standalone clone checked out at a reviewed commit and all recursive submodules at their exact pins. An external Git worktree is not a self-contained image input. Dirty checkouts and unsynchronized submodules are rejected before Docker starts. Source and dependency contexts are mounted read-only, copied into the builder, and never rewritten on the host.

The descriptive metadata records the actual built HEAD and gitlinks, not the requested branch name. Its setup digest covers the copied setup context, so it also identifies local setup edits. It is not a second source manifest: wolf/.gitmodules and the selected repository's gitlinks remain authoritative. The ROS base image is pinned by digest in dockerfiles/base/Dockerfile; Ubuntu and ROS apt package versions are resolved when the dependency images are built. Rebuilding a source commit alone is therefore not a byte-for-byte image guarantee. Retain and deploy the qualified image by its immutable registry digest.

The build internals are wolf-runtime:jazzy (runtime dependencies) and wolf-base:jazzy (extra build/test dependencies and cached rosdep metadata). The upstream ROS base can itself include development tools; the delivery boundary is the compiled install prefixes, with no WoLF source/build trees or startup build. --image base builds both dependency targets; --image app reuses them to build the compiled application. The default builds all three in dependency order. Every build explicitly selects --builder default, Docker's context-bound docker driver, so the application can resolve the dependency tags in the same daemon's image store. This does not change the globally selected builder. Isolated container/remote BuildKit drivers are outside this local image workflow. --image app checks that both dependency images exist before starting the build. --tag PREFIX changes the common image prefix. No build pushes an image unless --push is explicitly supplied. To publish only an already qualified app image, use the normal docker tag and docker push commands for your registry, then pass its digest to run_docker.sh --image.

For an explicitly smaller controller build:

./install.sh --controller-only --tag wolf-controller
./run_docker.sh --image wolf-controller-app:jazzy --gui -- \
  ros2 launch vision60_description controller.launch.xml launch_planner:=false

This selects a controller-only application image. The dependency images still share the normal toolchain. The runtime opt-out launch_planner:=false is required when the planner is absent. Older --with-planner/--fetch-solver-deps switches remain accepted aliases for build automation; paired builds are already the default and conflicting mode requests are rejected.

Offline image builds

Prepare both dependency images, a clean complete WoLF clone and the numerical source cache on a connected build machine first. Transfer the images using docker save/docker load when changing machines. Keep the matching architecture, ROS base and dependency versions. The target Docker builder must be able to use these local images; no registry pull is a substitute for missing offline inputs.

./install.sh --image base
# After transferring/preparing the exact source graph and dependency cache:
./install.sh --offline \
  --source /absolute/path/to/wolf \
  --dependency-cache /absolute/path/to/dependency-cache

Offline mode builds the app only, checks that both local dependency images exist, and disables networking in build steps. It checks cached rosdep requirements without apt installation or rosdep updates. Missing prerequisites are errors. --offline rejects --push; publish a qualified image separately when connected. A controller-only offline image does not require the numerical cache.

Transfer dependency source checkouts with their Git metadata and initialized pinned submodules, not host-specific build products:

Cache path Contents
numerical/sources/hpp-fcl Pinned HPP-FCL checkout and its cmake submodule
numerical/sources/pinocchio Pinned Pinocchio checkout and its cmake submodule
qp/wolf_blasfeo-src Planner-pinned BLASFEO checkout
qp/wolf_hpipm-src Planner-pinned HPIPM checkout

The source cache can come from the planner owner's numerical installer and a prior paired build. The image copies only these source directories and compiles them against its own toolchain. The dependency image does not contain this cache. QP caches are checked against the planner's own immutable CMake declarations; setup does not maintain a second revision list. Offline CMake uses FETCHCONTENT_FULLY_DISCONNECTED=ON, and the numerical installer runs without --fetch. The installed numerical receipt records revisions, patches, configuration and library closure.

Running and development

The runner uses host DDS networking and IPC without privileged device access. --gui forwards an existing X11 display and its Xauthority file when provided; it does not disable display access controls. --gpu explicitly requests already configured NVIDIA container access. --workspace /absolute/path mounts a development directory at /workspace. Commands after -- retain their exact argument boundaries. The optional support/install_docker.sh installs Ubuntu's Docker, Buildx and Compose packages; it does not change drivers or group policy.

The low-level support/build_workspace.sh remains the single source compiler used by the image builder and developer/test containers. It selects the same controller/planner closure, reuses the planner-owned numerical installer, and accepts --test, --offline, --numerical-prefix and --dependency-cache. Build and test an already prepared workspace inside a builder container; these helpers are not a host installation or deployment workflow. Tests are compiled and run when --test is selected, while ordinary image builds disable package test targets. support/build_planner_ros2.sh is a compatibility wrapper around this same build owner.

Packages and adding a robot

Repository Responsibility
wolf Coordinated source revisions
wolf-setup Compiled Docker image preparation and run tools
wolf_descriptions Public robot/sensor models and ROS 2 launch integration
wolf_controller ROS 2 controller plugin and command interfaces
wolf_controller_core Controller lifecycle and locomotion state machine
wolf_controller_utils Shared controller utilities
wolf_wbid Whole-body inverse dynamics
wolf_estimation State estimation
wolf_msgs ROS 2 messages and services
wolf_planner Default/adaptive MPC and its numerical implementation

Start with the description-owned model, contact/joint mappings and controller configuration when adding a robot. A managed Tactix workspace uses its existing source manifests and build tools; do not import a second controller/planner graph. Vision60 follows the same description layout as Spot and Go1 and reuses sensors_description, wolf_description_utils and the controller-owned bringup. Robot geometry, mounts and controller parameters live in its description package; MPC tuning lives in the wolf_planner package's config/robots/vision60 directory. There is no separate Vision60 repository or custom launch/export package to install. Tactix's Nav2 provider consumes the coordinated WoLF checkout and retains command authority. Arm payload integration is future work.

Publications, citation and acknowledgments

The framework's original papers credit Gennaro Raiola, Enrico Mingo Hoffman, Michele Focchi, Nikos Tsagarakis and Claudio Semini. The bibliographic entries below are retained from this repository's original README. Please cite the relevant publications when using WoLF in research:

@article{raiola2020simple,
  title={A simple yet effective whole-body locomotion framework for quadruped robots},
  author={Raiola, Gennaro and Mingo Hoffman, Enrico and Focchi, Michele and Tsagarakis, Nikos and Semini, Claudio},
  journal={Frontiers in Robotics and AI},
  volume={7},
  pages={159},
  year={2020},
  publisher={Frontiers}
}

@article{raiola2022wolf,
  title={WoLF: the Whole-body Locomotion Framework for Quadruped Robots},
  author={Raiola, Gennaro and Focchi, Michele and Hoffman, Enrico Mingo},
  journal={arXiv preprint arXiv:2205.06526},
  year={2022}
}

The logo and research animations are the original files from this repository. wolf-setup uses the MIT license; each component and retained third-party dependency keeps its own license and attribution. Historical research demonstrations are preserved without reinstating retired runtime features. See the changelog for the project's history.

Validation

python3 -m pytest tests

Run the suite in a development environment with pytest, CMake and C/C++ compilers available; the builder dependencies provide the native tools.

Setup tests cover image defaults, offline/cache behavior, literal argument/path handling, exact source selection, installed-loader success/rejection cases and preservation of existing work. Native compiler/loader fixtures exercise the shared verifier without claiming that a Docker image was built. Native source, image, simulator and hardware acceptance remain separate gates. The maintained graph excludes legacy navigation projects, wheeled controllers, Husky and the old runtime GUI/logger. Current source and native validation boundaries belong to the controller/planner repositories. The supported simulator pairing follows Gazebo's ROS installation documentation.

About

WoLF: Whole-body Locomotion Framework for quadruped robots

Topics

Resources

Stars

134 stars

Watchers

9 watching

Forks

Releases

Packages

Contributors

Languages