Skip to content

Commit b76ac1a

Browse files
committed
Merge remote-tracking branch 'remote-kernel/develop' into develop
2 parents dcfcf1a + db945e4 commit b76ac1a

Some content is hidden

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

63 files changed

+5026
-0
lines changed

docs/module-mola-kernel.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.. _mola-kernel:
2+
3+
====================
4+
Module: mola-kernel
5+
====================
6+
7+
8+
9+
XX
10+
11+
.. index::
12+
single: mola-kernel
13+
module: mola-kernel

mola_kernel/.clang-format

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
Language: Cpp
2+
BasedOnStyle: Google
3+
# ---
4+
#AccessModifierOffset: -4
5+
AlignAfterOpenBracket: AlwaysBreak # Values: Align, DontAlign, AlwaysBreak
6+
AlignConsecutiveAssignments: true
7+
AlignConsecutiveDeclarations: true
8+
#AlignEscapedNewlinesLeft: true
9+
#AlignOperands: false
10+
AlignTrailingComments: false # Should be off, causes many dummy problems!!
11+
#AllowAllParametersOfDeclarationOnNextLine: true
12+
AllowShortBlocksOnASingleLine: true
13+
#AllowShortCaseLabelsOnASingleLine: false
14+
#AllowShortFunctionsOnASingleLine: Empty
15+
#AllowShortIfStatementsOnASingleLine: false
16+
#AllowShortLoopsOnASingleLine: false
17+
#AlwaysBreakAfterDefinitionReturnType: None
18+
#AlwaysBreakAfterReturnType: None
19+
#AlwaysBreakBeforeMultilineStrings: true
20+
#AlwaysBreakTemplateDeclarations: true
21+
#BinPackArguments: false
22+
#BinPackParameters: false
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+
#BeforeCatch: false
33+
#BeforeElse: true
34+
#IndentBraces: false
35+
#BreakBeforeBinaryOperators: None
36+
BreakBeforeBraces: Allman
37+
#BreakBeforeTernaryOperators: true
38+
#BreakConstructorInitializersBeforeComma: false
39+
ColumnLimit: 80
40+
#CommentPragmas: ''
41+
#ConstructorInitializerAllOnOneLineOrOnePerLine: true
42+
#ConstructorInitializerIndentWidth: 4
43+
#ContinuationIndentWidth: 4
44+
#Cpp11BracedListStyle: true
45+
#DerivePointerAlignment: false
46+
#DisableFormat: false
47+
#ExperimentalAutoDetectBinPacking: false
48+
##FixNamespaceComments: true # Not applicable in 3.8
49+
#ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
50+
#IncludeCategories:
51+
#- Regex: '.*'
52+
#Priority: 1
53+
IndentCaseLabels: true
54+
IndentWidth: 4
55+
IndentWrappedFunctionNames: true
56+
#KeepEmptyLinesAtTheStartOfBlocks: true
57+
#MacroBlockBegin: ''
58+
#MacroBlockEnd: ''
59+
MaxEmptyLinesToKeep: 1
60+
NamespaceIndentation: None
61+
#PenaltyBreakBeforeFirstCallParameter: 19
62+
#PenaltyBreakComment: 300
63+
#PenaltyBreakFirstLessLess: 120
64+
#PenaltyBreakString: 1000
65+
#PenaltyExcessCharacter: 1000000
66+
#PenaltyReturnTypeOnItsOwnLine: 200
67+
DerivePointerAlignment: false
68+
#PointerAlignment: Left
69+
ReflowComments: true # Should be true, otherwise clang-format doesn't touch comments
70+
SortIncludes: true
71+
#SpaceAfterCStyleCast: false
72+
SpaceBeforeAssignmentOperators: true
73+
#SpaceBeforeParens: ControlStatements
74+
#SpaceInEmptyParentheses: false
75+
#SpacesBeforeTrailingComments: 2
76+
#SpacesInAngles: false
77+
#SpacesInContainerLiterals: true
78+
#SpacesInCStyleCastParentheses: false
79+
#SpacesInParentheses: false
80+
#SpacesInSquareBrackets: false
81+
Standard: Cpp11
82+
TabWidth: 4
83+
UseTab: Never # Available options are Never, Always, ForIndentation

mola_kernel/CHANGELOG.rst

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2+
Changelog for package mola_kernel
3+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4+
5+
0.2.2 (2023-09-08)
6+
------------------
7+
* Correct references to the license.
8+
* viz interface: new service update_3d_object()
9+
* Fix const-correctness of observations
10+
* FIX missing dependency on mrpt::gui for public header
11+
* Contributors: Jose Luis Blanco-Claraco
12+
13+
0.2.1 (2023-09-02)
14+
------------------
15+
16+
* Add virtual interface for dataset groundtruth
17+
* Update copyright date
18+
* Update to new colcon ROS2 build system
19+
* Contributors: Jose Luis Blanco-Claraco

mola_kernel/CMakeLists.txt

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# ------------------------------------------------------------------------------
2+
# A Modular Optimization framework for Localization and mApping
3+
# (MOLA)
4+
#
5+
# Copyright (C) 2018-2023, Jose Luis Blanco-Claraco, contributors (AUTHORS.md)
6+
# All rights reserved.
7+
# Released under GNU GPL v3. See LICENSE file
8+
# ------------------------------------------------------------------------------
9+
10+
# Minimum CMake vesion: limited by CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS
11+
cmake_minimum_required(VERSION 3.4)
12+
13+
# Tell CMake we'll use C++ for use in its tests/flags
14+
project(mola_kernel LANGUAGES CXX)
15+
16+
# MOLA CMake scripts: "mola_xxx()"
17+
find_package(mola_common REQUIRED)
18+
find_package(mola_yaml REQUIRED)
19+
20+
# find dependencies:
21+
find_package(MRPT 2.1.0 REQUIRED COMPONENTS gui obs maps)
22+
23+
# define lib:
24+
file(GLOB_RECURSE LIB_SRCS src/*.cpp src/*.h)
25+
file(GLOB_RECURSE LIB_PUBLIC_HDRS include/*.h)
26+
27+
mola_add_library(
28+
TARGET ${PROJECT_NAME}
29+
SOURCES ${LIB_SRCS} ${LIB_PUBLIC_HDRS}
30+
PUBLIC_LINK_LIBRARIES
31+
mrpt::obs
32+
mrpt::gui
33+
mola_yaml
34+
PRIVATE_LINK_LIBRARIES
35+
mrpt::gui #TODO: remove after mapviz!
36+
mrpt::maps #TODO: remove after mapviz!
37+
CMAKE_DEPENDENCIES
38+
mrpt-obs
39+
mrpt-gui
40+
mola_yaml
41+
)
42+
43+
if ("$ENV{VERBOSE}")
44+
message(STATUS "mola_kernel: Using MRPT version: ${MRPT_VERSION}")
45+
endif()

0 commit comments

Comments
 (0)