Skip to content

Commit f7ccd83

Browse files
committed
Add code links to documentation and fix naming inconsistencies
Added references to related Python functions in documentation for better navigation and usability. Corrected inconsistencies in module and test names to align with their respective directories and improve clarity.
1 parent d2fe5ae commit f7ccd83

22 files changed

Lines changed: 102 additions & 17 deletions

File tree

PathTracking/rear_wheel_feedback/rear_wheel_feedback.py renamed to PathTracking/rear_wheel_feedback_control/rear_wheel_feedback_control.py

File renamed without changes.
File renamed without changes.

docs/modules/10_inverted_pendulum/inverted_pendulum_main.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,12 @@ and :math:`P` is the unique positive definite solution to the discrete time
8989

9090
.. image:: https://github.com/AtsushiSakai/PythonRoboticsGifs/raw/master/Control/InvertedPendulumCart/animation_lqr.gif
9191

92+
Code Link
93+
^^^^^^^^^^^
94+
95+
.. autofunction:: InvertedPendulum.inverted_pendulum_lqr_control.main
96+
97+
9298
MPC control
9399
~~~~~~~~~~~~~~~~~~~~~~~~~~~
94100
The MPC controller minimize this cost function defined as:
@@ -101,3 +107,9 @@ subject to:
101107
- Initial state
102108

103109
.. image:: https://github.com/AtsushiSakai/PythonRoboticsGifs/raw/master/Control/InvertedPendulumCart/animation.gif
110+
111+
Code Link
112+
^^^^^^^^^^^
113+
114+
.. autofunction:: InvertedPendulum.inverted_pendulum_mpc_control.main
115+

docs/modules/13_mission_planning/behavior_tree/behavior_tree_main.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Behavior Tree is a modular, hierarchical decision model that is widely used in r
55
It present some similarities to hierarchical state machines with the key difference that the main building block of a behavior is a task rather than a state.
66
Behavior Tree have been shown to generalize several other control architectures (https://ieeexplore.ieee.org/document/7790863)
77

8-
Core Concepts
8+
Code Link
99
~~~~~~~~~~~~~
1010

1111
Control Node

docs/modules/13_mission_planning/state_machine/state_machine_main.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ Core Concepts
1212
- **Action**: An operation executed during transition (before entering new state)
1313
- **Guard**: A precondition that must be satisfied to allow transition
1414

15-
API
16-
~~~
15+
Code Link
16+
~~~~~~~~~~~
1717

1818
.. autoclass:: MissionPlanning.StateMachine.state_machine.StateMachine
1919
:members: add_transition, process, register_state

docs/modules/6_path_tracking/cgmres_nmpc/cgmres_nmpc_main.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ Nonlinear Model Predictive Control with C-GMRES
1717
.. figure:: https://github.com/AtsushiSakai/PythonRoboticsGifs/raw/master/PathTracking/cgmres_nmpc/animation.gif
1818
:alt: gif
1919

20+
Code Link
21+
~~~~~~~~~~~~
22+
23+
.. autofunction:: PathTracking.cgmres_nmpc.cgmres_nmpc.NMPCControllerCGMRES
24+
2025
Mathematical Formulation
2126
~~~~~~~~~~~~~~~~~~~~~~~~
2227

docs/modules/6_path_tracking/lqr_speed_and_steering_control/lqr_speed_and_steering_control_main.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@ Path tracking simulation with LQR speed and steering control.
77

88
.. image:: https://github.com/AtsushiSakai/PythonRoboticsGifs/raw/master/PathTracking/lqr_speed_steer_control/animation.gif
99

10-
`[Code Link] <https://github.com/AtsushiSakai/PythonRobotics/blob/master/PathTracking/lqr_speed_steer_control/lqr_speed_steer_control.py>`_
10+
11+
Code Link
12+
~~~~~~~~~~~~~~~
13+
14+
.. autofunction:: PathTracking.lqr_speed_steer_control.lqr_speed_steer_control.lqr_speed_steering_control
15+
1116

1217
Overview
1318
~~~~~~~~

docs/modules/6_path_tracking/lqr_steering_control/lqr_steering_control_main.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ control.
88

99
.. image:: https://github.com/AtsushiSakai/PythonRoboticsGifs/raw/master/PathTracking/lqr_steer_control/animation.gif
1010

11-
`[Code Link] <https://github.com/AtsushiSakai/PythonRobotics/blob/master/PathTracking/lqr_steer_control/lqr_steer_control.py>`_
11+
Code Link
12+
~~~~~~~~~~~~~~~
13+
14+
.. autofunction:: PathTracking.lqr_steer_control.lqr_steer_control.lqr_steering_control
15+
1216

1317
Overview
1418
~~~~~~~~

docs/modules/6_path_tracking/model_predictive_speed_and_steering_control/model_predictive_speed_and_steering_control_main.rst

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,6 @@ Model predictive speed and steering control
55
.. figure:: https://github.com/AtsushiSakai/PythonRoboticsGifs/raw/master/PathTracking/model_predictive_speed_and_steer_control/animation.gif?raw=true
66
:alt: Model predictive speed and steering control
77

8-
Model predictive speed and steering control
9-
10-
code:
11-
12-
`PythonRobotics/model_predictive_speed_and_steer_control.py at master ·
13-
AtsushiSakai/PythonRobotics <https://github.com/AtsushiSakai/PythonRobotics/blob/master/PathTracking/model_predictive_speed_and_steer_control/model_predictive_speed_and_steer_control.py>`__
14-
158
This is a path tracking simulation using model predictive control (MPC).
169

1710
The MPC controller controls vehicle speed and steering base on
@@ -22,6 +15,12 @@ This code uses cvxpy as an optimization modeling tool.
2215
- `Welcome to CVXPY 1.0 — CVXPY 1.0.6
2316
documentation <http://www.cvxpy.org/>`__
2417

18+
Code Link
19+
~~~~~~~~~~~~~~~
20+
21+
.. autofunction:: PathTracking.model_predictive_speed_and_steer_control.model_predictive_speed_and_steer_control.iterative_linear_mpc_control
22+
23+
2524
MPC modeling
2625
~~~~~~~~~~~~
2726

docs/modules/6_path_tracking/move_to_a_pose_control/move_to_a_pose_control_main.rst renamed to docs/modules/6_path_tracking/move_to_a_pose/move_to_a_pose_main.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@ Move to a Pose Control
33

44
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.
55

6-
.. image:: https://github.com/AtsushiSakai/PythonRoboticsGifs/raw/master/PathTracking/move_to_pose/animation.gif
6+
.. image:: https://github.com/AtsushiSakai/PythonRoboticsGifs/raw/master/Control/move_to_pose/animation.gif
7+
8+
Code Link
9+
~~~~~~~~~~~~~~~
10+
11+
.. autofunction:: PathTracking.move_to_pose.move_to_pose.move_to_pose
12+
713

814
Position Control of non-Holonomic Systems
915
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)