Skip to content

Commit e90cbe0

Browse files
committed
Add code links to SLAM module documentation
This commit updates SLAM module documentation files to include direct code links for better navigation. It also adjusts imports in `test_iterative_closest_point.py` to reflect updated module structure and adds a safety check for the directory in `runtests.sh`.
1 parent e1cdb24 commit e90cbe0

8 files changed

Lines changed: 32 additions & 2 deletions

File tree

SLAM/iterative_closest_point/iterative_closest_point.py renamed to SLAM/ICPMatching/icp_matching.py

File renamed without changes.

docs/modules/4_slam/FastSLAM1/FastSLAM1_main.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ The red points are particles of FastSLAM.
2222
Black points are landmarks, blue crosses are estimated landmark
2323
positions by FastSLAM.
2424

25+
Code Link
26+
~~~~~~~~~~~~
27+
28+
.. autofunction:: SLAM.FastSLAM1.fast_slam1.fast_slam1
29+
2530

2631
Introduction
2732
~~~~~~~~~~~~

docs/modules/4_slam/FastSLAM2/FastSLAM2_main.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ The animation has the same meanings as one of FastSLAM 1.0.
77

88
.. image:: https://github.com/AtsushiSakai/PythonRoboticsGifs/raw/master/SLAM/FastSLAM2/animation.gif
99

10+
Code Link
11+
~~~~~~~~~~~
12+
13+
.. autofunction:: SLAM.FastSLAM2.fast_slam2.fast_slam2
14+
15+
1016
References
1117
~~~~~~~~~~
1218

docs/modules/4_slam/ekf_slam/ekf_slam_main.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ This is a simulation of EKF SLAM.
2121
- Blue line: ground truth
2222
- Red line: EKF SLAM position estimation
2323

24+
Code Link
25+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
26+
27+
.. autofunction:: SLAM.EKFSLAM.ekf_slam.ekf_slam
28+
29+
2430
Introduction
2531
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2632

docs/modules/4_slam/graph_slam/graph_slam_main.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ The black stars are landmarks for graph edge generation.
1313

1414
.. image:: https://github.com/AtsushiSakai/PythonRoboticsGifs/raw/master/SLAM/GraphBasedSLAM/animation.gif
1515

16+
Code Link
17+
~~~~~~~~~~~~
18+
19+
.. autofunction:: SLAM.GraphBasedSLAM.graph_based_slam.graph_based_slam
20+
21+
1622
.. include:: graphSLAM_doc.rst
1723
.. include:: graphSLAM_formulation.rst
1824
.. include:: graphSLAM_SE2_example.rst

docs/modules/4_slam/iterative_closest_point_matching/iterative_closest_point_matching_main.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,13 @@ points to points.
1010

1111
.. image:: https://github.com/AtsushiSakai/PythonRoboticsGifs/raw/master/SLAM/iterative_closest_point/animation.gif
1212

13+
Code Link
14+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15+
16+
.. autofunction:: SLAM.ICPMatching.icp_matching.icp_matching
17+
18+
1319
References
14-
~~~~~~~~~~
20+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1521

1622
- `Introduction to Mobile Robotics: Iterative Closest Point Algorithm <https://cs.gmu.edu/~kosecka/cs685/cs685-icp.pdf>`_

runtests.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env bash
2+
cd "$(dirname "$0")" || exit 1
23
echo "Run test suites! "
34

45
# === pytest based test runner ===

tests/test_iterative_closest_point.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import conftest
2-
from SLAM.iterative_closest_point import iterative_closest_point as m
2+
from SLAM.ICPMatching import icp_matching as m
33

44

55
def test_1():

0 commit comments

Comments
 (0)