Skip to content

Commit 79a07d8

Browse files
committed
add a test for graph_based_slam
1 parent 5c7ef9b commit 79a07d8

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,8 @@ The black line is dead reckoning.
264264

265265
The red line is the estimated trajectory with Graph based SLAM.
266266

267+
The black stars are landmarks for graph edge generation.
268+
267269
![3](https://github.com/AtsushiSakai/PythonRobotics/raw/master/SLAM/GraphBasedSLAM/animation.gif)
268270

269271
Ref:

SLAM/GraphBasedSLAM/graph_based_slam.py

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
55
author: Atsushi Sakai (@Atsushi_twi)
66
7+
Ref
8+
9+
[A Tutorial on Graph-Based SLAM](http://www2.informatik.uni-freiburg.de/~stachnis/pdf/grisetti10titsmag.pdf)
10+
711
"""
812

913
import numpy as np

tests/test_graph_based_slam.py

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from unittest import TestCase
2+
3+
from SLAM.GraphBasedSLAM import graph_based_slam as m
4+
5+
print(__file__)
6+
7+
8+
class Test(TestCase):
9+
10+
def test1(self):
11+
m.show_animation = False
12+
m.main()

0 commit comments

Comments
 (0)