]> rtime.felk.cvut.cz Git - hubacji1/rrts.git/blob - README.md
Merge branch 'hotfix/0.4.2'
[hubacji1/rrts.git] / README.md
1 # RRT\* algorithm
2 RRTS is a C++ library with implementation of RRT\* planning algorithm.
3
4 # License
5 The project is published under [GNU GPLv3][1].
6
7 [1]: ./LICENSE
8
9 # Build
10 To build the project run the following commands:
11 ```
12 mkdir build
13 cd build
14 cmake ../
15 make
16 ```
17
18 To build with ninja:
19 ```
20 mkdir build
21 cd build
22 cmake -DCMAKE_BUILD_TYPE=Release -G Ninja ../
23 ninja -v
24 ```
25
26 ## Dependencies
27 - `libbcar`
28 - `libjsoncpp-dev`
29
30 # RRT Extensions
31 There is basic RRT\* algorithm in `rrts.cc` file. To test different approaches
32 and upgrades to RRT, *extensions* are declared in `rrtext.h` and implemented in
33 `rrtextX.cc`, where `X` is the number of an extension.
34
35 ## Implemented extensions
36 There is a list of implemented extensions and what they include. The extension
37 number accomply to file `src/rrtextN.cc` where `N` is:
38
39 1.  "cost" RS-M -- Reeds & Shepp (build), Matej's heur. (search).
40 2.  "collision" [cute c2][] for collision detection,
41 3.  "path optimization" Dijkstra algorithm,
42 4.  "nn" 2D grid for nodes storage,
43 5.  "cost" RS-E -- Reeds & Shepp (build), Euclidean (search),
44 6.  "cost" RS-RS -- Reeds & Shepp (build), Reeds & Shepp (search),
45 7.  "nn" 2D [K-d tree][] for nodes storage,
46 8.  "nn" 3D [K-d tree][] for nodes storage,
47 9.  "nn" 3D grid for nodes storage,
48 10. "cost" RS-H -- Reeds & Shepp (build), B-Spline paper (search)
49 11. "goal zone" gz -- Use drivable of libbcar to check if goal found.
50
51 [cute c2]: https://github.com/RandyGaul/cute_headers/blob/master/cute_c2.h
52 [K-d tree]: https://en.wikipedia.org/wiki/K-d_tree
53
54 ## Compound extensions
55 There is a list of classes with reference to extensions used. The extensio
56 number accomply to class `RRTCEn` where `n` is:
57
58 1.  cute, gz, Dijkstra, RS-M.
59 2.  cute, gz, Dijkstra, RS-E.
60 3.  cute, gz, Dijkstra, RS-RS.
61 4.  RS-M, cute, 2D grid.
62 5.  cute, 2D grid, RS-E.
63 6.  cute, 2D grid, RS-RS.
64 7.  cute, Dijkstra, 2D grid, RS-E.
65 8.  cute, Dijkstra, 2D grid, RS-RS.
66 9.  cute, Dijkstra, 2D grid, RS-M.
67 10. cute, Dijkstra, 2D tree, RS-RS.
68 11. cute, Dijkstra, 2D tree, RS-E.
69 12. cute, Dijkstra, 2D tree, RS-M.
70 13. cute, Dijkstra, 3D tree, RS-RS.
71 14. cute, Dijkstra, 3D tree, RS-M.
72 15. cute, Dijkstra, 3D grid, RS-RS.
73 16. cute, Dijkstra, 3D grid, RS-M.
74 17. cute, gz, Dijkstra, RS-H.
75
76 18. cute, gz, Dijkstra, 2D grid, RS-RS
77 19. cute, gz, Dijkstra, 2D grid, RS-E
78 20. cute, gz, Dijkstra, 2D grid, RS-M
79 21. cute, gz, Dijkstra, 2D grid, RS-H
80
81 22. cute, gz, Dijkstra, 2D tree, RS-RS
82 23. cute, gz, Dijkstra, 2D tree, RS-E
83 24. cute, gz, Dijkstra, 2D tree, RS-M
84 25. cute, gz, Dijkstra, 2D tree, RS-H
85
86 26. cute, gz, Dijkstra, 3D grid, RS-RS
87 27. cute, gz, Dijkstra, 3D grid, RS-E
88 28. cute, gz, Dijkstra, 3D grid, RS-M
89 29. cute, gz, Dijkstra, 3D grid, RS-H
90
91 30. cute, gz, Dijkstra, 3D tree, RS-RS
92 31. cute, gz, Dijkstra, 3D tree, RS-E
93 32. cute, gz, Dijkstra, 3D tree, RS-M
94 33. cute, gz, Dijkstra, 3D tree, RS-H
95
96 # Contribute
97 Use [OneFlow][3] branching model and keep the [changelog][4].
98
99 Write [great git commit messages][5]:
100 1. Separate subject from body with a blank line.
101 2. Limit the subject line to 50 characters.
102 3. Capitalize the subject line.
103 4. Do not end the subject line with a period.
104 5. Use the imperative mood in the subject line.
105 6. Wrap the body at 72 characters.
106 7. Use the body to explain what and why vs. how.
107
108 When adding feature or hotfix, use [Test-driven development (TDD)][2]:
109 1. Add tests to `ut` folder, add methods declaration, basic structure.
110 2. Run tests (just `make` in `build` folder), check that tests *fail*.
111 3. Implement functionality.
112 4. Run tests, check that tests *pass*.
113 5. Refactor.
114
115 [2]: https://en.wikipedia.org/wiki/Test-driven_development
116 [3]: https://www.endoflineblog.com/oneflow-a-git-branching-model-and-workflow
117 [4]: ./CHANGELOG.md
118 [5]: https://chris.beams.io/posts/git-commit/
119
120 # Documentation
121 The documentation is generated by Doxygen, at least version `1.8.15` is needed.
122 Just run `doxygen` in the project root directory.