Since there is currently an issue with coveralls updating, the code coverage section explains the method to extract the code_coverage. Index.html provides the necessary code coverage information.
This repository consists of the C++ implementation of the Informed RRT* algorithm for autonomous navigation. Robotic vacuum cleaners are becoming a household thing in our modern world and has a huge market potential. One of the main components of the robotic vacuum cleaners is it's ability to plan a path from a given start to end point in an environment. This software is developed for a fictional cleaning robot Xoomba for ACME Robotics, a fictional organization.
Sampling-based algorithms represent the configuration space with a roadmap of sampled configurations. These algorithms work well for high-dimensional configuration spaces, because unlike combinatorial algorithms, their running time is not (explicitly) exponentially dependent on the dimension of configurations.
Rapidly-Exploring Random Trees (RRTs) is a planning technique for single-query problems which uses an incremental tree expansion from randomly drawn samples to grow towards previously unsearchable areas in the map space. Optimal RRTS (RRT*), an improvement on RRTs, extend the problem to finding the optimal solution in the planning space that is computed asymptotically. Informed RRT* improves the convergence speed of RRT* by introducing a heuristic, similar to the way in which A* improves upon Dijkstra’s algorithm.
The following image is the result of the informed RRT star algorithm on execution.
Solo Iterative Process (SIP) is used in the development of the project. Test Driven Development appoach is used to comply with the short development cycle. The planning and development of the project is done in four sprints.
Product backlog, Iteration backlogs, Work log and Sprint Schedule.
MIT License
Copyright (c) 2018 Srinidhi Sreenath
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
matplotlib-cpp, a simple C++ plotting library, resemble the plotting API used by Matlab, is used to facilitate visualization.
matplotlib-cpp works by wrapping the popular python plotting library matplotlib. (matplotlib.org) This means you have to have a working python installation, including development headers. On Ubuntu:
sudo apt-get install python-matplotlib python-numpy python2.7-dev
The C++-part of the library consists of the single header file matplotlibcpp.h which can be placed anywhere. Place this in the include directory of the project.
Since the build system is CMake, the following is added to the CMakeLists.txt:
find_package(PythonLibs 2.7)
target_include_directories(myproject PRIVATE ${PYTHON_INCLUDE_DIRS})
target_link_libraries(myproject ${PYTHON_LIBRARIES})
where myproject is the project to be built.
git clone https://github.com/SrinidhiSreenath/ENPM808X-Midterm-InformedRRTStar.git
cd <path to repository>
mkdir build
cd build
cmake ..
make
Run tests: ./test/cpp-test
Run program: ./app/shell-app
sudo apt-get install lcov
cmake -D COVERAGE=ON -D CMAKE_BUILD_TYPE=Debug ../
make
make code_coverage
This generates a index.html page in the build/coverage sub-directory that can be viewed locally in a web browser.
Doxygen Documentation generation steps:
cd <path to repository>
mkdir Doxygen
cd Doxygen
doxygen -g <config_file_name>
Open configuration file and update the following:
PROJECT_NAME = 'ENPM808X-Midterm-InformedRRTStar'
INPUT = ../InformedRRTStar ../include ../test
Run and generate the documents by executing the following:
doxygen <config_file_name>
In your Eclipse workspace directory (or create a new one), checkout the repo (and submodules)
mkdir -p ~/workspace
cd ~/workspace
git clone https://github.com/SrinidhiSreenath/ENPM808X-Midterm-InformedRRTStar.git
In your work directory, use cmake to create an Eclipse project for an [out-of-source build] of ENPM808X-Midterm-InformedRRTStar
cd ~/workspace
mkdir -p InformedRRTStar-eclipse
cd InformedRRTStar-eclipse
cmake -G "Eclipse CDT4 - Unix Makefiles" -D CMAKE_BUILD_TYPE=Debug -D CMAKE_ECLIPSE_VERSION=4.7.0 -D CMAKE_CXX_COMPILER_ARG1=-std=c++14 ../ENPM808X-Midterm-InformedRRTStar/
Open Eclipse, go to File -> Import -> General -> Existing Projects into Workspace -> Select "InformedRRTStar-eclipse" directory created previously as root directory -> Finish
Source files may be edited under the "[Source Directory]" label in the Project Explorer.
To build the project, in Eclipse, unfold InformedRRTStar-eclipse project in Project Explorer, unfold Build Targets, double click on "all" to build all projects.
-
In Eclipse, right click on the InformedRRTStar-eclipse in Project Explorer, select Run As -> Local C/C++ Application
-
Choose the binaries to run (e.g. shell-app, cpp-test for unit testing)
-
Set breakpoint in source file (i.e. double click in the left margin on the line you want the program to break).
-
In Eclipse, right click on the boilerplate-eclipse in Project Explorer, select Debug As -> Local C/C++ Application, choose the binaries to run (e.g. shell-app).
-
If prompt to "Confirm Perspective Switch", select yes.
-
Program will break at the breakpoint you set.
-
Press Step Into (F5), Step Over (F6), Step Return (F7) to step/debug your program.
-
Right click on the variable in editor to add watch expression to watch the variable in debugger window.
-
Press Terminate icon to terminate debugging and press C/C++ icon to switch back to C/C++ perspetive view (or Windows->Perspective->Open Perspective->C/C++).
-
CppChEclipse
To install and run cppcheck in Eclipse
-
In Eclipse, go to Window -> Preferences -> C/C++ -> cppcheclipse. Set cppcheck binary path to "/usr/bin/cppcheck".
-
To run CPPCheck on a project, right click on the project name in the Project Explorer and choose cppcheck -> Run cppcheck.
-
-
Google C++ Sytle
To include and use Google C++ Style formatter in Eclipse
-
In Eclipse, go to Window -> Preferences -> C/C++ -> Code Style -> Formatter. Import eclipse-cpp-google-style and apply.
-
To use Google C++ style formatter, right click on the source code or folder in Project Explorer and choose Source -> Format
-