forked from nasa/astrobee
-
Notifications
You must be signed in to change notification settings - Fork 0
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
bb0fc3e
commit c8f3da7
Showing
305 changed files
with
12,249 additions
and
3,952 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,151 @@ | ||
--- | ||
Language: Cpp | ||
# BasedOnStyle: Google | ||
AccessModifierOffset: -1 | ||
AlignAfterOpenBracket: Align | ||
AlignConsecutiveAssignments: false | ||
AlignConsecutiveDeclarations: false | ||
AlignEscapedNewlines: Left | ||
AlignOperands: true | ||
AlignTrailingComments: true | ||
AllowAllParametersOfDeclarationOnNextLine: true | ||
AllowShortBlocksOnASingleLine: false | ||
AllowShortCaseLabelsOnASingleLine: false | ||
AllowShortFunctionsOnASingleLine: All | ||
AllowShortIfStatementsOnASingleLine: true | ||
AllowShortLoopsOnASingleLine: true | ||
AlwaysBreakAfterDefinitionReturnType: None | ||
AlwaysBreakAfterReturnType: None | ||
AlwaysBreakBeforeMultilineStrings: true | ||
AlwaysBreakTemplateDeclarations: Yes | ||
BinPackArguments: true | ||
BinPackParameters: true | ||
BraceWrapping: | ||
AfterClass: false | ||
AfterControlStatement: false | ||
AfterEnum: false | ||
AfterFunction: false | ||
AfterNamespace: false | ||
AfterObjCDeclaration: false | ||
AfterStruct: false | ||
AfterUnion: false | ||
AfterExternBlock: false | ||
BeforeCatch: false | ||
BeforeElse: false | ||
IndentBraces: false | ||
SplitEmptyFunction: true | ||
SplitEmptyRecord: true | ||
SplitEmptyNamespace: true | ||
BreakBeforeBinaryOperators: None | ||
BreakBeforeBraces: Attach | ||
BreakBeforeInheritanceComma: false | ||
BreakInheritanceList: BeforeColon | ||
BreakBeforeTernaryOperators: true | ||
BreakConstructorInitializersBeforeComma: false | ||
BreakConstructorInitializers: BeforeColon | ||
BreakAfterJavaFieldAnnotations: false | ||
BreakStringLiterals: true | ||
ColumnLimit: 120 # changed | ||
CommentPragmas: '^ IWYU pragma:' | ||
CompactNamespaces: false | ||
ConstructorInitializerAllOnOneLineOrOnePerLine: true | ||
ConstructorInitializerIndentWidth: 4 | ||
ContinuationIndentWidth: 2 # changed | ||
Cpp11BracedListStyle: true | ||
DerivePointerAlignment: false # changed | ||
DisableFormat: false | ||
ExperimentalAutoDetectBinPacking: false | ||
FixNamespaceComments: true | ||
ForEachMacros: | ||
- foreach | ||
- Q_FOREACH | ||
- BOOST_FOREACH | ||
IncludeBlocks: Preserve | ||
IncludeCategories: | ||
- Regex: '^<ext/.*\.h>' | ||
Priority: 2 | ||
- Regex: '^<.*\.h>' | ||
Priority: 1 | ||
- Regex: '^<.*' | ||
Priority: 2 | ||
- Regex: '.*' | ||
Priority: 3 | ||
IncludeIsMainRegex: '([-_](test|unittest))?$' | ||
IndentCaseLabels: true | ||
IndentPPDirectives: None | ||
IndentWidth: 2 | ||
IndentWrappedFunctionNames: false | ||
JavaScriptQuotes: Leave | ||
JavaScriptWrapImports: true | ||
KeepEmptyLinesAtTheStartOfBlocks: false | ||
MacroBlockBegin: '' | ||
MacroBlockEnd: '' | ||
MaxEmptyLinesToKeep: 1 | ||
NamespaceIndentation: None | ||
ObjCBinPackProtocolList: Never | ||
ObjCBlockIndentWidth: 2 | ||
ObjCSpaceAfterProperty: false | ||
ObjCSpaceBeforeProtocolList: true | ||
PenaltyBreakAssignment: 2 | ||
PenaltyBreakBeforeFirstCallParameter: 1 | ||
PenaltyBreakComment: 300 | ||
PenaltyBreakFirstLessLess: 120 | ||
PenaltyBreakString: 1000 | ||
PenaltyBreakTemplateDeclaration: 10 | ||
PenaltyExcessCharacter: 1000000 | ||
PenaltyReturnTypeOnItsOwnLine: 200 | ||
PointerAlignment: Left | ||
RawStringFormats: | ||
- Language: Cpp | ||
Delimiters: | ||
- cc | ||
- CC | ||
- cpp | ||
- Cpp | ||
- CPP | ||
- 'c++' | ||
- 'C++' | ||
CanonicalDelimiter: '' | ||
BasedOnStyle: google | ||
- Language: TextProto | ||
Delimiters: | ||
- pb | ||
- PB | ||
- proto | ||
- PROTO | ||
EnclosingFunctions: | ||
- EqualsProto | ||
- EquivToProto | ||
- PARSE_PARTIAL_TEXT_PROTO | ||
- PARSE_TEST_PROTO | ||
- PARSE_TEXT_PROTO | ||
- ParseTextOrDie | ||
- ParseTextProtoOrDie | ||
CanonicalDelimiter: '' | ||
BasedOnStyle: google | ||
ReflowComments: true | ||
SortIncludes: false # changed | ||
SortUsingDeclarations: true | ||
SpaceAfterCStyleCast: false | ||
SpaceAfterTemplateKeyword: true | ||
SpaceBeforeAssignmentOperators: true | ||
SpaceBeforeCpp11BracedList: false | ||
SpaceBeforeCtorInitializerColon: true | ||
SpaceBeforeInheritanceColon: true | ||
SpaceBeforeParens: ControlStatements | ||
SpaceBeforeRangeBasedForLoopColon: true | ||
SpaceInEmptyParentheses: false | ||
SpacesBeforeTrailingComments: 2 | ||
SpacesInAngles: false | ||
SpacesInContainerLiterals: true | ||
SpacesInCStyleCastParentheses: false | ||
SpacesInParentheses: false | ||
SpacesInSquareBrackets: false | ||
Standard: Auto | ||
StatementMacros: | ||
- Q_UNUSED | ||
- QT_REQUIRE_VERSION | ||
TabWidth: 8 | ||
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 |
---|---|---|
@@ -1,2 +1,6 @@ | ||
.git/ | ||
scripts/setup/Dockerfile | ||
scripts/docker/ | ||
submodules/android/ | ||
submodules/avionics/ | ||
submodules/common/ | ||
submodules/platform/ |
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,41 @@ | ||
name: Docker Image CI | ||
|
||
on: | ||
push: | ||
branches: [ 'master', 'develop' ] | ||
pull_request: | ||
branches: [ 'master', 'develop' ] | ||
|
||
jobs: | ||
|
||
build-kinetic: | ||
|
||
runs-on: ubuntu-16.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Checkout submodule | ||
run: git submodule update --init --depth 1 description/media | ||
|
||
- name: Build code for Ubuntu 16 | ||
run: docker build . -f ./scripts/docker/astrobee_kinetic.Dockerfile -t astrobee/astrobee:latest-kinetic | ||
|
||
- name: Test code | ||
run: docker build . -f ./scripts/docker/test_astrobee_kinetic.Dockerfile -t test | ||
|
||
build-melodic: | ||
|
||
runs-on: ubuntu-18.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Checkout submodule | ||
run: git submodule update --init --depth 1 description/media | ||
|
||
- name: Build code for Ubuntu 18 | ||
run: docker build . -f ./scripts/docker/astrobee_melodic.Dockerfile -t astrobee/astrobee:latest-melodic | ||
|
||
- name: Test code | ||
run: docker build . -f ./scripts/docker/test_astrobee_melodic.Dockerfile -t test |
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,72 @@ | ||
# Build documentation and commit to gh-pages branch. | ||
|
||
name: Build and Push Documentation to gh-pages Branch | ||
|
||
on: | ||
push: | ||
branches: ['develop'] | ||
|
||
jobs: | ||
build_and_push_docs: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
path: repo/ | ||
- name: Checkout gh-pages | ||
uses: actions/checkout@v2 | ||
with: | ||
path: docs/ | ||
ref: gh-pages | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get install python-bson | ||
sudo apt-get install flex | ||
sudo apt-get install graphviz | ||
- name: Install doxygen | ||
run: | | ||
wget 'https://sourceforge.net/projects/doxygen/files/rel-1.8.20/doxygen-1.8.20.src.tar.gz' | ||
tar -zxvf doxygen-1.8.20.src.tar.gz | ||
cd doxygen-1.8.20 | ||
mkdir build | ||
cd build | ||
cmake -G "Unix Makefiles" .. | ||
make | ||
sudo make install | ||
- name: install xgds_planner2 | ||
run: | | ||
sudo pip install iso8601 | ||
sudo pip install "django<2" | ||
git clone https://github.com/geocam/geocamUtilWeb.git | ||
cd geocamUtilWeb | ||
sudo python setup.py install | ||
cd .. | ||
git clone https://github.com/xgds/xgds_planner2.git | ||
cd xgds_planner2 | ||
sudo python setup.py install | ||
- name: Generating command dictionary documentation | ||
run: | | ||
cd repo | ||
mkdir doc/html | ||
./scripts/build/genCommandDictionary.py astrobee/commands/freeFlyerPlanSchema.json doc/html/AstrobeeCommandDictionary.html | ||
- name: Build Documentation | ||
run: | | ||
cd repo/doc/diagrams/ && make && cd ../.. | ||
doxygen astrobee.doxyfile | ||
cd .. | ||
- name: Replace old documentation with new | ||
run: | | ||
rm -r docs/html | ||
cp -r repo/doc/html docs | ||
- name: Commit and Push | ||
run: | | ||
cd docs | ||
git add --all html/ | ||
EMAIL=`git show -s --format='%ae' HEAD` | ||
NAME=`git show -s --format='%an' HEAD` | ||
git config user.email "$EMAIL" | ||
git config user.name "$NAME" | ||
{ git commit -m "Automatic update for $GITHUB_SHA." || true; } | ||
git push origin gh-pages |
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 @@ | ||
# Check for lint error and auto correct them | ||
|
||
name: Check for lint errors | ||
|
||
on: ['push', 'pull_request'] | ||
|
||
jobs: | ||
lint_check: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Check repo for lint errors | ||
run: ./scripts/git/cpplint_repo.py . |
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,12 +1,13 @@ | ||
[submodule "submodules/common"] | ||
path = submodules/common | ||
url = https://babelfish.arc.nasa.gov/bitbucket/scm/astrobee/astrobee_common.git | ||
[submodule "submodules/android"] | ||
path = submodules/android | ||
url = https://babelfish.arc.nasa.gov/bitbucket/scm/astrobee/astrobee_android.git | ||
url = https://github.com/nasa/astrobee_android.git | ||
[submodule "submodules/avionics"] | ||
path = submodules/avionics | ||
url = https://babelfish.arc.nasa.gov/bitbucket/scm/astrobee/astrobee_avionics.git | ||
[submodule "submodules/platform"] | ||
path = submodules/platform | ||
url = https://babelfish.arc.nasa.gov/bitbucket/scm/astrobee/astrobee_platform.git | ||
[submodule "description/media"] | ||
path = description/media | ||
url = https://github.com/nasa/astrobee_media.git | ||
shallow = true |
Oops, something went wrong.