• Stars
    star
    129
  • Rank 279,262 (Top 6 %)
  • Language
    C++
  • Created over 4 years ago
  • Updated almost 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Code for "Perceptive Model Predictive Control for Continuous Mobile Manipulation"

Perceptive Model Predictive Control for Continuous Mobile Manipulation

This repository contains the source code for our work on perceptive model predictive control. Please find the full text of the paper here.

J. Pankert and M. Hutter, “Perceptive Model Predictive Control for Continuous Mobile Manipulation,” IEEE Robotics and Automation Letters, vol. 5, no. 4, pp. 6177–6184, Oct. 2020.

@article{pankertPerceptiveModelPredictive2020a,
  title = {Perceptive {{Model Predictive Control}} for {{Continuous Mobile Manipulation}}},
  author = {Pankert, Johannes and Hutter, Marco},
  year = {2020},
  month = oct,
  volume = {5},
  pages = {6177--6184},
  issn = {2377-3766},
  doi = {10.1109/LRA.2020.3010721},
  journal = {IEEE Robotics and Automation Letters},
  number = {4}
}

Videos of our hardware experiments can be seen here.

Installation

The software has been tested with Ros Melodic under Ubuntu 18.04.

Create a new catkin workspace, configure it to build in release, download all dependencies with wstool and build perceptive_mpc.

sudo apt install python-catkin-tools libglpk-dev python-wstool -y
source /opt/ros/melodic/setup.bash
mkdir perceptive_mpc_ws
cd perceptive_mpc_ws
mkdir src
catkin init
catkin config --extend /opt/ros/melodic --cmake-args -DCMAKE_BUILD_TYPE=Release
cd src
git clone https://github.com/leggedrobotics/perceptive_mpc.git
wstool init . ./perceptive_mpc/perceptive_mpc_https.rosinstall
catkin build perceptive_mpc

Alternatively, you can also create a docker image by running:

docker image build -t perceptive_mpc:v0.3 .

or pull the image from dockerhub:

docker pull rslethz/perceptive_mpc

Demos

Motion Planning

The easiest way to test the software is to use the provided launchfiles in the perceptive_mpc package.

roslaunch perceptive_mpc demo.launch:

This will launch a kinematic simulation of the motion planner. The computed optimal state is set as the observation of the MPC. An end-effector target can be set with an interactive marker in RVIZ.

If you use the docker image, run the following commands instead:

xhost local:root
docker container run -it --rm --name mpc_demo \
 -e DISPLAY=$DISPLAY \
 -v /tmp/.X11-unix:/tmp/.X11-unix \
 --device /dev/dri \
 perceptive_mpc:v0.3 ./src/perceptive_mpc/scripts/run_demo.sh

Collision Avoidance

roslaunch perceptive_mpc collision_avoidance_demo.launch:

Launches the MPC controller with collision avoidance. Call the following service to load a Euclidian Signed Distance Field (ESDF) map:

rosservice call /voxblox_node/load_map "file_path: '/path/to/esdf/map.esdf'"

An demo map example_map.esdf is contained in the example directory.

If you use the docker image, run the following commands instead:

xhost local:root
docker container run -it --rm --name collision_avoidance_demo \
 -e DISPLAY=$DISPLAY \
 -v /tmp/.X11-unix:/tmp/.X11-unix \
 --device /dev/dri \
 perceptive_mpc:v0.3 ./src/perceptive_mpc/scripts/run_demo_collision_avoidance.sh

After everything started, load a map by running:

docker exec collision_avoidance_demo ./src/perceptive_mpc/scripts/load_map.sh

Mechanical Stability

The ZMP mechanical stability constraint is active by default. The radius of the support circle (circle inscribing the support polygon) can be set in the task.info configuration file. In the kinematic simulation, the external wrench is set to a default value specified in the kinematic_simulation_parameters.yaml file. The wrench is specified in end-effector reference frame. By sending a WrenchPoseTrajectory message, a time varying wrench can be specified. The wrenches in this message are again specified in the desired end-effector reference frame. The end-effector references themselves need to be specified in world frame.

Robot integration

The software can easily be integrated with a mobile manipulator platform. The configuration can be copied from perceptive_mpc/example/KinematicSimulation.cpp. The tracker thread is the main control loop. The current state estimate has to be set as the system observation. The optimal control inputs can be forwarded to the motor controllers.

The admittance control module can only be tested on hardware or in a physics based simulation. The source code of KinematicSimulation.[h|cpp] contains hints on how to interface with the module.

In order to use your custom manipulator, derive from the KinematicsInterface class and override the purely virtual methods for forward kinematics computation. We provide kinematic implementations for some popular robots:

  • Mabi Speedy 12
  • UR10
  • UR5
  • UR3

The kinematics code was generated with RobCoGen v0.4ad.0. Robcogen requires robot descriptions in the .kindsl/.dtdsl format. The urdf2robcogen tool converts to this format from .urdf files.

License

BSD-3-Clause Copyright (c) 2020 Johannes Pankert [email protected] All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither the name of this work nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

More Repositories

1

darknet_ros

YOLO ROS: Real-Time Object Detection for ROS
C++
2,158
star
2

ros_best_practices

Best practices, conventions, and tricks for ROS
C++
1,477
star
3

legged_gym

Isaac Gym Environments for Legged Robots
Python
1,188
star
4

ocs2

Optimal Control for Switched Systems
C++
802
star
5

elevation_mapping_cupy

Elevation Mapping on GPU.
Python
508
star
6

open3d_slam

Pointcloud-based graph SLAM written in C++ using open3D library.
C++
503
star
7

rsl_rl

Fast and simple implementation of RL algorithms, designed to run fully on GPU.
Python
487
star
8

se2_navigation

Pure Pursuit Control and SE(2) Planning
C++
439
star
9

free_gait

An Architecture for the Versatile Control of Legged Robots
C++
397
star
10

traversability_estimation

Traversability mapping for mobile rough terrain navigation
C++
352
star
11

raisimLib

RAISIM, A PHYSICS ENGINE FOR ROBOTICS AND AI RESEARCH
325
star
12

xpp

Visualization of Motions for Legged Robots in ros-rviz
C++
293
star
13

graph_msf

A graph-based multi-sensor fusion framework. It can be used to fuse various relative or absolute measurments with IMU readings in real-time.
C++
259
star
14

icp_localization

This package provides localization in a pre-built map using ICP and odometry (or the IMU measurements).
C++
258
star
15

viplanner

ViPlanner: Visual Semantic Imperative Learning for Local Navigation
Python
236
star
16

delora

Self-supervised Deep LiDAR Odometry for Robotic Applications
Python
232
star
17

iPlanner

iPlanner: Imperative Path Planning. An end-to-end learning planning framework using a novel unsupervised imperative learning approach
Python
200
star
18

SimBenchmark

Physics engine benchmark for robotics applications: RaiSim vs Bullet vs ODE vs MuJoCo vs DartSim
C++
193
star
19

learning_quadrupedal_locomotion_over_challenging_terrain_supplementary

Supplementary materials for "Learning Locomotion over Challenging Terrain"
C++
173
star
20

raisimGym

Python
141
star
21

art_planner

Local Navigation Planner for Legged Robots
C++
132
star
22

wild_visual_navigation

Wild Visual Navigation: A system for fast traversability learning via pre-trained models and online self-supervision
Python
126
star
23

tensorflow-cpp

Pre-built TensorFlow for C/C++ and CMake.
Shell
114
star
24

terrain-generator

Python
108
star
25

vitruvio

Vitruvio is a framework for rapid leg design analysis and optimization for legged robots. The purpose of the simulation framework is to guide the early stages of legged robot design. The end effectors track an input trajectory and the necessary joint speed, torque, power and energy for the tracking is computed.
MATLAB
88
star
26

L3E

Learning-based localizability estimation for robust LiDAR localization.
87
star
27

elmo_ethercat_sdk

C++
80
star
28

MPC-Net

Accompanying code for the publication "MPC-Net: A First Principles Guided Policy Search"
Python
79
star
29

tree_detection

This package implements a simple tree detector from point cloud data. It makes no assumptions about the ground plane and can handle arbitrary terrains.
C++
69
star
30

rayen

Imposition of Hard Convex Constraints on Neural Networks
Python
68
star
31

raisimOgre

https://rsl.ethz.ch/partnership/spinoff/raisim.html
67
star
32

smug_planner

C++
59
star
33

noesis

A Reinforcement Learning Software Toolbox for Robotics
C++
53
star
34

RSLGym

Reinforcement learning framework from RSL for policy training with RaiSim.
Python
48
star
35

hardware_time_sync

Guidelines on how to hardware synchronize the time of multiple sensors, e.g., IMU, cameras, etc.
46
star
36

anomaly_navigation

Anomaly Navigation - ANNA
Python
41
star
37

cerberus_darpa_subt_datasets

Datasets collected by Team CERBERUS during the DARPA Subterranean Challenge
39
star
38

RaiSimUnity

A visualizer for RaiSim based on Unity
31
star
39

raw_image_pipeline

Image processing pipeline for cameras that provide raw data
C++
31
star
40

soem_interface

This software package serves as a C++ interface for one or more EtherCAT devices running on the same bus. The lower level EtherCAT communication is handled by the SOEM library.
C
28
star
41

tcan

A library to communicate to devices connected through CAN, EtherCat, USB or TCP/IP.
C++
28
star
42

swerve_steering

C++
26
star
43

workflows

Collection of workflows, best-practices and guidelines for software development.
Python
26
star
44

radiance_field_ros

Implementation of Radiance Fields for Robotic Teleoperation
Python
25
star
45

terra

A grid world environment for high-level earthworks planning in JAX for RL.
Python
22
star
46

urdf2robcogen

A tool that translates a robot URDF description into the kindsl format that can be processed by RobCoGen.
C++
21
star
47

maxon_epos_ethercat_sdk

Implementation of an ethercat device driver for the maxon epos 4
C++
18
star
48

self_supervised_segmentation

Python
17
star
49

ocs2_robotic_assets

Various robotic assets for OCS2 Toolbox
CMake
17
star
50

cerberus_anymal_locomotion

C++
16
star
51

cuda_ue4_linux

C++
15
star
52

ethercat_sdk_master

A wrapper around SOEM to allow multiple masters and devices on EtherCAT
C++
14
star
53

ethercat_device_configurator

Manages setup yaml files for the RSL ethercat infrastructure
C++
14
star
54

lunar_planner

Python
14
star
55

pytictac

Simple Timing Utils
Python
13
star
56

catkin_create_rqt

An RQT plugin generator script, supporting several arguments to generate a rqt plugin for ROS, similar to catkin_create_pkg
Python
12
star
57

rl-blindloco

Project page for Science Robotics paper "Learning Quadrupedal Locomotion over Challenging Terrain"
HTML
11
star
58

learning_docker

Shell
9
star
59

any_ping_indicator

An Ubuntu indicator applet to show the ping status.
Python
8
star
60

plr-exercise

Python
7
star
61

terra-baselines

Train, visualize, and evaluate RL policies for the Terra environment.
Python
7
star
62

rsl_heap

CMake
7
star
63

anymal_brax

Python
7
star
64

perfectlyconstrained

Official implementations from the paper "Should We Relax a Bit? A Study on Degeneracy Mitigation in Point Cloud Registration"
7
star
65

unity_ros_teleoperation

C#
6
star
66

gtsam_catkin

Catkinized version of gtsam.
CMake
4
star
67

digbench

Benchmarks and map generation for the Terra environment.
Python
4
star
68

mobile_manipulation

Under construction
3
star
69

realsense_eth_robotics_summer_school_2019

Launch files and utility nodes for running the Realsense on SMB
CMake
2
star
70

xpp-release

Release repository of the xpp repo, necessary for ros hosting.
1
star
71

rsl_panoptic_mapping

C++
1
star
72

rsl_panoptic

Python
1
star
73

pretrained_depth_embedders

Python
1
star
74

darknet_ros-release

1
star
75

webapp-container

Scripts and tools to containerize a PHP-FPM, Nginx, Redis web-application ⚙️
Dockerfile
1
star