Giter VIP home page Giter VIP logo

pso_global_planner's Introduction

PSO Global Path Planner for ROS

PSO_Planner

ubuntu ROS

1. Introduction

This ROS Global Planner Plugin implements the PSO (Particle Swarm Optimization) path planning algorithm. The examples below demonstrate its usage in both static and dynamic environments:

(1) Static Environment:

demo1.gif

(2) Dynamic Environment:

demo2.gif

2. How to Use

(1) Method One: Utilized as a ROS Global Planner Plugin.

You can employ this plugin within the ROS navigation package by configuring the global path planner plugin to pso_planner/globalMotionPlannerROS in the launch file where the 'move_base' node is situated. Additionally, load the parameter configuration file pso_planner.yaml. An example is provided below:

<node pkg="move_base" type="move_base" respawn="false" name="move_base" output="screen">

    <!-- Load other parameter configuration files -->
    ...
    ...
    ...

    <!-- Load PSO Global Planner Parameters -->
    <rosparam file="$(find pso_global_planner)/params/pso_planner.yaml" command="load" />

    <!-- Set Global Path Planner Plugin -->
    <param name="base_global_planner" value="pso_planner/globalMotionPlannerROS" />

    <!-- Set other parameters such as local path planner plugin -->
    ...
    ...
    ...

</node>

(2) Method Two: Employing through the ros_motion_planning library.

In addition to the method described above, which involves using it as an independent ROS global path planner plugin, we also offer an alternative approach. We have integrated the PSO global path planner into the ROS-based motion planning library, ros_motion_planning. You can easily utilize it by setting the 'robot1_global_planner' parameter in the 'user_config.yaml' file of this motion planning library to 'pso'. An example is provided below:

   map: "warehouse"
   world: "warehouse"
   rviz_file: "sim_env.rviz"

   robots_config:
     - robot1_type: "turtlebot3_waffle"
       robot1_global_planner: "pso"      <!-- Set the global path planning algorithm to PSO -->
       robot1_local_planner: "dwa"

       <!-- Set other parameters -->
       ...
       ...
       ...

   plugins:

        <!-- Set other parameters -->
        ...
        ...
        ...
    

The demonstration of the results is as follows:

demo3.gif pso_fitness.png

pso_global_planner's People

Contributors

jzx-my avatar

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.