Repository including all instructions and tutorials on how to use the legged locomotion library (L3).
THIS README IS STILL A WORK IN PROGRESS. EXPECT TO SEE MORE DETAILS AND TUTORIALS SOON.
This work is a next-generation release based on the previous vigir_footstep_planner. Many details apply to this new L3 framework as well.
The legged locomotion library (l3) is a versatile library for search-based locomotion planning, navigation, and perception of multi-legged robots. The modular architectures use plugins that allow to easily create generic methods achieving high code reusability that can be applied to a wide range of different legged robots. For this reason, the migration of new robot platforms can be done with little effort, as demonstrated by the examples below.
The main features are:
Versatile Multi-Legged Footstep Planner
Modular Terrain Model Generator
Generic Step Controller
Details are available in the following publications accompanied by an introduction video and a short presenetation. Please also consider citing our paper if you use the footstep planner in your research.
Alexander Stumpf, Oskar von Stryk
**"A Universal Footstep Planning Methodology for Continuous Walking in Challenging Terrain"**,
in Proceedings of ICRA 2022,
Bibtex:
@inproceedings{stumpf2022universal,
title={A Universal Footstep Planning Methodology for Continuous Walking in Challenging Terrain Applicable to Different Types of Legged Robots},
author={Stumpf, Alexander and von Stryk, Oskar},
booktitle={2022 International Conference on Robotics and Automation (ICRA)},
pages={10420--10427},
year={2022},
organization={IEEE}
}
L3 is tested under Ubuntu 20.04 and ROS Noetic. Older versions may work but it is not actively maintained.
All source code of the L3 framework is publicly available. Since now, no prebuild packages are available, so the current way is only a source install in your ROS workspace.
L3 comes with an easy-to-use quick-install script. It requires an already setup ROS workspace based on wstool and catkin. Just clone this repository in your workspace. After a re-build and re-sourcing of your workspace, the following commands become available.
roscd
rosrun legged_locomotion_library auto_install.sh
Just build your workspace. After a couple of minutes, your L3 setup should be ready to use.
In the rosinstalls
subfolder, you will find wstool
compatible *.rosinstall
files that contain all the necessary data about the repositories. You can merge these files directly in your workspace using the wstool merge
command.
The basic setup provides already basic examples for a bipedal and quadrupedal setup.
roslaunch l3_footstep_planning footstep_planner_test_bipedal.launch
roslaunch l3_footstep_planning footstep_planner_test_quadrupedal.launch
roslaunch l3_footstep_planning rviz.launch
Drag a goal pose (shortcut 'g') on the grid to start planning.
roscd
rosrun legged_locomotion_library rosinstall.sh thor_mang_example
Just build your workspace. After a couple of minutes, your THORMANG setup should be ready to use.
roslaunch thor_mang_l3_footstep_planning footstep_planner_test.launch
roslaunch thor_mang_l3_footstep_planning rviz.launch
Drag a goal pose (shortcut 'g') on the grid to start planning.
roscd
rosrun legged_locomotion_library rosinstall.sh anymal_c_example
Just build your workspace. After a couple of minutes, your ANYmal setup should be ready to use.
roslaunch anymal_l3_footstep_planning footstep_planner_ball_foot.launch
roslaunch anymal_l3_footstep_planning rviz.launch
Drag a goal pose (shortcut 'g') on the grid to start planning.
Note: The paper also presents the full integration pipeline using the L3 Step Controller, i.e. the robot autonomously running over rough terrain using L3. However, this version requires access to the internal ANYbotics research community repositories. If you are lucky to have access to these repositories, the step controller integration can be migrated to the ANYmal C version on request. Just leave me a message!
Turning in place is quite a challenge for search-based planners as this locomotion pattern involves steps that does not monotonically decrease the total path cost (depression region). To overcome this challenge, the L3 provides state-based adaptive state sampling. In this case, the AnymalTurningStateGenerator
plugin is used by the planner to explicitly generate gait patterns that result in a turning motion in the desired direction.
The l3 framework also consists of a generic 3D world modeling generator that supplies the footstep planner with finding suitable paths and foot contacts in challenging terrain. It uses the same modular plugin approach to enable individual processing pipelines and outputs. This makes this terrain model generator framework also suitable for perception and mapping tasks without using the footstep planner.
Note: All of the above footstep planning examples are configured to optionally run with a 3D terrain model. Therefore, you can always run the terrain model generator in addition to the footstep planner. The footstep planner uses the provided 3D data but assumes a flat world if no data is available.
CUDA support is work in progress.
The terrain model generator pipeline is automatically installed with the standard footstep planning setup. However, a stand-alone installation is also possible:
roscd
rosrun legged_locomotion_library rosinstall.sh terrain_modeling
Just build your workspace. After a couple of minutes, your terrain model generator setup should be ready to use.
This example uses recorded data from a laboratory scenario where a ramp was placed. The data was recorded with the MultiSense SL mounted on an Atlas robot.
Get example pcd files:
rosrun l3_terrain_model_generator download_examples.sh
and run
roslaunch l3_terrain_model_generator terrain_model_generator_pcd.launch
The generator is configured with a local region of interest filter. The center of this filter is the current position of the robot, which can be faked by placing a start pose (shortcut 'p'). As the recorded data is based on a sparse laser scan, it may take some time until a suitable dense world model is available.
The following shows examples using THORMANG3 and ANYmal.
The terrain model generator provides an image to elevation map convertor that interprets grey-scaled images as terrain heights.
roslaunch l3_terrain_model_generator terrain_model_generator_image.launch
Note: Computation of the full model may take a while due to dense single-shot data given as input.
The following shows examples using THORMANG3 and ANYmal.
COMING SOON!