makeecat / Peng

A minimal quadrotor pipeline in Rust (Mac, Linux, Windows)

Home Page:https://makeecat.github.io/Peng/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Peng

GitHub last commit License Docs CI

What is Peng

Peng is a minimal Rust-based quadrotor simulation pipeline. It includes a simulator, controller, and planner, providing a basic framework for simulating quadrotor dynamics and control. demo

Getting Started

terminal 1

cargo install rerun-cli
rerun --version # ensure the version is later than 0.18.0
rerun

terminal 2

cargo run --release

Please follow rerun troubleshooting if you are using Linux or WSL2.

Overview

Quadrotor Simulator

Simulates realistic quadrotor dynamics with properties like position, velocity, orientation, angular velocity, mass, and inertia. Includes methods for updating dynamics with control inputs and simulating IMU readings.

PID Controller

Controls position and attitude with configurable gains for proportional, integral, and derivative terms. Handles both position and attitude control.

Trajectory Planners

Includes multiple planners:

  • Hover Planner
  • Minimum Jerk Line Planner
  • Lissajous Curve Planner
  • Circular Trajectory Planner
  • Landing Planner
  • Obstacle Avoidance Planner

Obstacle Simulation

Simulates moving obstacles in the environment, with collision detection and avoidance capabilities based on potential field.

Data Logging and Visualization

Logs comprehensive simulation data including quadrotor state, desired positions, IMU readings, and depth map rendering. Visualizes the simulation using the rerun library.

Features

  • Realistic quadrotor dynamics simulation
  • IMU sensor simulation with configurable noise parameters
  • Multiple trajectory planners for diverse flight patterns
  • PID controller for position and attitude control
  • Obstacle generation and avoidance
  • Depth map rendering based on primitives
  • Integration with rerun for real-time visualization

TODO

  • Environment Effect simulation such as wind field
  • Complete differential flatness based planner
  • Add motor speed simulation
  • MPC controller
  • Advanced obstacle avoidance planner such as RRT*
  • Dynamic Maze generation
  • Modularize the pipeline

License

Peng is free, open source and permissively licensed! Except where noted (below and/or in individual files), all code in this repository is dual-licensed under either:

This means you can select the license you prefer!

Why call it Peng?

Peng (traditional Chinese: 鵬; simplified Chinese: 鹏; pinyin: péng; Wade–Giles: p'eng) or Dapeng (大鵬) is a giant bird that transforms from a Kun (鯤; 鲲; kūn; k'un) giant fish in Chinese mythology.

The pipeline is designed to be minimal and for educational purpose. We chose the name Peng because our pipeline is flexible and can transform to suit different needs, just like the mythical bird.

Reference: https://en.wikipedia.org/wiki/Peng_(mythology)

About

A minimal quadrotor pipeline in Rust (Mac, Linux, Windows)

https://makeecat.github.io/Peng/

License:Apache License 2.0


Languages

Language:Rust 100.0%