Skip to content

Commit 48c058c

Browse files
committed
Code release
0 parents  commit 48c058c

File tree

211 files changed

+29356
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

211 files changed

+29356
-0
lines changed

.clang-format

+117
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
---
2+
Language: Cpp
3+
# BasedOnStyle: Google
4+
AccessModifierOffset: -1
5+
AlignAfterOpenBracket: Align
6+
AlignConsecutiveAssignments: false
7+
AlignConsecutiveDeclarations: false
8+
AlignEscapedNewlines: Left
9+
AlignOperands: true
10+
AlignTrailingComments: true
11+
AllowAllParametersOfDeclarationOnNextLine: true
12+
AllowShortBlocksOnASingleLine: false
13+
AllowShortCaseLabelsOnASingleLine: false
14+
AllowShortFunctionsOnASingleLine: All
15+
AllowShortIfStatementsOnASingleLine: true
16+
AllowShortLoopsOnASingleLine: true
17+
AlwaysBreakAfterDefinitionReturnType: None
18+
AlwaysBreakAfterReturnType: None
19+
AlwaysBreakBeforeMultilineStrings: true
20+
AlwaysBreakTemplateDeclarations: true
21+
BinPackArguments: true
22+
BinPackParameters: true
23+
BraceWrapping:
24+
AfterClass: false
25+
AfterControlStatement: false
26+
AfterEnum: false
27+
AfterFunction: false
28+
AfterNamespace: false
29+
AfterObjCDeclaration: false
30+
AfterStruct: false
31+
AfterUnion: false
32+
AfterExternBlock: false
33+
BeforeCatch: false
34+
BeforeElse: false
35+
IndentBraces: false
36+
SplitEmptyFunction: true
37+
SplitEmptyRecord: true
38+
SplitEmptyNamespace: true
39+
BreakBeforeBinaryOperators: None
40+
BreakBeforeBraces: Attach
41+
BreakBeforeInheritanceComma: false
42+
BreakBeforeTernaryOperators: true
43+
BreakConstructorInitializersBeforeComma: false
44+
BreakConstructorInitializers: BeforeColon
45+
BreakAfterJavaFieldAnnotations: false
46+
BreakStringLiterals: true
47+
ColumnLimit: 120
48+
CommentPragmas: '^ IWYU pragma:'
49+
CompactNamespaces: false
50+
ConstructorInitializerAllOnOneLineOrOnePerLine: true
51+
ConstructorInitializerIndentWidth: 4
52+
ContinuationIndentWidth: 4
53+
Cpp11BracedListStyle: true
54+
DerivePointerAlignment: true
55+
DisableFormat: false
56+
ExperimentalAutoDetectBinPacking: false
57+
FixNamespaceComments: true
58+
ForEachMacros:
59+
- foreach
60+
- Q_FOREACH
61+
- BOOST_FOREACH
62+
IncludeBlocks: Preserve
63+
IncludeCategories:
64+
- Regex: '^<ext/.*\.h>'
65+
Priority: 2
66+
- Regex: '^<.*\.h>'
67+
Priority: 1
68+
- Regex: '^<.*'
69+
Priority: 2
70+
- Regex: '.*'
71+
Priority: 3
72+
IncludeIsMainRegex: '([-_](test|unittest))?$'
73+
IndentCaseLabels: true
74+
IndentPPDirectives: None
75+
IndentWidth: 2
76+
IndentWrappedFunctionNames: false
77+
JavaScriptQuotes: Leave
78+
JavaScriptWrapImports: true
79+
KeepEmptyLinesAtTheStartOfBlocks: false
80+
MacroBlockBegin: ''
81+
MacroBlockEnd: ''
82+
MaxEmptyLinesToKeep: 1
83+
NamespaceIndentation: None
84+
ObjCBlockIndentWidth: 2
85+
ObjCSpaceAfterProperty: false
86+
ObjCSpaceBeforeProtocolList: false
87+
PenaltyBreakAssignment: 2
88+
PenaltyBreakBeforeFirstCallParameter: 1
89+
PenaltyBreakComment: 300
90+
PenaltyBreakFirstLessLess: 120
91+
PenaltyBreakString: 1000
92+
PenaltyExcessCharacter: 1000000
93+
PenaltyReturnTypeOnItsOwnLine: 200
94+
PointerAlignment: Left
95+
RawStringFormats:
96+
- Delimiters: [pb]
97+
Language: TextProto
98+
BasedOnStyle: google
99+
ReflowComments: true
100+
SortIncludes: true
101+
SortUsingDeclarations: true
102+
SpaceAfterCStyleCast: false
103+
SpaceAfterTemplateKeyword: true
104+
SpaceBeforeAssignmentOperators: true
105+
SpaceBeforeParens: ControlStatements
106+
SpaceInEmptyParentheses: false
107+
SpacesBeforeTrailingComments: 2
108+
SpacesInAngles: false
109+
SpacesInContainerLiterals: true
110+
SpacesInCStyleCastParentheses: false
111+
SpacesInParentheses: false
112+
SpacesInSquareBrackets: false
113+
Standard: Auto
114+
TabWidth: 8
115+
UseTab: Never
116+
...
117+

.gitignore

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
*~
2+
ex_calib_result.yaml
3+
vins_result.csv
4+
data_generator/
5+
build/
6+
test/
7+
test.launch
8+
evaluate/
9+
.vscode/
10+
result.txt
11+
result_global.txt
12+
result_gps.txt
13+
0*.txt
14+
1*.txt
15+
2*.txt
16+
camera_camera_calib.yaml
17+
camera_chessboard_data.dat
18+
sim_data
19+
run
20+
.idea
21+
output
22+
config/*.pth

CMakeLists.txt

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
cmake_minimum_required(VERSION 2.8.3)
2+
project(robust_vins)
3+
set(CMAKE_CXX_STANDARD 14)
4+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
5+
6+
set(CMAKE_BUILD_TYPE "Release")
7+
set(CMAKE_CXX_FLAGS "-std=c++14")
8+
#set(CMAKE_CXX_FLAGS "-std=c++11 -O3 -Wall -g -march=native")
9+
#-DEIGEN_USE_MKL_ALL")
10+
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -Wall -g")
11+
#set(CMAKE_CXX_FLAGS_RELEASE "-std=c++11 -O3 -Wall -g -march=native")
12+
13+
find_package(catkin REQUIRED COMPONENTS
14+
roscpp
15+
std_msgs
16+
geometry_msgs
17+
nav_msgs
18+
tf
19+
cv_bridge
20+
camera_models
21+
vins
22+
image_transport
23+
pcl_conversions
24+
pcl_ros
25+
rosbag)
26+
#set(OpenCV_DIR "/usr/local/share/OpenCV")
27+
find_package(OpenCV REQUIRED)
28+
find_package(PCL REQUIRED)
29+
30+
message(WARNING "OpenCV_VERSION: ${OpenCV_VERSION}")
31+
32+
find_package(Ceres REQUIRED)
33+
34+
include_directories(${CERES_INCLUDE_DIRS})
35+
#template sophus
36+
#set(Sophus_DIR "/home/td/slam/install/sophus/share/sophus/cmake/")
37+
find_package(Sophus REQUIRED)
38+
# include_directories(/home/td/slam/install/sophus/include)
39+
40+
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
41+
find_package(Eigen3)
42+
include_directories(
43+
${catkin_INCLUDE_DIRS}
44+
${EIGEN3_INCLUDE_DIR}
45+
${PCL_INCLUDE_DIRS}
46+
)
47+
48+
49+
catkin_package(
50+
CATKIN_DEPENDS roscpp
51+
std_msgs
52+
geometry_msgs
53+
nav_msgs
54+
tf
55+
cv_bridge
56+
camera_models
57+
vins
58+
pcl_conversions
59+
pcl_ros
60+
image_transport
61+
rosbag
62+
)

0 commit comments

Comments
 (0)