Giter VIP home page Giter VIP logo

multi_robot_matlibplot_simulation's Introduction

multi_agent_matlibplot_sim

MPC Alt text

PID Alt text

Virtual Structure Formation Control Alt text

matlibplot simulation

How To Run

For PID

python PID_matlibplot.py

For MPC

python MPC_matlibplot.py

To save animation commnet and uncomment

            matplotrecorder.save_frame()    
    matplotrecorder.save_movie("animation.gif", 0.1)

Note: in pd_controller parameters are very sensitive. its depend on system processing speed. very hard to tune. parameter to tune if not working.

For fernet path parameter at top

# Parameter for fernet path
MAX_SPEED = 50.0 / 3.6  # maximum speed [m/s]
MAX_ACCEL = 2.0  # maximum acceleration [m/ss]
MAX_CURVATURE = 1.0  # maximum curvature [1/m]
MAX_ROAD_WIDTH = 10.0  # maximum road width [m]
D_ROAD_W = 1.0  # road width sampling length [m]
DT = 0.2  # time tick [s]
MAX_T = 5.0  # max prediction time [m]
MIN_T = 4.0  # min prediction time [m]
TARGET_SPEED = 30.0 / 3.6  # target speed [m/s]
D_T_S = 5.0 / 3.6  # target speed sampling length [m/s]
N_S_SAMPLE = 1  # sampling number of target speed
ROBOT_RADIUS = 2.5 # robot radius [m]

For pd controller in main():

# Parameter for pd control
gap = 4 #distance between each robot [m]
dt = 0.05
v_ref = 120/3.6
tm.sleep(0.1)
c_speed = 30/3.6

c_speed, dt, v_ref, tmsleep() are mutually depend on each other. Need to be tuned simultaneously

NOTE

Ferenet path planning is trajectory replanning technique.
"shortpath" abbreviation is technique using local short path slice from full global to reduce computation cost.
"shortestgap" have a technque of finding desired waypoint for follower robot at fixed distance from leader, but on the same trajectory.\

multi_robot_matlibplot_simulation's People

Contributors

rishabhdevyadav avatar

Stargazers

Yubin Wang avatar

Watchers

 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.