text
stringlengths
9
39.2M
dir
stringlengths
25
226
lang
stringclasses
163 values
created_date
timestamp[s]
updated_date
timestamp[s]
repo_name
stringclasses
751 values
repo_full_name
stringclasses
752 values
star
int64
1.01k
183k
len_tokens
int64
1
18.5M
```python """ Path tracking simulation with LQR speed and steering control author Atsushi Sakai (@Atsushi_twi) """ import math import sys import matplotlib.pyplot as plt import numpy as np import scipy.linalg as la import pathlib from utils.angle import angle_mod sys.path.append(str(pathlib.Path(__file__).parent.par...
/content/code_sandbox/PathTracking/lqr_speed_steer_control/lqr_speed_steer_control.py
python
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
2,652
```python """ Path tracking simulation with Stanley steering control and PID speed control. author: Atsushi Sakai (@Atsushi_twi) Ref: - [Stanley: The robot that won the DARPA grand challenge](path_to_url - [Autonomous Automobile Path Tracking](path_to_url """ import numpy as np import matplotlib.pyplot as p...
/content/code_sandbox/PathTracking/stanley_controller/stanley_controller.py
python
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
1,607
```python """ Path tracking simulation with rear wheel feedback steering control and PID speed control. author: Atsushi Sakai(@Atsushi_twi) """ import matplotlib.pyplot as plt import math import numpy as np from utils.angle import angle_mod from scipy import interpolate from scipy import optimize Kp = 1.0 # speed...
/content/code_sandbox/PathTracking/rear_wheel_feedback/rear_wheel_feedback.py
python
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
1,978
```python """ Nonlinear MPC simulation with CGMRES author Atsushi Sakai (@Atsushi_twi) Ref: Shunichi09/nonlinear_control: Implementing the nonlinear model predictive control, sliding mode control path_to_url """ from math import cos, sin, radians, atan2 import matplotlib.pyplot as plt import numpy as np U_A_MAX ...
/content/code_sandbox/PathTracking/cgmres_nmpc/cgmres_nmpc.py
python
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
6,475
```restructuredtext How To Contribute ================= This document describes how to contribute this project. Adding a new algorithm example ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ This is a step by step manual to add a new algorithm example. Step 1: Choose an algorithm to implement ---------------------------------------...
/content/code_sandbox/docs/how_to_contribute_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
1,216
```batchfile @ECHO OFF pushd %~dp0 REM Command file for Sphinx documentation if "%SPHINXBUILD%" == "" ( set SPHINXBUILD=sphinx-build ) set SOURCEDIR=. set BUILDDIR=_build set SPHINXPROJ=PythonRobotics if "%1" == "" goto help %SPHINXBUILD% >NUL 2>NUL if errorlevel 9009 ( echo. echo.The 'sphinx-build' command was...
/content/code_sandbox/docs/make.bat
batchfile
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
262
```restructuredtext .. PythonRobotics documentation master file, created by sphinx-quickstart on Sat Sep 15 13:15:55 2018. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. Welcome to PythonRobotics's documentation! ================================...
/content/code_sandbox/docs/index_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
352
```python # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # path_to_url # -- Path setup -------------------------------------------------------------- # If extensions (or modules to document w...
/content/code_sandbox/docs/conf.py
python
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
1,298
```unknown # Minimal makefile for Sphinx documentation # # You can set these variables from the command line. SPHINXOPTS = SPHINXBUILD = sphinx-build SPHINXPROJ = PythonRobotics SOURCEDIR = . BUILDDIR = _build # Put it first so that "make" without argument is like "make help". help: @$(SPHINXBUILD) ...
/content/code_sandbox/docs/Makefile
unknown
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
211
```restructuredtext .. _`getting started`: Getting Started =============== What is this? ------------- This is an Open Source Software (OSS) project: PythonRobotics, which is a Python code collection of robotics algorithms. The focus of the project is on autonomous navigation, and the goal is for beginners in robot...
/content/code_sandbox/docs/getting_started_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
475
```html {% extends "!layout.html" %} {% block sidebartitle %} {{ super() }} <script async src="path_to_url" crossorigin="anonymous"></script> <!-- PythonRoboticsDoc --> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-9612347954373886" data-ad-slot="1579532132" data-ad-for...
/content/code_sandbox/docs/_templates/layout.html
html
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
120
```css /* * Necessary parts from * Sphinx stylesheet -- basic theme * absent from sphinx_rtd_theme * (see path_to_url * Ref path_to_url */ /* -- math display ---------------------------------------------------------- */ span.eqno { float: right; } span.eqno a.headerlink { position: absolute; z-inde...
/content/code_sandbox/docs/_static/custom.css
css
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
92
```restructuredtext Introduction ============ TBD Definition Of Robotics ---------------------- TBD History Of Robotics ---------------------- TBD Application Of Robotics ------------------------ TBD Software for Robotics ---------------------- TBD Software for Robotics ---------------------- TBD Python fo...
/content/code_sandbox/docs/modules/introduction_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
72
```restructuredtext .. _path_planning: Path Planning ============= .. toctree:: :maxdepth: 2 :caption: Contents dynamic_window_approach/dynamic_window_approach bugplanner/bugplanner grid_base_search/grid_base_search model_predictive_trajectory_generator/model_predictive_trajectory_generator stat...
/content/code_sandbox/docs/modules/path_planning/path_planning_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
242
```restructuredtext Bezier path planning -------------------- A sample code of Bezier path planning. It is based on 4 control points Beizer path. .. image:: Figure_1.png If you change the offset distance from start and end point, You can get different Beizer course: .. image:: Figure_2.png Ref: - `Continuous C...
/content/code_sandbox/docs/modules/path_planning/bezier_path/bezier_path_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
93
```restructuredtext State Lattice Planning ---------------------- This script is a path planning code with state lattice planning. This code uses the model predictive trajectory generator to solve boundary problem. Uniform polar sampling ~~~~~~~~~~~~~~~~~~~~~~ .. image:: path_to_url Biased polar sampling ~~~~~~~~...
/content/code_sandbox/docs/modules/path_planning/state_lattice_planner/state_lattice_planner_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
149
```restructuredtext .. _clothoid-path-planning: Clothoid path planning -------------------------- .. image:: path_to_url .. image:: path_to_url .. image:: path_to_url This is a clothoid path planning sample code. This can interpolate two 2D pose (x, y, yaw) with a clothoid path, which its curvature is linearly cont...
/content/code_sandbox/docs/modules/path_planning/clothoid_path/clothoid_path_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
613
```restructuredtext .. _dynamic_window_approach: Dynamic Window Approach ----------------------- This is a 2D navigation sample code with Dynamic Window Approach. - `The Dynamic Window Approach to Collision Avoidance <path_to_url`__ .. image:: path_to_url ```
/content/code_sandbox/docs/modules/path_planning/dynamic_window_approach/dynamic_window_approach_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
54
```restructuredtext Hybrid a star --------------------- This is a simple vehicle model based hybrid A\* path planner. .. image:: path_to_url ```
/content/code_sandbox/docs/modules/path_planning/hybridastar/hybridastar_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
29
```restructuredtext Voronoi Road-Map planning ------------------------- .. image:: path_to_url This Voronoi road-map planner uses Dijkstra method for graph search. In the animation, blue points are Voronoi points, Cyan crosses mean searched points with Dijkstra method, The red line is the final path of Vornoi Road...
/content/code_sandbox/docs/modules/path_planning/vrm_planner/vrm_planner_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
103
```restructuredtext Dubins path planning -------------------- A sample code for Dubins path planning. .. image:: path_to_url Dubins path ~~~~~~~~~~~~ Dubins path is a analytical path planning algorithm for a simple car model. It can generates a shortest path between two 2D poses (x, y, yaw) with maximum curvature c...
/content/code_sandbox/docs/modules/path_planning/dubins_path/dubins_path_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
693
```restructuredtext Optimal Trajectory in a Frenet Frame ------------------------------------ .. image:: path_to_url This is optimal trajectory generation in a Frenet Frame. The cyan line is the target course and black crosses are obstacles. The red line is predicted path. Ref: - `Optimal Trajectory Generation f...
/content/code_sandbox/docs/modules/path_planning/frenet_frame_path/frenet_frame_path_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
109
```restructuredtext B-Spline planning ----------------- .. image:: bspline_path_planning.png This is a B-Spline path planning routines. If you input waypoints, it generates a smooth path with B-Spline curve. This codes provide two types of B-Spline curve generations: 1. Interpolation: generate a curve that passes ...
/content/code_sandbox/docs/modules/path_planning/bspline_path/bspline_path_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
1,250
```restructuredtext .. _eta^3-spline-path-planning: Eta^3 Spline path planning -------------------------- .. image:: path_to_url This is a path planning with Eta^3 spline. Ref: - `\\eta^3-Splines for the Smooth Path Generation of Wheeled Mobile Robots <path_to_url`__ ```
/content/code_sandbox/docs/modules/path_planning/eta3_spline/eta3_spline_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
71
```restructuredtext .. _probabilistic-road-map-(prm)-planning: Probabilistic Road-Map (PRM) planning ------------------------------------- .. image:: path_to_url This PRM planner uses Dijkstra method for graph search. In the animation, blue points are sampled points, Cyan crosses means searched points with Dijkstr...
/content/code_sandbox/docs/modules/path_planning/prm_planner/prm_planner_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
97
```restructuredtext Quintic polynomials planning ---------------------------- Motion planning with quintic polynomials. .. image:: path_to_url It can calculate 2D path, velocity, and acceleration profile based on quintic polynomials. Quintic polynomials for one dimensional robot motion ~~~~~~~~~~~~~~~~~~~~~~~~~~...
/content/code_sandbox/docs/modules/path_planning/quintic_polynomials_planner/quintic_polynomials_planner_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
1,254
```restructuredtext Grid based search ----------------- Breadth First Search ~~~~~~~~~~~~~~~~~~~~ This is a 2D grid based path planning with Breadth first search algorithm. .. image:: path_to_url In the animation, cyan points are searched nodes. Depth First Search ~~~~~~~~~~~~~~~~~~~~ This is a 2D grid based path...
/content/code_sandbox/docs/modules/path_planning/grid_base_search/grid_base_search_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
458
```restructuredtext Coverage path planner --------------------- Grid based sweep ~~~~~~~~~~~~~~~~ This is a 2D grid based sweep coverage path planner simulation: .. image:: path_to_url Spiral Spanning Tree ~~~~~~~~~~~~~~~~~~~~ This is a 2D grid based spiral spanning tree coverage path planner simulation: .. image...
/content/code_sandbox/docs/modules/path_planning/coverage_path/coverage_path_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
176
```restructuredtext Visibility Road-Map planner --------------------------- .. image:: path_to_url `[Code] <path_to_url`_ This visibility road-map planner uses Dijkstra method for graph search. In the animation, the black lines are polygon obstacles, red crosses are visibility nodes, and blue lines area collision ...
/content/code_sandbox/docs/modules/path_planning/visibility_road_map_planner/visibility_road_map_planner_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
423
```restructuredtext LQR based path planning ----------------------- A sample code using LQR based path planning for double integrator model. .. image:: path_to_url ```
/content/code_sandbox/docs/modules/path_planning/lqr_path/lqr_path_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
31
```restructuredtext Reeds Shepp planning -------------------- A sample code with Reeds Shepp path planning. .. image:: path_to_url Mathematical Description of Individual Path Types ================================================= Here is an overview of mathematical derivations of formulae for individual path types....
/content/code_sandbox/docs/modules/path_planning/reeds_shepp_path/reeds_shepp_path_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
3,951
```restructuredtext Bug planner ----------- This is a 2D planning with Bug algorithm. .. image:: path_to_url - `ECE452 Bug Algorithms <path_to_url`_ ```
/content/code_sandbox/docs/modules/path_planning/bugplanner/bugplanner_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
36
```restructuredtext Model Predictive Trajectory Generator ------------------------------------- This is a path optimization sample on model predictive trajectory generator. This algorithm is used for state lattice planner. Path optimization sample ~~~~~~~~~~~~~~~~~~~~~~~~ .. image:: path_to_url Lookup table genera...
/content/code_sandbox/docs/modules/path_planning/model_predictive_trajectory_generator/model_predictive_trajectory_generator_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
87
```restructuredtext .. _rapidly-exploring-random-trees-(rrt): Rapidly-Exploring Random Trees (RRT) ------------------------------------ Basic RRT ~~~~~~~~~ .. image:: path_to_url This is a simple path planning code with Rapidly-Exploring Random Trees (RRT) Black circles are obstacles, green line is a searched tree...
/content/code_sandbox/docs/modules/path_planning/rrt/rrt_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
662
```restructuredtext RRT\* ~~~~~ .. figure:: path_to_url This is a path planning code with RRT\* Black circles are obstacles, green line is a searched tree, red crosses are start and goal positions. Simulation ^^^^^^^^^^ .. image:: rrt_star/rrt_star_1_0.png :width: 600px Ref ^^^ - `Sampling-based Algorithms f...
/content/code_sandbox/docs/modules/path_planning/rrt/rrt_star.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
116
```restructuredtext Cubic spline planning --------------------- Spline curve continuity ~~~~~~~~~~~~~~~~~~~~~~~~ Spline curve smoothness is depending on the which kind of spline model is used. The smoothness of the spline curve is expressed as :math:`C_0, C_1`, and so on. This representation represents continuity o...
/content/code_sandbox/docs/modules/path_planning/cubic_spline/cubic_spline_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
1,729
```restructuredtext .. _localization: Localization ============ .. toctree:: :maxdepth: 2 :caption: Contents extended_kalman_filter_localization_files/extended_kalman_filter_localization ensamble_kalman_filter_localization_files/ensamble_kalman_filter_localization unscented_kalman_filter_localization/...
/content/code_sandbox/docs/modules/localization/localization_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
110
```restructuredtext Extended Kalman Filter Localization ----------------------------------- Position Estimation Kalman Filter ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. image:: extended_kalman_filter_localization_1_0.png :width: 600px .. figure:: path_to_url This is a sensor fusion localization with Extended Kalma...
/content/code_sandbox/docs/modules/localization/extended_kalman_filter_localization_files/extended_kalman_filter_localization_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
3,304
```restructuredtext Unscented Kalman Filter localization ------------------------------------ .. image:: path_to_url This is a sensor fusion localization with Unscented Kalman Filter(UKF). The lines and points are same meaning of the EKF simulation. References: ~~~~~~~~~~~ - `Discriminatively Trained Unscented Kal...
/content/code_sandbox/docs/modules/localization/unscented_kalman_filter_localization/unscented_kalman_filter_localization_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
77
```restructuredtext Particle filter localization ---------------------------- .. image:: path_to_url This is a sensor fusion localization with Particle Filter(PF). The blue line is true trajectory, the black line is dead reckoning trajectory, and the red line is estimated trajectory with PF. It is assumed that the...
/content/code_sandbox/docs/modules/localization/particle_filter_localization/particle_filter_localization_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
307
```restructuredtext Ensamble Kalman Filter Localization ----------------------------------- .. figure:: path_to_url This is a sensor fusion localization with Ensamble Kalman Filter(EnKF). ```
/content/code_sandbox/docs/modules/localization/ensamble_kalman_filter_localization_files/ensamble_kalman_filter_localization_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
35
```restructuredtext Histogram filter localization ----------------------------- .. image:: path_to_url This is a 2D localization example with Histogram filter. The red cross is true position, black points are RFID positions. The blue grid shows a position probability of histogram filter. In this simulation, we ass...
/content/code_sandbox/docs/modules/localization/histogram_filter_localization/histogram_filter_localization_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
754
```restructuredtext .. _mapping: Mapping ======= .. toctree:: :maxdepth: 2 :caption: Contents gaussian_grid_map/gaussian_grid_map ndt_map/ndt_map ray_casting_grid_map/ray_casting_grid_map lidar_to_grid_map_tutorial/lidar_to_grid_map_tutorial point_cloud_sampling/point_cloud_sampling k_means_ob...
/content/code_sandbox/docs/modules/mapping/mapping_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
124
```restructuredtext Ray casting grid map -------------------- This is a 2D ray casting grid mapping example. .. image:: path_to_url ```
/content/code_sandbox/docs/modules/mapping/ray_casting_grid_map/ray_casting_grid_map_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
26
```restructuredtext Object shape recognition using rectangle fitting ------------------------------------------------ This is an object shape recognition using rectangle fitting. .. image:: path_to_url This example code is based on this paper algorithm: - `Efficient L\-Shape Fitting for Vehicle Detection Using Lase...
/content/code_sandbox/docs/modules/mapping/rectangle_fitting/rectangle_fitting_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
573
```restructuredtext .. _gaussian_grid_map: Gaussian grid map ----------------- This is a 2D Gaussian grid mapping example. .. image:: path_to_url ```
/content/code_sandbox/docs/modules/mapping/gaussian_grid_map/gaussian_grid_map_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
33
```restructuredtext Lidar to grid map -------------------- .. image:: path_to_url This simple tutorial shows how to read LIDAR (range) measurements from a file and convert it to occupancy grid. Occupancy grid maps (*Hans Moravec, A.E. Elfes: High resolution maps from wide angle sonar, Proc. IEEE Int. Conf. Robotics ...
/content/code_sandbox/docs/modules/mapping/lidar_to_grid_map_tutorial/lidar_to_grid_map_tutorial_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
1,660
```restructuredtext Normal vector estimation ------------------------- Normal vector calculation of a 3D triangle ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ A 3D point is as a vector: .. math:: p = [x, y, z] When there are 3 points in 3D space, :math:`p_1, p_2, p_3`, we can calculate a normal vector n of a 3D t...
/content/code_sandbox/docs/modules/mapping/normal_vector_estimation/normal_vector_estimation_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
469
```restructuredtext k-means object clustering ------------------------- This is a 2D object clustering with k-means algorithm. .. image:: path_to_url ```
/content/code_sandbox/docs/modules/mapping/k_means_object_clustering/k_means_object_clustering_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
30
```restructuredtext Object shape recognition using circle fitting --------------------------------------------- This is an object shape recognition using circle fitting. .. image:: path_to_url The blue circle is the true object shape. The red crosses are observations from a ranging sensor. The red circle is the es...
/content/code_sandbox/docs/modules/mapping/circle_fitting/circle_fitting_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
59
```restructuredtext .. _ndt_map: Normal Distance Transform (NDT) map ------------------------------------ This is a NDT mapping example. Normal Distribution Transform (NDT) is a map representation that uses normal distribution for observation point modeling. Normal Distribution ~~~~~~~~~~~~~~~~~~~~~ Normal distrib...
/content/code_sandbox/docs/modules/mapping/ndt_map/ndt_map_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
352
```restructuredtext .. _point_cloud_sampling: Point cloud Sampling ---------------------- This sections explains point cloud sampling algorithms in PythonRobotics. Point clouds are two-dimensional and three-dimensional based data acquired by external sensors like LIDAR, cameras, etc. In general, Point Cloud data is ...
/content/code_sandbox/docs/modules/mapping/point_cloud_sampling/point_cloud_sampling_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
438
```restructuredtext .. _bipedal: Bipedal ================= .. toctree:: :maxdepth: 2 :caption: Contents bipedal_planner/bipedal_planner ```
/content/code_sandbox/docs/modules/bipedal/bipedal_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
44
```restructuredtext Bipedal Planner ----------------------------- Bipedal Walking with modifying designated footsteps .. image:: path_to_url ```
/content/code_sandbox/docs/modules/bipedal/bipedal_planner/bipedal_planner_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
24
```restructuredtext Two joint arm to point control ------------------------------ .. figure:: path_to_url :alt: TwoJointArmToPointControl This is two joint arm to a point control simulation. This is a interactive simulation. You can set the goal position of the end effector with left-click on the plotting area....
/content/code_sandbox/docs/modules/arm_navigation/planar_two_link_ik_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
3,824
```restructuredtext N joint arm to point control ---------------------------- N joint arm to a point control simulation. This is a interactive simulation. You can set the goal position of the end effector with left-click on the plotting area. .. image:: path_to_url In this simulation N = 10, however, you can chang...
/content/code_sandbox/docs/modules/arm_navigation/n_joint_arm_to_point_control_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
68
```restructuredtext Arm navigation with obstacle avoidance -------------------------------------- Arm navigation with obstacle avoidance simulation. .. image:: path_to_url ```
/content/code_sandbox/docs/modules/arm_navigation/obstacle_avoidance_arm_navigation_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
22
```restructuredtext .. _arm_navigation: Arm Navigation ============== .. toctree:: :maxdepth: 2 :caption: Contents planar_two_link_ik n_joint_arm_to_point_control obstacle_avoidance_arm_navigation ```
/content/code_sandbox/docs/modules/arm_navigation/arm_navigation_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
54
```restructuredtext .. _control: Control ================= .. toctree:: :maxdepth: 2 :caption: Contents inverted_pendulum_control/inverted_pendulum_control move_to_a_pose_control/move_to_a_pose_control ```
/content/code_sandbox/docs/modules/control/control_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
54
```restructuredtext Move to a Pose Control ---------------------- In this section, we present the logic of PathFinderController that drives a car from a start pose (x, y, theta) to a goal pose. A simulation of moving to a pose control is presented below. .. image:: path_to_url Position Control of non-Holonomic Syste...
/content/code_sandbox/docs/modules/control/move_to_a_pose_control/move_to_a_pose_control_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
1,505
```restructuredtext Inverted Pendulum Control ----------------------------- An inverted pendulum on a cart consists of a mass :math:`m` at the top of a pole of length :math:`l` pivoted on a horizontally moving base as shown in the adjacent. The objective of the control system is to balance the inverted pendulum by ap...
/content/code_sandbox/docs/modules/control/inverted_pendulum_control/inverted_pendulum_control_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
1,012
```unknown VERTEX_SE2 0 0.000000 0.000000 0.000000 VERTEX_SE2 1 0.000000 0.000000 -0.000642 VERTEX_SE2 2 0.000000 0.000000 -0.001180 VERTEX_SE2 3 0.011002 -0.000975 -0.003562 VERTEX_SE2 4 0.641008 -0.011200 -0.007444 VERTEX_SE2 5 0.696016 -0.011716 -0.098726 VERTEX_SE2 6 0.700269 -0.015435 -0.895998 VERTEX_SE2 7 0.6939...
/content/code_sandbox/SLAM/GraphBasedSLAM/data/input_INTEL.g2o
unknown
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
107,672
```restructuredtext .. _aerial_navigation: Aerial Navigation ================= .. toctree:: :maxdepth: 2 :caption: Contents drone_3d_trajectory_following/drone_3d_trajectory_following rocket_powered_landing/rocket_powered_landing ```
/content/code_sandbox/docs/modules/aerial_navigation/aerial_navigation_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
62
```restructuredtext Drone 3d trajectory following ----------------------------- This is a 3d trajectory following simulation for a quadrotor. .. image:: path_to_url ```
/content/code_sandbox/docs/modules/aerial_navigation/drone_3d_trajectory_following/drone_3d_trajectory_following_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
33
```restructuredtext .. _path_tracking: Path Tracking ============= .. toctree:: :maxdepth: 2 :caption: Contents pure_pursuit_tracking/pure_pursuit_tracking stanley_control/stanley_control rear_wheel_feedback_control/rear_wheel_feedback_control lqr_steering_control/lqr_steering_control lqr_speed_...
/content/code_sandbox/docs/modules/path_tracking/path_tracking_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
123
```restructuredtext Rocket powered landing ----------------------------- Simulation ~~~~~~~~~~ .. code-block:: ipython3 from IPython.display import Image Image(filename="figure.png",width=600) from IPython.display import display, HTML display(HTML(data=""" <style> div#notebook-contai...
/content/code_sandbox/docs/modules/aerial_navigation/rocket_powered_landing/rocket_powered_landing_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
3,284
```restructuredtext Model predictive speed and steering control ------------------------------------------- .. figure:: path_to_url :alt: Model predictive speed and steering control Model predictive speed and steering control code: `PythonRobotics/model_predictive_speed_and_steer_control.py at master Atsush...
/content/code_sandbox/docs/modules/path_tracking/model_predictive_speed_and_steering_control/model_predictive_speed_and_steering_control_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
2,009
```restructuredtext Rear wheel feedback control --------------------------- Path tracking simulation with rear wheel feedback steering control and PID speed control. .. image:: path_to_url References: ~~~~~~~~~~~ - `A Survey of Motion Planning and Control Techniques for Self-driving Urban Vehicles <path_to_url`_...
/content/code_sandbox/docs/modules/path_tracking/rear_wheel_feedback_control/rear_wheel_feedback_control_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
60
```restructuredtext Stanley control --------------- Path tracking simulation with Stanley steering control and PID speed control. .. image:: path_to_url References: ~~~~~~~~~~~ - `Stanley: The robot that won the DARPA grand challenge <path_to_url`_ - `Automatic Steering Methods for Autonomous Automobile Path ...
/content/code_sandbox/docs/modules/path_tracking/stanley_control/stanley_control_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
74
```restructuredtext Pure pursuit tracking --------------------- Path tracking simulation with pure pursuit steering control and PID speed control. .. image:: path_to_url The red line is a target course, the green cross means the target point for pure pursuit control, the blue line is the tracking. References: ~~~~~...
/content/code_sandbox/docs/modules/path_tracking/pure_pursuit_tracking/pure_pursuit_tracking_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
85
```restructuredtext .. _linearquadratic-regulator-(lqr)-speed-and-steering-control: Linearquadratic regulator (LQR) speed and steering control ----------------------------------------------------------- Path tracking simulation with LQR speed and steering control. .. image:: path_to_url `[Code Link] <path_to_url`_ ...
/content/code_sandbox/docs/modules/path_tracking/lqr_speed_and_steering_control/lqr_speed_and_steering_control_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
1,243
```restructuredtext .. _linearquadratic-regulator-(lqr)-steering-control: Linearquadratic regulator (LQR) steering control ------------------------------------------------- Path tracking simulation with LQR steering control and PID speed control. .. image:: path_to_url `[Code Link] <path_to_url`_ Overview ~~~~~~~~...
/content/code_sandbox/docs/modules/path_tracking/lqr_steering_control/lqr_steering_control_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
1,076
```restructuredtext .. _utils: Utilities ========== Common utilities for PythonRobotics. .. toctree:: :maxdepth: 2 :caption: Contents plot/plot ```
/content/code_sandbox/docs/modules/utils/utils_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
40
```restructuredtext .. _plot_utils: Plotting Utilities ------------------- This module contains a number of utility functions for plotting data. .. _plot_curvature: plot_curvature ~~~~~~~~~~~~~~~ .. autofunction:: utils.plot.plot_curvature .. image:: curvature_plot.png ```
/content/code_sandbox/docs/modules/utils/plot/plot_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
55
```restructuredtext Nonlinear Model Predictive Control with C-GMRES ----------------------------------------------- .. image:: cgmres_nmpc_1_0.png :width: 600px .. image:: cgmres_nmpc_2_0.png :width: 600px .. image:: cgmres_nmpc_3_0.png :width: 600px .. image:: cgmres_nmpc_4_0.png :width: 600px .. fig...
/content/code_sandbox/docs/modules/path_tracking/cgmres_nmpc/cgmres_nmpc_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
789
```restructuredtext .. _appendix: Appendix ============== .. toctree:: :maxdepth: 2 :caption: Contents Kalmanfilter_basics Kalmanfilter_basics_2 ```
/content/code_sandbox/docs/modules/appendix/appendix_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
46
```restructuredtext KF Basics - Part I ------------------ Introduction ~~~~~~~~~~~~ What is the need to describe belief in terms of PDFs? ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ This is because robot environments are stochastic. A robot environment may have cows with Tesla by side. That is a robot an...
/content/code_sandbox/docs/modules/appendix/Kalmanfilter_basics_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
4,339
```restructuredtext .. _slam: SLAM ==== Simultaneous Localization and Mapping(SLAM) examples .. toctree:: :maxdepth: 2 :caption: Contents iterative_closest_point_matching/iterative_closest_point_matching ekf_slam/ekf_slam FastSLAM1/FastSLAM1 FastSLAM2/FastSLAM2 graph_slam/graph_slam ```
/content/code_sandbox/docs/modules/slam/slam_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
97
```restructuredtext KF Basics - Part 2 ------------------ Probabilistic Generative Laws ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1st Law: ^^^^^^^^ The belief representing the state :math:`x_{t}`, is conditioned on all past states, measurements and controls. This can be shown mathematically by the conditional probability shown...
/content/code_sandbox/docs/modules/appendix/Kalmanfilter_basics_2_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
3,553
```restructuredtext EKF SLAM -------- This is an Extended Kalman Filter based SLAM example. The blue line is ground truth, the black line is dead reckoning, the red line is the estimated trajectory with EKF SLAM. The green crosses are estimated landmarks. .. image:: path_to_url Simulation ~~~~~~~~~~~~~~~~~~~~~~~~~...
/content/code_sandbox/docs/modules/slam/ekf_slam/ekf_slam_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
6,026
```restructuredtext Graph SLAM for a real-world SE(2) dataset ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: ipython3 from graphslam.graph import Graph from graphslam.load import load_g2o_se2 Introduction ^^^^^^^^^^^^ For a complete derivation of the Graph SLAM algorithm, please see `Graph SLAM Formula...
/content/code_sandbox/docs/modules/slam/graph_slam/graphSLAM_SE2_example.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
1,487
```restructuredtext Graph based SLAM ---------------- This is a graph based SLAM example. The blue line is ground truth. The black line is dead reckoning. The red line is the estimated trajectory with Graph based SLAM. The black stars are landmarks for graph edge generation. .. image:: path_to_url .. include:: g...
/content/code_sandbox/docs/modules/slam/graph_slam/graph_slam_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
128
```restructuredtext .. _Graph SLAM Formulation: Graph SLAM Formulation ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Author Jeff Irion Problem Formulation ^^^^^^^^^^^^^^^^^^^ Let a robots trajectory through its environment be represented by a sequence of :math:`N` poses: :math:`\mathbf{p}_1, \mathbf{p}_2, \ldots, \mathb...
/content/code_sandbox/docs/modules/slam/graph_slam/graphSLAM_formulation.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
5,156
```restructuredtext FastSLAM 2.0 ------------ This is a feature based SLAM example using FastSLAM 2.0. The animation has the same meanings as one of FastSLAM 1.0. .. image:: path_to_url References ~~~~~~~~~~ - `PROBABILISTIC ROBOTICS <path_to_url`_ - `SLAM simulations by Tim Bailey <path_to_url`_ ```
/content/code_sandbox/docs/modules/slam/FastSLAM2/FastSLAM2_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
86
```restructuredtext .. _iterative-closest-point-(icp)-matching: Iterative Closest Point (ICP) Matching -------------------------------------- This is a 2D ICP matching example with singular value decomposition. It can calculate a rotation matrix and a translation vector between points to points. .. image:: path_to_...
/content/code_sandbox/docs/modules/slam/iterative_closest_point_matching/iterative_closest_point_matching_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
101
```restructuredtext Graph SLAM ~~~~~~~~~~~~ .. code:: ipython3 import copy import math import itertools import numpy as np import matplotlib.pyplot as plt from graph_based_slam import calc_rotational_matrix, calc_jacobian, cal_observation_sigma, \ calc_input,...
/content/code_sandbox/docs/modules/slam/graph_slam/graphSLAM_doc.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
5,726
```python ```
/content/code_sandbox/PathPlanning/__init__.py
python
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
1
```python """ Quintic Polynomials Planner author: Atsushi Sakai (@Atsushi_twi) Ref: - [Local Path planning And Motion Control For Agv In Positioning](path_to_url """ import math import matplotlib.pyplot as plt import numpy as np # parameter MAX_T = 100.0 # maximum time to the goal [s] MIN_T = 5.0 # minimum ti...
/content/code_sandbox/PathPlanning/QuinticPolynomialsPlanner/quintic_polynomials_planner.py
python
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
2,054
```restructuredtext FastSLAM1.0 ----------- .. figure:: path_to_url Simulation ~~~~~~~~~~ This is a feature based SLAM example using FastSLAM 1.0. .. image:: FastSLAM1_1_0.png :width: 600px The blue line is ground truth, the black line is dead reckoning, the red line is the estimated trajectory with FastSLAM...
/content/code_sandbox/docs/modules/slam/FastSLAM1/FastSLAM1_main.rst
restructuredtext
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
4,990
```python """ Potential Field based path planner author: Atsushi Sakai (@Atsushi_twi) Ref: path_to_url~motionplanning/lecture/Chap4-Potential-Field_howie.pdf """ from collections import deque import numpy as np import matplotlib.pyplot as plt # Parameters KP = 5.0 # attractive potential gain ETA = 100.0 # repul...
/content/code_sandbox/PathPlanning/PotentialFieldPlanning/potential_field_planning.py
python
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
1,591
```python """ Path planning Sample Code with RRT and Dubins path author: AtsushiSakai(@Atsushi_twi) """ import copy import math import random import matplotlib.pyplot as plt import numpy as np import sys import pathlib sys.path.append(str(pathlib.Path(__file__).parent.parent.parent)) # root dir sys.path.append(str(p...
/content/code_sandbox/PathPlanning/RRTStarDubins/rrt_star_dubins.py
python
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
1,881
```python """ eta^3 polynomials planner author: Joe Dinius, Ph.D (path_to_url Atsushi Sakai (@Atsushi_twi) Ref: - [eta^3-Splines for the Smooth Path Generation of Wheeled Mobile Robots] (path_to_url """ import numpy as np import matplotlib.pyplot as plt from scipy.integrate import quad # NOTE: *_pose is a...
/content/code_sandbox/PathPlanning/Eta3SplinePath/eta3_spline_path.py
python
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
4,940
```python """ Informed RRT* path planning author: Karan Chawla Atsushi Sakai(@Atsushi_twi) Reference: Informed RRT*: Optimal Sampling-based Path planning Focused via Direct Sampling of an Admissible Ellipsoidal Heuristic path_to_url """ import sys import pathlib sys.path.append(str(pathlib.Path(__file__).pa...
/content/code_sandbox/PathPlanning/InformedRRTStar/informed_rrt_star.py
python
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
3,166
```python """ Distance/Path Transform Wavefront Coverage Path Planner author: Todd Tang paper: Planning paths of complete coverage of an unstructured environment by a mobile robot - Zelinsky et.al. link: path_to_url """ import os import sys import matplotlib.pyplot as plt import numpy as np from scipy impor...
/content/code_sandbox/PathPlanning/WavefrontCPP/wavefront_coverage_path_planner.py
python
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
1,929
```python """ Greedy Best-First grid planning author: Erwin Lejeune (@spida_rwin) See Wikipedia article (path_to_url """ import math import matplotlib.pyplot as plt show_animation = True class BestFirstSearchPlanner: def __init__(self, ox, oy, reso, rr): """ Initialize grid map for greedy ...
/content/code_sandbox/PathPlanning/GreedyBestFirstSearch/greedy_best_first_search.py
python
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
2,063
```python """ flowfield pathfinding author: Sarim Mehdi (muhammadsarim.mehdi@studio.unibo.it) Source: path_to_url """ import numpy as np import matplotlib.pyplot as plt show_animation = True def draw_horizontal_line(start_x, start_y, length, o_x, o_y, o_dict, path): for i in range(start_x, start_x + length): ...
/content/code_sandbox/PathPlanning/FlowField/flowfield.py
python
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
2,532
```python ```
/content/code_sandbox/PathPlanning/RRTDubins/__init__.py
python
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
1
```python """ Path planning Sample Code with RRT with Dubins path author: AtsushiSakai(@Atsushi_twi) """ import copy import math import random import numpy as np import matplotlib.pyplot as plt import sys import pathlib sys.path.append(str(pathlib.Path(__file__).parent.parent.parent)) # root dir sys.path.append(str(...
/content/code_sandbox/PathPlanning/RRTDubins/rrt_dubins.py
python
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
1,808
```python """ eta^3 polynomials trajectory planner author: Joe Dinius, Ph.D (path_to_url Atsushi Sakai (@Atsushi_twi) Refs: - path_to_url - [eta^3-Splines for the Smooth Path Generation of Wheeled Mobile Robots] (path_to_url """ import numpy as np import matplotlib.pyplot as plt from matplotlib.collections...
/content/code_sandbox/PathPlanning/Eta3SplineTrajectory/eta3_spline_trajectory.py
python
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
5,217
```python """ Path planning code with LQR RRT* author: AtsushiSakai(@Atsushi_twi) """ import copy import math import random import matplotlib.pyplot as plt import numpy as np import sys import pathlib sys.path.append(str(pathlib.Path(__file__).parent.parent)) from LQRPlanner.lqr_planner import LQRPlanner from RRTSt...
/content/code_sandbox/PathPlanning/LQRRRTStar/lqr_rrt_star.py
python
2016-03-21T09:34:43
2024-08-16T19:00:08
PythonRobotics
AtsushiSakai/PythonRobotics
22,516
1,782