Git Product home page Git Product logo

shineyruan / vehicle-routing-ros2 Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 46 KB

Implementation of dynamic vehicle routing (DVR) algorithms in a truely distributed fashion based on ROS 2.

Home Page: https://github.com/lb-robotics/python-vehicle-routing

License: MIT License

CMake 15.56% Python 30.88% C++ 53.56%
dynamic-vehicle-routing-problem vehicle-routing vehicle-routing-problem multi-agent-systems multiagent-systems

vehicle-routing-ros2's Introduction

vehicle-routing-ros2

Implementation of dynamic vehicle routing (DVR) algorithms in a truly distributed fashion based on ROS 2.

For a simplified version, please check out https://github.com/lb-robotics/python-vehicle-routing.

Software Requirements

  • Ubuntu 22.04 LTS (Jammy)
  • ROS 2 Humble

Usage

  1. Create ROS workspace.
mkdir -p ~/dvr_ws/src
  1. Clone this repo into src folder.
cd ~/dvr_ws/src
git clone https://github.com/shineyruan/vehicle-routing-ros2.git
  1. Install dependencies.
cd ~/dvr_ws
source /opt/ros/humble/setup.bash
sudo rosdep init
rosdep update
rosdep install --from-paths src -i -y
  1. Build the workspace. The entire workspace is composed in dvr_launch package.
cd ~/dvr_ws
colcon build --symlink-install --packages-up-to dvr_launch --cmake-args -DCMAKE_EXPORT_COMPILE_COMMANDS=1

Note. For easier Colcon usage, one can make use of the Colcon mixin repository. Simply install the Colcon mixin extension via

sudo apt install python3-colcon-mixin
colcon mixin add default https://raw.githubusercontent.com/colcon/colcon-mixin-repository/master/index.yaml
colcon mixin update default

then we can get rid of the --cmake-args arguments:

colcon build --symlink-install --packages-up-to dvr_launch --mixin compile-commands
  1. Run the demo. number_vehicles controls the number of vehicles generated. (Default is 10)
ros2 launch dvr_launch dvr.launch.py number_vehicles:=10
  1. Try more examples by modifying the parameters in dvr_launch/config!

References

  • F. Bullo, E. Frazzoli, M. Pavone, K. Savla and S. L. Smith, "Dynamic Vehicle Routing for Robotic Systems," in Proceedings of the IEEE, vol. 99, no. 9, pp. 1482-1504, Sept. 2011, doi: 10.1109/JPROC.2011.2158181.
  • M. Pavone, A. Arsie, E. Frazzoli and F. Bullo, "Distributed Algorithms for Environment Partitioning in Mobile Robotic Networks," in IEEE Transactions on Automatic Control, vol. 56, no. 8, pp. 1834-1848, Aug. 2011, doi: 10.1109/TAC.2011.2112410.
  • Vardi, Yehuda, and Cun-Hui Zhang. "The multivariate L1-median and associated data depth." Proceedings of the National Academy of Sciences 97.4 (2000): 1423-1426.

Acknowledgements

vehicle-routing-ros2's People

Contributors

pre-commit-ci[bot] avatar shineyruan avatar

Stargazers

 avatar

Watchers

 avatar  avatar

vehicle-routing-ros2's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.