-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2a5568f
commit c10a0e6
Showing
38 changed files
with
3,082 additions
and
2,844 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
BasedOnStyle: Microsoft | ||
AccessModifierOffset: '-1' | ||
AlignAfterOpenBracket: Align | ||
AllowShortFunctionsOnASingleLine: Inline | ||
AllowShortIfStatementsOnASingleLine: Never | ||
AllowShortLambdasOnASingleLine: Inline | ||
AlwaysBreakAfterReturnType: None | ||
AlwaysBreakTemplateDeclarations: 'Yes' | ||
BreakBeforeBinaryOperators: None | ||
BreakBeforeBraces: Custom | ||
BreakConstructorInitializers: BeforeColon | ||
BreakInheritanceList: BeforeColon | ||
ColumnLimit: '80' | ||
ContinuationIndentWidth: '4' | ||
IncludeBlocks: Preserve | ||
IndentPPDirectives: None | ||
IndentWidth: '2' | ||
Language: Cpp | ||
MaxEmptyLinesToKeep: '1' | ||
NamespaceIndentation: None | ||
PointerAlignment: Left | ||
SpaceBeforeParens: ControlStatements | ||
SpacesBeforeTrailingComments: '2' | ||
TabWidth: '4' | ||
UseTab: Never | ||
|
||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: clang-format Check | ||
on: [push, pull_request] | ||
jobs: | ||
formatting-check: | ||
name: Formatting Check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Run clang-format style check for C/C++/Protobuf programs. | ||
uses: jidicula/[email protected] | ||
with: | ||
clang-format-version: '13' | ||
check-path: 'src' | ||
fallback-style: 'Microsoft' # optional |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"editor.formatOnSave": true, | ||
"editor.formatOnType": true, | ||
"clang-format.executable": "${workspaceFolder}/.clang-format", | ||
"clang-format.style": "file", | ||
"clang-format.fallbackStyle": "Google", | ||
"clang-format.language.cpp.enable": true, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,95 @@ | ||
cmake_minimum_required(VERSION 3.4) | ||
|
||
# ============================================================================================ | ||
# VCPKG Toolchain | ||
# ============================================================================================ | ||
if(WIN32) | ||
# use vcpkg as packages manager in windows platform | ||
# environment variable needs to be added for the path to vcpkg installation "VCPKG_ROOT" | ||
set(CMAKE_TOOLCHAIN_FILE "$ENV{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake") | ||
endif(WIN32) | ||
|
||
# ============================================================================================ | ||
# ============================================================================================ | ||
set(CMAKE_FIND_PACKAGE_PREFER_CONFIG ON) | ||
set(CMAKE_INCLUDE_CURRENT_DIR ON) | ||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON) | ||
#set(CMAKE_INSTALL_PREFIX ${CMAKE_CURRENT_SOURCE_DIR}/build/package) | ||
set(CMAKE_CXX_STANDARD 14) | ||
set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
|
||
set(BUILD_GMOCK OFF CACHE BOOL "" FORCE) | ||
set(BUILD_GTEST ON CACHE BOOL "" FORCE) | ||
|
||
project(OpenKF) | ||
|
||
set(INCLUDE_FOLDER "include") | ||
set(LIBRARY_INSTALL_DIR "lib") | ||
set(INCLUDE_INSTALL_DIR "${INCLUDE_FOLDER}/${PROJECT_NAME}") | ||
set(CONFIG_INSTALL_DIR "${LIBRARY_INSTALL_DIR}/cmake/${PROJECT_NAME}") | ||
set(namespace "%{PROJECT_NAME}::") | ||
set(TARGETS_EXPORT_NAME "${PROJECT_NAME}Targets") | ||
|
||
enable_language(C CXX) | ||
|
||
if (NOT MSVC) | ||
set(CMAKE_CXX_FLAGS "-O3 -Wall -Wextra") | ||
set(CMAKE_CXX_FLAGS_DEBUG "-g -Wall -Wextra") | ||
endif(NOT MSVC) | ||
|
||
if (MSVC) | ||
# https://stackoverflow.com/a/18635749 | ||
add_compile_options(-MTd) | ||
endif (MSVC) | ||
|
||
find_package(Eigen3 3.3 REQUIRED NO_MODULE) | ||
|
||
include(CTest) | ||
|
||
add_subdirectory(src/third_party/googletest) | ||
add_subdirectory(src/openkf) | ||
add_subdirectory(src/examples) | ||
add_subdirectory(tests) | ||
#== == == == == == == == == == == == == == == == == == == == == == == == == == \ | ||
== == == == == == == == == == == == == == == == == == == == | ||
#VCPKG Toolchain | ||
#== == == == == == == == == == == == == == == == == == == == == == == == == == \ | ||
== == == == == == == == == == == == == == == == == == == == | ||
if (WIN32) | ||
#use vcpkg as packages manager in windows platform | ||
#environment variable needs to be added for the path to vcpkg installation \ | ||
"VCPKG_ROOT" | ||
set(CMAKE_TOOLCHAIN_FILE | ||
"$ENV{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake") endif(WIN32) | ||
|
||
#== == == == == == == == == == == == == == == == == == == == == == == == == == \ | ||
== == == == == == == == == == == == == == == == == == == == | ||
#== == == == == == == == == == == == == == == == == == == == == == == == == == \ | ||
== == == == == == == == == == == == == == == == == == == == | ||
set(CMAKE_FIND_PACKAGE_PREFER_CONFIG ON) set( | ||
CMAKE_INCLUDE_CURRENT_DIR | ||
ON) set(CMAKE_EXPORT_COMPILE_COMMANDS ON) | ||
#set(CMAKE_INSTALL_PREFIX ${CMAKE_CURRENT_SOURCE_DIR} / build / package) | ||
set(CMAKE_CXX_STANDARD 14) set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
|
||
set(BUILD_GMOCK OFF CACHE BOOL | ||
"" FORCE) set(BUILD_GTEST ON CACHE BOOL "" FORCE) | ||
|
||
project(OpenKF) | ||
|
||
set(INCLUDE_FOLDER "include") set( | ||
LIBRARY_INSTALL_DIR | ||
"lib") set(INCLUDE_INSTALL_DIR "${INCLUDE_" | ||
"FOLDER}/" | ||
"${PROJECT_" | ||
"NAME}") set(CONFIG_INSTALL_DIR | ||
"${" | ||
"LI" | ||
"BR" | ||
"AR" | ||
"Y_" | ||
"IN" | ||
"ST" | ||
"AL" | ||
"L_" | ||
"DI" | ||
"R}" | ||
"/c" | ||
"ma" | ||
"ke" | ||
"/$" | ||
"{P" | ||
"RO" | ||
"JE" | ||
"CT" | ||
"_N" | ||
"AM" | ||
"E" | ||
"}") | ||
set(namespace "%{PROJECT_NAME}::") set( | ||
TARGETS_EXPORT_NAME | ||
"${PROJECT_NAME}Targets") | ||
|
||
enable_language(C CXX) | ||
|
||
if (NOT MSVC) set(CMAKE_CXX_FLAGS "-O3 " | ||
"-Wal" | ||
"l " | ||
"-Wex" | ||
"tra") set( | ||
CMAKE_CXX_FLAGS_DEBUG | ||
"-g -Wall -Wextra") endif(NOT MSVC) | ||
|
||
if (MSVC) | ||
#https: // stackoverflow.com/a/18635749 | ||
add_compile_options(-MTd) endif( | ||
MSVC) | ||
|
||
find_package( | ||
Eigen3 3.3 REQUIRED | ||
NO_MODULE) | ||
|
||
include(CTest) | ||
|
||
add_subdirectory( | ||
src / | ||
third_party / | ||
googletest) | ||
add_subdirectory( | ||
src / | ||
openkf) | ||
add_subdirectory( | ||
src / | ||
examples) | ||
add_subdirectory( | ||
tests) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
@echo off | ||
|
||
if not exist ".\cpp\build" ( | ||
echo Creating ./cpp/build Folder | ||
md ./cpp/build | ||
) else ( | ||
echo ./cpp/build folder already exists | ||
) | ||
if not exist | ||
".\cpp\build"(echo Creating./ cpp / build Folder md./ cpp / | ||
build) else(echo./ cpp / build folder already exists) | ||
|
||
echo generating meta files | ||
cmake -S ./cpp -B ./cpp/build | ||
echo generating meta files cmake - | ||
S./ cpp - | ||
B./ cpp / | ||
build | ||
|
||
echo building ... | ||
cmake --build ./cpp/build | ||
echo building... cmake-- build./ | ||
cpp / | ||
build | ||
|
||
echo installing ... | ||
cmake --install ./cpp/build --config Debug | ||
::runas /user:Administrator "cmake --install .\cpp\build --config Debug" | ||
echo installing... cmake-- install./ | ||
cpp / build-- config Debug ::runas / | ||
user : Administrator "cmake --install .\cpp\build --config Debug" | ||
|
||
pause | ||
pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,7 @@ | ||
set(EXAMPLE_EXECUTABLE_PREFIX "example_") | ||
|
||
add_subdirectory(kf_state_estimation) | ||
add_subdirectory(ekf_range_sensor) | ||
add_subdirectory(unscented_transform) | ||
add_subdirectory(ukf_range_sensor) | ||
add_subdirectory(test_least_squares) | ||
add_subdirectory(sr_ukf_linear_function) | ||
add_subdirectory(ego_motion_model_adapter) | ||
|
||
add_subdirectory(kf_state_estimation) add_subdirectory(ekf_range_sensor) | ||
add_subdirectory(unscented_transform) add_subdirectory(ukf_range_sensor) | ||
add_subdirectory(test_least_squares) | ||
add_subdirectory(sr_ukf_linear_function) | ||
add_subdirectory(ego_motion_model_adapter) |
Oops, something went wrong.