Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickhart committed Apr 3, 2019
0 parents commit faae59c
Show file tree
Hide file tree
Showing 177 changed files with 12,490 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
test --test_output=errors --action_env="GTEST_COLOR=1"

# Force bazel output to use colors (good for jenkins) and print useful errors.
common --color=yes

build --cxxopt='-std=c++14'
149 changes: 149 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
# Prerequisites
*.d

# Compiled Object files
*.slo
*.lo
*.o
*.obj

# Precompiled Headers
*.gch
*.pch

# Compiled Dynamic libraries
*.so
*.dylib
*.dll

# Fortran module files
*.mod
*.smod

# Compiled Static libraries
*.lai
*.la
*.a
*.lib

# Executables
*.exe
*.out
*.app

# Ignore all bazel-* symlinks. There is no full list since this can change
# based on the name of the directory bazel is cloned into.
/bazel-*

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/

tests/environment/hello-test\.cc

modules/example_module/proto/tutorial/

python/venv
node_modules
web/node_modules

.DS_Store
.gitkeep
20 changes: 20 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
image: git.fortiss.org:5001/autosim/fortiss-behave/docker:latest

stages:
- dependencies
- build
#- test

cache:
paths:
- bazel-source/output
- bazel-*
- python/venv/*

bazel-build:
stage: dependencies
script:
- virtualenv -p python3 ./python/venv --system-site-packages
- source ./python/venv/bin/activate
- pip install -r tools/installers/requirements.txt
- bazel test //...
Empty file.
35 changes: 35 additions & 0 deletions .vscode/.vs_code_bazel_build/vs_code_aspect.bzl
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
def _vs_code_bazel_inspect_impl(target, ctx):
rule_data = None
rule_kind = ctx.rule.kind
trans_descriptor_files = []
if rule_kind == 'cc_library' or rule_kind == 'cc_binary':
rule_data = struct(
includes = target.cc.include_directories
+ target.cc.quote_include_directories
+ target.cc.system_include_directories
)
for dep in ctx.rule.attr.deps:
trans_descriptor_files.append(
dep[OutputGroupInfo].descriptor_files)
trans_descriptor_files.append(
ctx.rule.attr._cc_toolchain[OutputGroupInfo].descriptor_files)

elif rule_kind == 'cc_toolchain' or rule_kind == 'apple_cc_toolchain':
rule_data = struct(
includes = ctx.fragments.cpp.built_in_include_directories
)
target_descriptor_file = ctx.actions.declare_file(
'vs_code_bazel_descriptor_%s.json' % target.label.name)
data = struct(
kind = rule_kind,
data = rule_data
)
ctx.actions.write(target_descriptor_file, data.to_json())
return [OutputGroupInfo(descriptor_files = depset([target_descriptor_file],
transitive = trans_descriptor_files))]

vs_code_bazel_inspect = aspect(
implementation = _vs_code_bazel_inspect_impl,
attr_aspects = ["deps", "_cc_toolchain"],
fragments = ["cpp"]
)
24 changes: 24 additions & 0 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"configurations": [
{
"name": "Linux",
"browse": {
"path": [
"${workspaceFolder}"
],
"limitSymbolsToIncludedHeaders": true
},
"includePath": [
"${workspaceFolder}",
"${workspaceFolder}/modules/world/geometry",
"${workspaceFolder}/bazel-fortiss-behave/external/**"
],
"defines": [],
"compilerPath": "/usr/bin/gcc",
"cStandard": "c11",
"cppStandard": "c++17",
"intelliSenseMode": "clang-x64"
}
],
"version": 4
}
Binary file added .vscode/ipch/fe556594e29f802c/odrSpiral.ipch
Binary file not shown.
36 changes: 36 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Python: Current File",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
"env": {
"PYTHONPATH": "${workspaceFolder}/bazel-bin/examples/od8_const_vel_one_agent.runfiles/__main__/python:${workspaceFolder}/bazel-bin/examples/od8_const_vel_one_agent.runfiles/__main__"
}
},
{
"name": "(gdb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/bazel-bin/tests/world/roadgraph_test",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
},
]
}

0 comments on commit faae59c

Please sign in to comment.