Skip to content
Proyek

Tentang

100+ robotics algorithms in Rust: planning, localization, SLAM, control, and benchmarks.

Sains dan teknik

Cara angka ini diukur

Pertumbuhan bintang terukur

dalam 24 jam
0
dalam 7 hari
0
dalam 15 hari
+4
dalam 1 bulan
Mengumpulkan riwayat

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

RustRobotics

CI codecov crates.io docs.rs Docs License: MIT

Robotics algorithms in Rust: planning, localization, SLAM, control, and manipulation. Try them in your browser, then use the same library in your own project.

Open the playground · Run locally · Algorithm gallery · API docs

Try in your browser

Edit a map, move a robot, or inspect an algorithm step by step. Pause, replay, and share your experiment. No installation or account required.

Grid planner search replay
Grid planners
Particle filter belief update
Localization
SLAM loop closure comparison
SLAM
Path tracking controller comparison
Controller Arena
Two-link robot arm inverse kinematics
Arm Lab
Manual drone flight beside an autonomous ghost
Flight Lab

Explore all experiments · Playground guide

Flight Lab

Play Flight Lab v1 against an autonomous drone ghost

Flight recording · Course editor · Flight photograph

Quick Start

Clone the repository and launch the native playground:

git clone https://github.com/rsasaki0109/rust_robotics.git
cd rust_robotics
cargo run -p rust_robotics_playground

Rust navigation loop

Run planning, localization, and path tracking together without a GUI:

cargo run -p rust_robotics --example headless_navigation_loop \
  --features "planning,localization,control"
Controller Arena inspecting Pure Pursuit, Stanley, and LQR Steer at the same simulation time

Controller inspector guide

Use As A Library

cargo add rust_robotics --features "planning,localization,control"
use rust_robotics::planning::{AStarConfig, AStarPlanner};
use rust_robotics::localization::{EKFConfig, EKFLocalizer};
use rust_robotics::control::PurePursuitController;

See the Rust guide for workspace crates, more examples, build instructions, and benchmarks.

Embedded / no_std

Core types and Kalman filters support no_std with alloc:

rustup target add thumbv7em-none-eabihf
cargo build -p rust_robotics_core -p rust_robotics_localization \
  --no-default-features --target thumbv7em-none-eabihf

Run the embedded demo with EKF, Pure Pursuit, and PID on Cortex-M under QEMU.

Algorithm gallery

Robotics algorithms in action. Explanations, source, and commands.

RRT tree growth
RRT
Dynamic Window Approach
Dynamic Window Approach
Dijkstra motion planner
Dijkstra
EKF localization
EKF Localization
Particle filter localization
Particle Filter
Pure pursuit path tracking
Pure Pursuit
EKF SLAM
EKF SLAM
FastSLAM 1.0
FastSLAM 1.0
ICP scan matching
ICP Matching
Block-sparse factor graph optimization
Block-sparse Factor Graph Optimization
LiDAR graph SLAM loop closure on a corridor loop
LiDAR Loop Closure (scan-to-map + pose graph)

Regenerate the animations.

Localization

Extended Kalman Filter Localization

Source · Details

Particle Filter Localization

Source · Details

Unscented Kalman Filter Localization

Source · Details

Histogram Filter Localization

Source · Details

Mapping

NDT Map

Source · Details

Gaussian Grid Map

Source · Details

Ray Casting Grid Map

Source · Details

SLAM

Iterative Closest Point (ICP) Matching

Source · Details

Scan-to-Map LiDAR Odometry

Loop Closure (LiDAR Graph SLAM)

Details

FastSLAM 1.0

Source · Details

EKF SLAM

Source · Details

Graph-Based SLAM

Source · Details

Pose Graph Optimization

Pose graph before and after block-sparse optimization

Source · Details

EuRoC / KITTI Dataset Replay

EuRoC IMU, bundle adjustment, and SE3 pose graph pipeline

Details

Path Planning

A* Algorithm

Source · Details

Theta* Algorithm

Source · Details

Jump Point Search (JPS)

Source · Details

Bezier Path Planning

Source · Details

Cubic Spline

Source · Details

Dynamic Window Approach

Source · Details

D* Lite

Source · Details

Dijkstra Algorithm

Source · Details

Informed RRT*

Source · Details

Model Predictive Trajectory Generator

Source · Details

Potential Field Algorithm

Source · Details

Quintic Polynomials

Source · Details

Rapidly-Exploring Random Trees (RRT)

Source · Details

RRT*

Source · Details

Hybrid A*

Hybrid A* parking a car in the playground

Source · Details

Reeds-Shepp Path

Source · Details

PRM (Probabilistic Road-Map)

Source · Details

Voronoi Road-Map

Source · Details

Frenet Optimal Trajectory

Source · Details

State Lattice Planner

Source · Details

Path Tracking

LQR Steer Control

Source · Details

Move to Pose

Source · Details

Pure Pursuit

Source · Details

Stanley Control

Source · Details

Rear Wheel Feedback Control

Source · Details

MPC (Model Predictive Control)

Source · Details

Inverted Pendulum

LQR Control

Source · Details

Arm Navigation

Two Joint Arm Control

Source · Details

Mission Planning

State Machine

Source · Details

Workspace

crates/
├── rust_robotics_core/          — Core types, traits, errors, Lie groups
├── rust_robotics_optimization/  — Factor graphs, robust losses, Gauss-Newton/LM
├── rust_robotics_planning/      — Path planning (A*, DWA, RRT, PRM, etc.)
├── rust_robotics_localization/  — Localization (EKF, UKF, PF, Histogram)
├── rust_robotics_control/       — Control & path tracking (Pure Pursuit, LQR, MPC, etc.)
├── rust_robotics_mapping/       — Mapping (NDT, Gaussian Grid, IMLS)
├── rust_robotics_slam/          — SLAM, pose graphs, IMU, BA, geometric ICP
├── rust_robotics_viz/           — Visualization (gnuplot wrapper)
├── rust_robotics_playground/    — Native and browser playground
└── rust_robotics/               — Umbrella crate (feature-gated re-exports)

ros2_nodes/                     — ROS2 navigation nodes (safe_drive-based)

ROS2 Integration

                    TurtleBot3 Gazebo
                 /scan  /odom  /cmd_vel
                    |      |       ^
                    v      |       |
               +-----------+       |
               | slam_node | ----- +
               +-----------+    /map
                      |
                      v
             +-------------------+
             | path_planner_node | ---> /planned_path
             +-------------------+             |
                ^           ^                  v
                |           |           +--------------+
         /ekf_odom     /goal_pose ---> | dwa_planner |
                ^                      +--------------+
                |
      +----------------------+
      | ekf_localizer_node   |
      +----------------------+
                ^
                |
      +-------------------------+
      | waypoint_navigator_node |
      +-------------------------+

Gazebo demo · Setup and topics

Documentation

Community

Contributions and algorithm requests are welcome. See the security policy and MIT license.

Inspired by PythonRobotics and MathematicalRobotics. Attributions are in THIRD_PARTY_NOTICES.md.

Jelajahi proyek terkait

Memuat…