Skip to content
KANZEZPublic

About

Mujoco simulation for single/multi mobile robot

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simulation Platform for Single/Multi Agent System

This is a repo for multi agent system simulation built upon MUJOCO. It now has several features:

  1. Single/multi robots
    • Differential-drive Mobile Robot
    • A Scene Generator for generating any number of robot and particles
  2. Sensing
    • Top Down Camera Calibration and Detection
    • Real-time Contour Reconstruction
  3. Control
    • Keyboard Controller
    • PD Controller
    • MPC Controller
  4. Planning
    • A* on 2D GridMap
    • RRTConnect(ompl)
    • kinodynamic RRT(ompl)
  5. Learning
    • Reinforcement Learning

Installation (Ubuntu 22.04):

  1. create your workspace
mkdir ws && cd ws
  1. clone
git clone git@github.com:KANZEZ/m0.git
  1. create your own virtual env
python3 -m venv your_env
  1. in your virtual env, install the packages
pip3 install -e . 
  1. run some examples in m0/examples folder to see if success

  2. if you want to use mpc, please follow the install instruction for acados.

Usage & Demo

Differential-drive Mobile Robot

Differential-drive mobile robot.
State: [x, y, $\theta$]
Control input: [v, w]
Dynamics: [$\dot x$, $\dot y$, $\dot \theta$] = [v $cos\theta$, v $sin\theta$, w] Differential-drive mobile robot

Sensing

A top-down camera is fixed above the playground and can detect the contour of the swarm of particles, and then we use FFT to parametrize and reconstruct the contour.

python3 examples/test_contour_recons.py

sensing contour

Control

  1. PD control:
python3 examples/test_pid.py

pid

  1. MPC:
python3 examples/test_mpc.py

mpc

Planning

  1. Multi-agent mppi

mppi

  1. Geometry Planning(RRTConnect & A* on grid map)
python3 examples/test_astar.py
python3 examples/test_rrtc.py

geoplan

  1. Kinodynamic RRT(consider robot dynamics)
python3 examples/test_kinorrt.py

kinoplan

Learning

  1. RL
python3 examples/test_rl.py

rl

About

Mujoco simulation for single/multi mobile robot

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages