This repository contains the code for the paper:
Model Predictive Contouring Control for Collision Avoidance in Unstructured Dynamic Environments
Bruno Brito,
Boaz Floor,
Laura Ferranti,
Javier Alonso-Mora
Accepted in [RA-L + IROS 2019].
This paper proposed a local planning approach based on Model Predictive Contouring Control (MPCC) to safely navigate a mobile robot in dynamic, unstructured environments. Our local MPCC relies on an upper bound of the Minkowski sum of a circle and an ellipse to safely avoid dynamic obstacles and a set of convex regions in free space to avoid static obstacles. We compared our design with three baseline approaches (classical MPC, Dynamic Window, and CADRL). The experimental results demonstrate that our method outperforms the baselines in static and dynamic environments. Moreover, the light implementation of our design shows the scalability of our method up to six agents and allowed us to run all algorithms on-board. Finally, we showed the applicability of our design to more complex robots by testing the design in simulation using the model of an autonomous car. As future work, we intend to expand our approach for crowded scenarios, by accounting for the interaction effects between the robot and the other agents. Please click in the image to see our video.
If you find this code useful in your research then please cite:
@article{britolmpcc,
title={Model Predictive Contouring Control for Collision Avoidance in Unstructured Dynamic Environments},
author={Bruno Brito, Boaz Floor, Laura Ferranti and Javier Alonso-Mora},
year={2019},
publisher={RA-L - IEEE Robotics and Automation Society}
}
The authors would like to thank Wilko Schwarting for sharing its Matlab implementation of the MPCC controller as described in:
@article{schwarting2017parallel,
title={Parallel autonomy in automated vehicles: Safe motion generation with minimal intervention},
author={Schwarting, Wilko and Alonso-Mora, Javier and Paull, Liam and Karaman, Sertac and Rus, Daniela},
year={2017},
publisher={Institute of Electrical and Electronics Engineers (IEEE)}
}
- ROS installation
- Ubuntu
- Pedestrian Simulator: pedsim_ros: https://github.com/bbrito/pedsim_ros
- Branch: four_persons
This set of instructions were only tested for Ubuntu16 with ROS-Kinetic. Additionally, we assume that you already have a complete ROS installation.
- Please follow the following instructions:
sudo apt-get install ros-kinetic-jackal-control ros-kinetic-jackal-gazebo ros-kinetic-jackal-simulator ros-kinetic-jackal-description ros-kinetic-jackal-desktop ros-kinetic-jackal-navigation ros-kinetic-jackal-viz
sudo apt install ros-kinetic-people-msgs
cd [workspace]/src
git clone https://github.com/bbrito/pedsim_ros.git -b four_persons
git clone https://github.com/spencer-project/spencer_messages.git
git clone https://github.com/srl-freiburg/spencer_tracking_rviz_plugin.git
git clone https://github.com/tud-amr/amr-lmpcc.git
cc ../
rosdep install --from-paths src --ignore-src -r -y
catkin_make
source devel/setup.bash
-
Simulation Environment
1. Start Jackal Gazebo Simulation * roslaunch jackal_gazebo jackal_world.launch 2. Start Pedestrian Simulator * roslaunch pedsim_simulator corridor.launch
-
Start lmpcc_obstacle_feed
1. roslaunch lmpcc_obstacle_feed lmpcc_obstacle_feed.launch
*Start lmpcc controller
1. roslaunch lmpcc lmpcc.launch
-
Start rqt_reconfigure
1. rosrun rqt_reconfigure rqt_reconfigure 2. Click on the lmpcc parameters to start the robot motion by press the enable_output button 3. Click on the lmpcc parameters to start planning by pressing the plan button
- If you get the following error:
lmpcc_controller.h:146:63: fatal error: static_collision_avoidance/collision_free_polygon.h: No such file or directory
Try to compile again using catkin_make several times. Sometimes catkin fails to compile the diferent packages in the right order.