From 14a4a2df1e23385a9fed6204a2da7a6c3a1162a5 Mon Sep 17 00:00:00 2001 From: huyenngn Date: Fri, 15 Dec 2023 14:28:30 +0100 Subject: [PATCH] feat: Import from git --- .git_archival.txt | 7 + .gitattributes | 11 + .github/workflows/build-test-publish.yml | 76 + .github/workflows/docs.yml | 39 + .github/workflows/lint.yml | 42 + .gitignore | 158 ++ .gitmodules | 9 + .pre-commit-config.yaml | 103 ++ CONTRIBUTING.md | 159 ++ LICENSES/.license_header.txt | 2 + LICENSES/Apache-2.0.txt | 202 +++ LICENSES/CC0-1.0.txt | 121 ++ README.md | 55 + capella_ros_tools/__init__.py | 11 + capella_ros_tools/__main__.py | 111 ++ capella_ros_tools/display/__init__.py | 3 + capella_ros_tools/display/app.py | 67 + .../display/static/icons/favicon.ico | Bin 0 -> 1150 bytes .../display/static/icons/favicon.ico.license | 2 + capella_ros_tools/display/static/styles.css | 153 ++ .../display/templates/class.html | 63 + capella_ros_tools/display/templates/enum.html | 56 + .../display/templates/package.html | 92 ++ capella_ros_tools/modules/__init__.py | 3 + capella_ros_tools/modules/capella/__init__.py | 57 + capella_ros_tools/modules/capella/parser.py | 70 + .../modules/capella/serializer.py | 221 +++ .../modules/messages/__init__.py | 120 ++ capella_ros_tools/modules/messages/parser.py | 317 ++++ .../modules/messages/serializer.py | 38 + capella_ros_tools/scripts/__init__.py | 4 + capella_ros_tools/scripts/capella2msg.py | 35 + capella_ros_tools/scripts/msg2capella.py | 184 +++ docs/Makefile | 23 + docs/make.bat | 37 + docs/source/_static/github-logo.svg | 9 + docs/source/conf.py | 115 ++ docs/source/examples/Convert messages.ipynb | 1276 +++++++++++++++++ .../examples/Convert messages.ipynb.license | 2 + docs/source/examples/Parse messages.ipynb | 312 ++++ .../examples/Parse messages.ipynb.license | 2 + .../examples/data/empty_project_52/.project | 12 + .../data/empty_project_52/.project.license | 2 + .../empty_project_52/empty_project_52.afm | 4 + .../empty_project_52.afm.license | 2 + .../empty_project_52/empty_project_52.aird | 29 + .../empty_project_52.aird.license | 2 + .../empty_project_52/empty_project_52.capella | 272 ++++ .../empty_project_52.capella.license | 2 + docs/source/index.rst | 25 + git-conventional-commits.json | 18 + git-conventional-commits.json.license | 2 + pyproject.toml | 202 +++ tests/test_capella_ros_tools.py | 8 + 54 files changed, 4947 insertions(+) create mode 100644 .git_archival.txt create mode 100644 .gitattributes create mode 100644 .github/workflows/build-test-publish.yml create mode 100644 .github/workflows/docs.yml create mode 100644 .github/workflows/lint.yml create mode 100644 .gitignore create mode 100644 .gitmodules create mode 100644 .pre-commit-config.yaml create mode 100644 CONTRIBUTING.md create mode 100644 LICENSES/.license_header.txt create mode 100644 LICENSES/Apache-2.0.txt create mode 100644 LICENSES/CC0-1.0.txt create mode 100644 README.md create mode 100644 capella_ros_tools/__init__.py create mode 100644 capella_ros_tools/__main__.py create mode 100644 capella_ros_tools/display/__init__.py create mode 100644 capella_ros_tools/display/app.py create mode 100644 capella_ros_tools/display/static/icons/favicon.ico create mode 100644 capella_ros_tools/display/static/icons/favicon.ico.license create mode 100644 capella_ros_tools/display/static/styles.css create mode 100644 capella_ros_tools/display/templates/class.html create mode 100644 capella_ros_tools/display/templates/enum.html create mode 100644 capella_ros_tools/display/templates/package.html create mode 100644 capella_ros_tools/modules/__init__.py create mode 100644 capella_ros_tools/modules/capella/__init__.py create mode 100644 capella_ros_tools/modules/capella/parser.py create mode 100644 capella_ros_tools/modules/capella/serializer.py create mode 100644 capella_ros_tools/modules/messages/__init__.py create mode 100644 capella_ros_tools/modules/messages/parser.py create mode 100644 capella_ros_tools/modules/messages/serializer.py create mode 100644 capella_ros_tools/scripts/__init__.py create mode 100644 capella_ros_tools/scripts/capella2msg.py create mode 100644 capella_ros_tools/scripts/msg2capella.py create mode 100644 docs/Makefile create mode 100644 docs/make.bat create mode 100644 docs/source/_static/github-logo.svg create mode 100644 docs/source/conf.py create mode 100644 docs/source/examples/Convert messages.ipynb create mode 100644 docs/source/examples/Convert messages.ipynb.license create mode 100644 docs/source/examples/Parse messages.ipynb create mode 100644 docs/source/examples/Parse messages.ipynb.license create mode 100644 docs/source/examples/data/empty_project_52/.project create mode 100644 docs/source/examples/data/empty_project_52/.project.license create mode 100644 docs/source/examples/data/empty_project_52/empty_project_52.afm create mode 100644 docs/source/examples/data/empty_project_52/empty_project_52.afm.license create mode 100644 docs/source/examples/data/empty_project_52/empty_project_52.aird create mode 100644 docs/source/examples/data/empty_project_52/empty_project_52.aird.license create mode 100644 docs/source/examples/data/empty_project_52/empty_project_52.capella create mode 100644 docs/source/examples/data/empty_project_52/empty_project_52.capella.license create mode 100644 docs/source/index.rst create mode 100644 git-conventional-commits.json create mode 100644 git-conventional-commits.json.license create mode 100644 pyproject.toml create mode 100644 tests/test_capella_ros_tools.py diff --git a/.git_archival.txt b/.git_archival.txt new file mode 100644 index 0000000..1c1d2e8 --- /dev/null +++ b/.git_archival.txt @@ -0,0 +1,7 @@ +Copyright DB Netz AG and contributors +SPDX-License-Identifier: CC0-1.0 + +node: $Format:%H$ +node-date: $Format:%cI$ +describe-name: $Format:%(describe:tags=true)$ +ref-names: $Format:%D$ diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..de62da1 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,11 @@ +# Copyright DB Netz AG and contributors +# SPDX-License-Identifier: CC0-1.0 + +* text=auto + +*.{cmd,[cC][mM][dD]} text eol=crlf +*.{bat,[bB][aA][tT]} text eol=crlf + +*.{sh,py} text eol=lf + +.git_archival.txt export-subst diff --git a/.github/workflows/build-test-publish.yml b/.github/workflows/build-test-publish.yml new file mode 100644 index 0000000..afc0cff --- /dev/null +++ b/.github/workflows/build-test-publish.yml @@ -0,0 +1,76 @@ +# Copyright DB Netz AG and contributors +# SPDX-License-Identifier: CC0-1.0 + +name: Build + +on: + push: + branches: ["*"] + pull_request: [master] + tags: ["v*.*.*"] + +jobs: + test: + name: Test with Python ${{matrix.python_version}} on ${{matrix.os}} + runs-on: ${{matrix.os}} + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest] + python_version: + - "3.9" + - "3.10" + include: + - os: windows-latest + python_version: "3.9" + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{matrix.python_version}} + uses: actions/setup-python@v2 + with: + python-version: ${{matrix.python_version}} + - uses: actions/cache@v2 + with: + path: ~/.cache/pip + key: ${{runner.os}}-pip-${{hashFiles('pyproject.toml')}} + restore-keys: | + ${{runner.os}}-pip- + ${{runner.os}}- + - name: Upgrade Pip + run: |- + python -m pip install -U pip + - name: Install test dependencies + run: |- + python -m pip install '.[test]' + - name: Run unit tests + run: |- + python -m pytest --cov-report=term --cov=capella_ros_tools --rootdir=. + + publish: + name: Publish artifacts + runs-on: ubuntu-latest + needs: test + steps: + - uses: actions/checkout@v2 + - name: Setup Python + uses: actions/setup-python@v2 + with: + python-version: "3.9" + - name: Install dependencies + run: |- + python -m pip install -U pip + python -m pip install build twine + - name: Build packages + run: |- + python -m build + - name: Verify packages + run: |- + python -m twine check dist/* + - name: Upload artifacts + uses: actions/upload-artifact@v2 + with: + name: Artifacts + path: 'dist/*' + - name: Publish to PyPI (release only) + if: startsWith(github.ref, 'refs/tags/v') + run: python -m twine upload -u __token__ -p ${{ secrets.PYPI_TOKEN }} --non-interactive dist/* diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 0000000..53da3d1 --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,39 @@ +# Copyright DB Netz AG and contributors +# SPDX-License-Identifier: CC0-1.0 + +name: Docs + +on: + push: + branches: ["master"] + +jobs: + sphinx: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - uses: actions/setup-python@v2 + with: + python-version: "3.9" + - name: Upgrade pip + run: | + python -m pip install -U pip + - name: Install dependencies + run: | + python -m pip install '.[docs]' + - name: Auto-generate APIDOC sources + run: |- + sphinx-apidoc --output-dir docs/source/code --force . + - name: Create docs + run: | + make -C docs html + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + force_orphan: true + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./docs/build/html diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..f975712 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,42 @@ +# Copyright DB Netz AG and contributors +# SPDX-License-Identifier: CC0-1.0 + +name: Lint + +on: + push: + branches: ["*"] + +jobs: + pre-commit: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + with: + python-version: "3.9" + - name: Upgrade pip + run: |- + python -m pip install -U pip + - name: Install pre-commit + run: |- + python -m pip install pre-commit types-docutils + - name: Run Pre-Commit + run: |- + pre-commit run --all-files + pylint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + with: + python-version: "3.9" + - name: Upgrade pip + run: |- + python -m pip install -U pip + - name: Install pylint + run: |- + python -m pip install pylint + - name: Run pylint + run: |- + pylint -dfixme capella_ros_tools || exit $(($? & ~24)) diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..975287e --- /dev/null +++ b/.gitignore @@ -0,0 +1,158 @@ +# Copyright DB Netz AG and contributors +# SPDX-License-Identifier: CC0-1.0 + +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +share/python-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/ +.nox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +*.py,cover +.hypothesis/ +.pytest_cache/ +cover/ + +# Translations +*.mo +*.pot + +# Django stuff: +*.log +local_settings.py +db.sqlite3 +db.sqlite3-journal + +# Flask stuff: +instance/ +.webassets-cache + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ +docs/source/code/ +docs/source/_build + +# PyBuilder +.pybuilder/ +target/ + +# Jupyter Notebook +.ipynb_checkpoints + +# IPython +profile_default/ +ipython_config.py + +# pyenv +# For a library or package, you might want to ignore these files since the code is +# intended to run in multiple environments; otherwise, check them in: +# .python-version + +# pipenv +# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. +# However, in case of collaboration, if having platform-specific dependencies or dependencies +# having no cross-platform support, pipenv may install dependencies that don't work, or not +# install all needed dependencies. +#Pipfile.lock + +# poetry +# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control. +# This is especially recommended for binary packages to ensure reproducibility, and is more +# commonly ignored for libraries. +# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control +#poetry.lock + +# pdm +# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control. +#pdm.lock +# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it +# in version control. +# https://pdm.fming.dev/#use-with-ide +.pdm.toml + +# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm +__pypackages__/ + +# Celery stuff +celerybeat-schedule +celerybeat.pid + +# 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/ +.dmypy.json +dmypy.json + +# Pyre type checker +.pyre/ + +# pytype static type analyzer +.pytype/ + +# Cython debug symbols +cython_debug/ diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..b2e01b9 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,9 @@ +# Copyright DB Netz AG and contributors +# SPDX-License-Identifier: CC0-1.0 + +[submodule "common_interfaces"] + path = capella_ros_tools/msg_to_capella/ros_interfaces/common_interfaces + url = https://github.com/ros2/common_interfaces.git +[submodule "rcl_interfaces"] + path = capella_ros_tools/msg_to_capella/ros_interfaces/rcl_interfaces + url = https://github.com/ros2/rcl_interfaces.git diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..caf8bff --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,103 @@ +# Copyright DB Netz AG and contributors +# SPDX-License-Identifier: CC0-1.0 + +default_install_hook_types: [commit-msg, pre-commit] +default_stages: [commit, merge-commit] +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.4.0 + hooks: + - id: check-added-large-files + - id: check-ast + - id: check-builtin-literals + - id: check-case-conflict + - id: check-executables-have-shebangs + - id: check-json + - id: check-merge-conflict + - id: check-shebang-scripts-are-executable + - id: check-symlinks + - id: check-toml + - id: check-vcs-permalinks + - id: check-xml + - id: check-yaml + - id: debug-statements + - id: destroyed-symlinks + - id: end-of-file-fixer + - id: fix-byte-order-marker + - id: trailing-whitespace + - repo: https://github.com/psf/black-pre-commit-mirror + rev: 23.9.1 + hooks: + - id: black + - repo: https://github.com/PyCQA/isort + rev: 5.12.0 + hooks: + - id: isort + - repo: https://github.com/PyCQA/docformatter + rev: v1.7.5 + hooks: + - id: docformatter + additional_dependencies: + - docformatter[tomli] + - repo: https://github.com/PyCQA/pydocstyle + rev: 6.3.0 + hooks: + - id: pydocstyle + exclude: '^tests/' + additional_dependencies: + - pydocstyle[toml] + - repo: https://github.com/pre-commit/mirrors-mypy + rev: v1.5.1 + hooks: + - id: mypy + - repo: https://github.com/Lucas-C/pre-commit-hooks + rev: v1.4.2 + hooks: + - id: insert-license + name: Insert license headers (shell-style comments) + files: '(?:^|/)(?:.*\.(?:py|sh|toml|ya?ml)|Dockerfile|Makefile)$' + exclude: '(?:^|/)\..+|^docs/Makefile$' + args: + - --detect-license-in-X-top-lines=15 + - --license-filepath + - LICENSES/.license_header.txt + - --comment-style + - '#' + - id: insert-license + name: Insert license headers (XML-style comments) + files: '\.(?:html|md|xml)$' + exclude: '(?:^|/)\..+' + args: + - --detect-license-in-X-top-lines=15 + - --license-filepath + - LICENSES/.license_header.txt + - --comment-style + - '' + - id: insert-license + name: Insert license headers (C-style comments) + files: '\.(?:css|js|ts)$' + exclude: '(?:^|/)\..+' + args: + - --detect-license-in-X-top-lines=15 + - --license-filepath + - LICENSES/.license_header.txt + - --comment-style + - '/*| *| */' + - id: insert-license + name: Insert license headers (reST comments) + files: '\.rst$' + exclude: '(?:^|/)\..+' + args: + - --detect-license-in-X-top-lines=15 + - --license-filepath + - LICENSES/.license_header.txt + - --comment-style + - '..| |' + - repo: https://github.com/fsfe/reuse-tool + rev: v2.1.0 + hooks: + - id: reuse + - repo: https://github.com/qoomon/git-conventional-commits + rev: v2.6.5 + hooks: + - id: conventional-commits diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..46bfb69 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,159 @@ + + +# Contributing + +Thanks for your interest in our project. Contributions are always welcome! + +We are committed to fostering a welcoming, respectful, and harassment-free +environment. Be kind! + +If you have questions, ideas or want to report a bug, feel free to [open an +issue]. Or go ahead and [open a pull request] to contribute code. In order to +reduce the burden on our maintainers, please make sure that your code follows +our style guidelines outlined below. + + +[open an issue]: https://github.com/DSD-DBS/capella-ros-tools/issues +[open a pull request]: https://github.com/DSD-DBS/capella-ros-tools/pulls + +## Developing + +We recommend that you +[develop inside of a virtual environment](README.md#installation). After you +have set it up, simply run the unit tests to verify that everything is set up +correctly: + +```sh +pytest +``` + +We additionally recommend that you set up your editor / IDE as follows. + +- Indent with 4 spaces per level of indentation + +- Maximum line length of 79 (add a ruler / thin line / highlighting / ...) + +- _If you use Visual Studio Code_: Consider using a platform which supports + third-party language servers more easily, and continue with the next point. + + Otherwise, set up the editor to run `black`, `pylint` and `mypy` when saving. + To enable automatic import sorting with `isort`, add the following to your + `settings.json`: + + ```json + "[python]": { + "editor.codeActionsOnSave": { + "source.organizeImports": true + } + } + ``` + + Note that the Pylance language server is not recommended, as it occasionally + causes false-positive errors for perfectly valid code. + +- _If you do not use VSC_: Set up your editor to use the [python-lsp-server], + and make sure that the relevant plugins are installed. You can install + everything that's needed into the virtualenv with pip: + + [python-lsp-server]: https://github.com/python-lsp/python-lsp-server + + ```sh + pip install "python-lsp-server[pylint]" python-lsp-black pyls-isort pylsp-mypy + ``` + + This will provide as-you-type linting as well as automatic formatting on + save. Language server clients are available for a wide range of editors, from + Vim/Emacs to PyCharm/IDEA. + +## Code style + +We base our code style on a modified version of the +[Google style guide for Python code](https://google.github.io/styleguide/pyguide.html). +The key differences are: + +- **Docstrings**: The [Numpy style guide] applies here. + + [numpy style guide]: + https://numpydoc.readthedocs.io/en/latest/format.html#docstring-standard + + When writing docstrings for functions, use the imperative style, as per + [PEP-257]). For example, write "Do X and Y" instead of "Does X and Y". + + [pep-257]: https://peps.python.org/pep-0257/ + +- **Overridden methods**: If the documentation did not change from the base + class (i.e. the base class' method's docstring still applies without + modification), do not add a short docstring á la "See base class". This lets + automated tools pick up the full base class docstring instead, and is + therefore more useful in IDEs etc. + +- **Linting**: Use [pylint] for static code analysis, and [mypy] for static + type checking. + + [pylint]: https://github.com/PyCQA/pylint + [mypy]: https://github.com/python/mypy + +- **Formatting**: Use [black] as code auto-formatter. The maximum line length + is 79, as per [PEP-8]. This setting should be automatically picked up from + the `pyproject.toml` file. The reason for the shorter line length is that it + avoids wrapping and overflows in side-by-side split views (e.g. diffs) if + there's also information displayed to the side of it (e.g. a tree view of the + modified files). + + [black]: https://github.com/psf/black + [pep-8]: https://www.python.org/dev/peps/pep-0008/ + + Be aware of the different line length of 72 for docstrings. We currently do + not have a satisfactory solution to automatically apply or enforce this. + + Note that, while you're encouraged to do so in general, it is not a hard + requirement to break up long strings into smaller parts. Additionally, never + break up strings that are presented to the user in e.g. log messages, as that + makes it significantly harder to grep for them. + + Use [isort] for automatic sorting of imports. Its settings should + automatically be picked up from the `pyproject.toml` file as well. + + [isort]: https://github.com/PyCQA/isort + +- **Typing**: We do not make an exception for `typing` imports. Instead of + writing `from typing import SomeName`, use `import typing as t` and access + typing related classes like `t.TypedDict`. + + + + Use the new syntax and classes for typing introduced with Python 3.10 and available using + `from __future__ import annotations` since Python 3.8. + + Be aware however that this only works in the context of annotations; the code + still needs to run on Python 3.9! This means that in some (rare) cases, you _must_ use the + old-style type hints. + + - Instead of `t.Tuple`, `t.List` etc. use the builtin classes `tuple`, `list` + etc. + - For classes that are not builtin (e.g. `Iterable`), + `import collections.abc as cabc` and then use them like `cabc.Iterable`. + - Use [PEP-604-style unions], e.g. `int | float` instead of + `t.Union[int, float]`. + - Use `... | None` (with `None` always as the last union member) instead of + `t.Optional[...]` and always explicitly annotate where `None` is possible. + + [pep-604-style unions]: https://www.python.org/dev/peps/pep-0604/ + +- **Python style rules**: For conflicting parts, the [Black code style] wins. + If you have set up black correctly, you don't need to worry about this though + :) + + [black code style]: + https://black.readthedocs.io/en/stable/the_black_code_style/current_style.html + +- When working with `dict`s, consider using `t.TypedDict` instead of a more + generic `dict[str, float|int|str]`-like annotation where possible, as the + latter is much less precise (often requiring additional `assert`s or + `isinstance` checks to pass) and can grow unwieldy very quickly. + +- Prefer `t.NamedTuple` over `collections.namedtuple`, because the former uses + a more convenient `class ...:` syntax and also supports type annotations. diff --git a/LICENSES/.license_header.txt b/LICENSES/.license_header.txt new file mode 100644 index 0000000..c3fb022 --- /dev/null +++ b/LICENSES/.license_header.txt @@ -0,0 +1,2 @@ +Copyright DB Netz AG and contributors +SPDX-License-Identifier: Apache-2.0 diff --git a/LICENSES/Apache-2.0.txt b/LICENSES/Apache-2.0.txt new file mode 100644 index 0000000..d645695 --- /dev/null +++ b/LICENSES/Apache-2.0.txt @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/LICENSES/CC0-1.0.txt b/LICENSES/CC0-1.0.txt new file mode 100644 index 0000000..0e259d4 --- /dev/null +++ b/LICENSES/CC0-1.0.txt @@ -0,0 +1,121 @@ +Creative Commons Legal Code + +CC0 1.0 Universal + + CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE + LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN + ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS + INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES + REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS + PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM + THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED + HEREUNDER. + +Statement of Purpose + +The laws of most jurisdictions throughout the world automatically confer +exclusive Copyright and Related Rights (defined below) upon the creator +and subsequent owner(s) (each and all, an "owner") of an original work of +authorship and/or a database (each, a "Work"). + +Certain owners wish to permanently relinquish those rights to a Work for +the purpose of contributing to a commons of creative, cultural and +scientific works ("Commons") that the public can reliably and without fear +of later claims of infringement build upon, modify, incorporate in other +works, reuse and redistribute as freely as possible in any form whatsoever +and for any purposes, including without limitation commercial purposes. +These owners may contribute to the Commons to promote the ideal of a free +culture and the further production of creative, cultural and scientific +works, or to gain reputation or greater distribution for their Work in +part through the use and efforts of others. + +For these and/or other purposes and motivations, and without any +expectation of additional consideration or compensation, the person +associating CC0 with a Work (the "Affirmer"), to the extent that he or she +is an owner of Copyright and Related Rights in the Work, voluntarily +elects to apply CC0 to the Work and publicly distribute the Work under its +terms, with knowledge of his or her Copyright and Related Rights in the +Work and the meaning and intended legal effect of CC0 on those rights. + +1. Copyright and Related Rights. A Work made available under CC0 may be +protected by copyright and related or neighboring rights ("Copyright and +Related Rights"). Copyright and Related Rights include, but are not +limited to, the following: + + i. the right to reproduce, adapt, distribute, perform, display, + communicate, and translate a Work; + ii. moral rights retained by the original author(s) and/or performer(s); +iii. publicity and privacy rights pertaining to a person's image or + likeness depicted in a Work; + iv. rights protecting against unfair competition in regards to a Work, + subject to the limitations in paragraph 4(a), below; + v. rights protecting the extraction, dissemination, use and reuse of data + in a Work; + vi. database rights (such as those arising under Directive 96/9/EC of the + European Parliament and of the Council of 11 March 1996 on the legal + protection of databases, and under any national implementation + thereof, including any amended or successor version of such + directive); and +vii. other similar, equivalent or corresponding rights throughout the + world based on applicable law or treaty, and any national + implementations thereof. + +2. Waiver. To the greatest extent permitted by, but not in contravention +of, applicable law, Affirmer hereby overtly, fully, permanently, +irrevocably and unconditionally waives, abandons, and surrenders all of +Affirmer's Copyright and Related Rights and associated claims and causes +of action, whether now known or unknown (including existing as well as +future claims and causes of action), in the Work (i) in all territories +worldwide, (ii) for the maximum duration provided by applicable law or +treaty (including future time extensions), (iii) in any current or future +medium and for any number of copies, and (iv) for any purpose whatsoever, +including without limitation commercial, advertising or promotional +purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each +member of the public at large and to the detriment of Affirmer's heirs and +successors, fully intending that such Waiver shall not be subject to +revocation, rescission, cancellation, termination, or any other legal or +equitable action to disrupt the quiet enjoyment of the Work by the public +as contemplated by Affirmer's express Statement of Purpose. + +3. Public License Fallback. Should any part of the Waiver for any reason +be judged legally invalid or ineffective under applicable law, then the +Waiver shall be preserved to the maximum extent permitted taking into +account Affirmer's express Statement of Purpose. In addition, to the +extent the Waiver is so judged Affirmer hereby grants to each affected +person a royalty-free, non transferable, non sublicensable, non exclusive, +irrevocable and unconditional license to exercise Affirmer's Copyright and +Related Rights in the Work (i) in all territories worldwide, (ii) for the +maximum duration provided by applicable law or treaty (including future +time extensions), (iii) in any current or future medium and for any number +of copies, and (iv) for any purpose whatsoever, including without +limitation commercial, advertising or promotional purposes (the +"License"). The License shall be deemed effective as of the date CC0 was +applied by Affirmer to the Work. Should any part of the License for any +reason be judged legally invalid or ineffective under applicable law, such +partial invalidity or ineffectiveness shall not invalidate the remainder +of the License, and in such case Affirmer hereby affirms that he or she +will not (i) exercise any of his or her remaining Copyright and Related +Rights in the Work or (ii) assert any associated claims and causes of +action with respect to the Work, in either case contrary to Affirmer's +express Statement of Purpose. + +4. Limitations and Disclaimers. + + a. No trademark or patent rights held by Affirmer are waived, abandoned, + surrendered, licensed or otherwise affected by this document. + b. Affirmer offers the Work as-is and makes no representations or + warranties of any kind concerning the Work, express, implied, + statutory or otherwise, including without limitation warranties of + title, merchantability, fitness for a particular purpose, non + infringement, or the absence of latent or other defects, accuracy, or + the present or absence of errors, whether or not discoverable, all to + the greatest extent permissible under applicable law. + c. Affirmer disclaims responsibility for clearing rights of other persons + that may apply to the Work or any use thereof, including without + limitation any person's Copyright and Related Rights in the Work. + Further, Affirmer disclaims responsibility for obtaining any necessary + consents, permissions or other rights required for any use of the + Work. + d. Affirmer understands and acknowledges that Creative Commons is not a + party to this document and has no duty or obligation with respect to + this CC0 or use of the Work. diff --git a/README.md b/README.md new file mode 100644 index 0000000..6f3eed9 --- /dev/null +++ b/README.md @@ -0,0 +1,55 @@ + + +# capella-ros-tools + +![image](https://github.com/DSD-DBS/capella-ros-tools/actions/workflows/build-test-publish.yml/badge.svg) +![image](https://github.com/DSD-DBS/capella-ros-tools/actions/workflows/lint.yml/badge.svg) + +API and scripts to parse .msg files and convert them to Capella + +# Documentation + +Read the [full documentation on Github pages](https://dsd-dbs.github.io/capella-ros-tools). + +# Installation + +You can install the latest released version directly from PyPI. + +```sh +pip install capella-ros-tools +``` + +To set up a development environment, clone the project and install it into a +virtual environment. + +```sh +git clone https://github.com/DSD-DBS/capella-ros-tools +cd capella-ros-tools +python -m venv .venv + +source .venv/bin/activate.sh # for Linux / Mac +.venv\Scripts\activate # for Windows + +pip install -U pip pre-commit +pip install -e '.[docs,test]' +pre-commit install +``` + +# Contributing + +We'd love to see your bug reports and improvement suggestions! Please take a +look at our [guidelines for contributors](CONTRIBUTING.md) for details. + +# Licenses + +This project is compliant with the +[REUSE Specification Version 3.0](https://git.fsfe.org/reuse/docs/src/commit/d173a27231a36e1a2a3af07421f5e557ae0fec46/spec.md). + +Copyright DB Netz AG, licensed under Apache 2.0 (see full text in +[LICENSES/Apache-2.0.txt](LICENSES/Apache-2.0.txt)) + +Dot-files are licensed under CC0-1.0 (see full text in +[LICENSES/CC0-1.0.txt](LICENSES/CC0-1.0.txt)) diff --git a/capella_ros_tools/__init__.py b/capella_ros_tools/__init__.py new file mode 100644 index 0000000..c41de8b --- /dev/null +++ b/capella_ros_tools/__init__.py @@ -0,0 +1,11 @@ +# Copyright DB Netz AG and contributors +# SPDX-License-Identifier: Apache-2.0 +"""The capella_ros_tools package.""" + +from importlib import metadata + +try: + __version__ = metadata.version("capella_ros_tools") +except metadata.PackageNotFoundError: # pragma: no cover + __version__ = "0.0.0+unknown" +del metadata diff --git a/capella_ros_tools/__main__.py b/capella_ros_tools/__main__.py new file mode 100644 index 0000000..30f124c --- /dev/null +++ b/capella_ros_tools/__main__.py @@ -0,0 +1,111 @@ +# Copyright DB Netz AG and contributors +# SPDX-License-Identifier: Apache-2.0 +"""Main entry point into capella_ros_tools.""" + +import sys +import typing as t +from pathlib import Path + +import capellambse +import click + +import capella_ros_tools +from capella_ros_tools.display import app +from capella_ros_tools.scripts import capella2msg, msg2capella + + +@click.command() +@click.version_option( + version=capella_ros_tools.__version__, + prog_name="capella-ros-tools", + message="%(prog)s %(version)s", +) +@click.option( + "--exists-action", + "action", + type=click.Choice(["k", "o", "a"], case_sensitive=False), + default="c" if sys.stdin.isatty() else "a", + help="Default action when an element already exists: (k)eep, (o)verwrite, (a)bort.", +) +@click.option("--port", "-p", type=int, help="Port for HTML display.") +@click.option( + "--in", + "-i", + "in_", + nargs=2, + type=(click.Choice(["capella", "messages"]), str), + required=True, + help="Input file type and path.", +) +@click.option( + "--out", + "-o", + nargs=2, + type=( + click.Choice(["capella", "messages"]), + click.Path(exists=True, path_type=Path), + ), + required=True, + help="Output file type and path.", +) +@click.option( + "--layer", + "-l", + type=click.Choice(["oa", "sa", "la", "pa"], case_sensitive=True), + required=True, + help="Layer to use.", +) +@click.option( + "--no-deps", + "no_deps", + is_flag=True, + help="Don’t install message dependencies.", +) +def cli( + in_: tuple[str, str], + out: tuple[str, str], + layer: str, + action: str, + port: int, + no_deps: bool, +): + """Convert between Capella and ROS message definitions.""" + input_type, input_path = in_ + output_type, output = out + + if input_type == output_type: + raise click.UsageError( + "Input and output must be different file types." + ) + if "capella" not in (input_type, output_type): + raise click.UsageError( + "Either input or output must be a capella file." + ) + if "messages" not in (input_type, output_type): + raise click.UsageError( + "Either input or output must be a messages file." + ) + + input: t.Any = Path(input_path) + + input = ( + input + if input.exists() + else capellambse.filehandler.get_filehandler(input_path).rootdir + ) + + msg_path, capella_path, convert_class = ( + (input, output, msg2capella.Converter) + if input_type == "messages" + else (output, input, capella2msg.Converter) + ) + + converter = convert_class(msg_path, capella_path, layer, action, no_deps) + converter.convert() + + if port: + app.start(converter.model.model, layer, port) + + +if __name__ == "__main__": + cli() diff --git a/capella_ros_tools/display/__init__.py b/capella_ros_tools/display/__init__.py new file mode 100644 index 0000000..317c020 --- /dev/null +++ b/capella_ros_tools/display/__init__.py @@ -0,0 +1,3 @@ +# Copyright DB Netz AG and contributors +# SPDX-License-Identifier: Apache-2.0 +"""Module for displaying data from the Capella ROS Tools.""" diff --git a/capella_ros_tools/display/app.py b/capella_ros_tools/display/app.py new file mode 100644 index 0000000..c2ad343 --- /dev/null +++ b/capella_ros_tools/display/app.py @@ -0,0 +1,67 @@ +# Copyright DB Netz AG and contributors +# SPDX-License-Identifier: Apache-2.0 +"""FastAPI app for displaying Capella model.""" +import typing as t +from pathlib import Path + +import uvicorn +from fastapi import FastAPI, Request +from fastapi.responses import HTMLResponse +from fastapi.staticfiles import StaticFiles +from fastapi.templating import Jinja2Templates + +PATH = Path(__file__).parent + + +app = FastAPI(title="Capella ROS Tools") +app.mount( + "/static", StaticFiles(directory=PATH.joinpath("static")), name="static" +) +templates = Jinja2Templates(directory=PATH.joinpath("templates")) + + +def get_type(xtype: str) -> str: + """Get type from xtype.""" + return xtype.rpartition(":")[2] + + +templates.env.globals.update(get_type=get_type) + + +@app.get("/", response_class=HTMLResponse) +def root(request: Request): + """Root page.""" + element = app.state.data_package + context = { + "request": request, + "element": element, + "get_type": get_type, + } + response = templates.TemplateResponse("package.html", context) + return response + + +@app.get("/{type}/{uuid}", response_class=HTMLResponse) +def view(request: Request, type: str, uuid: str): + """View page.""" + element = app.state.model.by_uuid(uuid) + template = type + ".html" + + context = { + "request": request, + "element": element, + "get_type": get_type, + } + response = templates.TemplateResponse(template, context) + return response + + +def start(model: t.Any, layer: str, port: int = 5000): + """Start the app.""" "" + app.state.model = model + app.state.data_package = getattr(model, layer).data_package + uvicorn.run( + app, + host="0.0.0.0", + port=port, + ) diff --git a/capella_ros_tools/display/static/icons/favicon.ico b/capella_ros_tools/display/static/icons/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..a0c9c57790ad59936eb10aae1125145b7895a798 GIT binary patch literal 1150 zcmb7@KS;w+5XP@bS~^%M{#&h^f|K3cTwI+LoQpJRwNzaEGnj%X4kCh3oZY&(I#vo6 z#L3yE*u_OCh;}HR-`U)w4Heo~F4ya<~!wChc5VcmdvL$rE->7hgR$mne@3-^7tz)WA+Yt@G{-p`u) z@eb=+m;Z)4e4<=4p2f#{nuvGR$vx%XqCwxXa%jE+Z4-P`>Yl@=S|25&PeJ_1N2B<9 zvgQy|<`11WoH#aVc TT4zM1QkPZ1+cm^n5E-Ih_${+; literal 0 HcmV?d00001 diff --git a/capella_ros_tools/display/static/icons/favicon.ico.license b/capella_ros_tools/display/static/icons/favicon.ico.license new file mode 100644 index 0000000..95e8b6e --- /dev/null +++ b/capella_ros_tools/display/static/icons/favicon.ico.license @@ -0,0 +1,2 @@ +Copyright DB Netz AG and contributors +SPDX-License-Identifier: CC0-1.0 diff --git a/capella_ros_tools/display/static/styles.css b/capella_ros_tools/display/static/styles.css new file mode 100644 index 0000000..cfaca88 --- /dev/null +++ b/capella_ros_tools/display/static/styles.css @@ -0,0 +1,153 @@ +/* + * Copyright DB Netz AG and contributors + * SPDX-License-Identifier: Apache-2.0 + */ + +/* color palette from */ +:root { + --vt-c-white: #ffffff; + --vt-c-white-soft: #f8f8f8; + --vt-c-white-mute: #f2f2f2; + + --vt-c-indigo: #2c3e50; + + --vt-c-divider-light-1: rgba(60, 60, 60, 0.29); + --vt-c-divider-light-2: rgba(60, 60, 60, 0.12); + + --vt-c-text-light-1: var(--vt-c-indigo); + --vt-c-text-light-2: rgba(60, 60, 60, 0.66); + --pink: #ffaccd; + --pink-dark: rgb(255, 0, 153); +} + +/* semantic color variables for this project */ +:root { + --color-background: var(--vt-c-white); + --color-background-soft: var(--vt-c-white-soft); + --color-background-mute: var(--vt-c-white-mute); + + --color-border: var(--vt-c-divider-light-2); + --color-border-hover: var(--vt-c-divider-light-1); + + --color-heading: var(--vt-c-text-light-1); + --color-text: var(--vt-c-text-light-1); + + --color-accent: var(--pink); + --color-accent-hover: var(--pink-dark); + + --section-gap: 160px; +} + +*, +*::before, +*::after { + box-sizing: border-box; + margin: 0; + font-weight: normal; +} + +html, +body { + width: 100vw; + height: 100vh; + margin: 0; + padding: 0; +} + +body { + display: flex; + flex-direction: row; + color: var(--color-text); + background: var(--color-background-soft); + line-height: 1.6; + font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, + Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", + sans-serif; + font-size: 15px; + text-rendering: optimizeLegibility; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +a { + color: inherit; + text-decoration: none; + border-bottom: 3px solid var(--color-accent); +} + +a:hover { + border-bottom-color: var(--color-accent-hover); +} + +span { + white-space: pre-wrap; + display: inline-flex; + opacity: 0.75; +} + +strong { + font-weight: 500; +} + +main { + padding: 0.5rem 1rem; +} + +main, +aside { + max-height: 100%; + overflow-y: auto; + flex: 1; + display: flex; + flex-direction: column; +} + +aside { + background-color: white; +} + +aside > div { + height: 100%; + width: 100%; +} + +table { + border-spacing: 0 1.5rem; +} +tr > td:first-child { + font-weight: bold; + text-align: right; + padding-right: 2rem; + white-space: nowrap; + width: 1%; +} + +tr > td:last-child { + text-align: left; +} + +ol { + padding: 0; + counter-reset: list; +} +ol > li { + list-style: none; + display: flex; +} +ol > li:before { + content: "[" counter(list) "] "; + counter-increment: list; + margin-right: 0.5em; +} + +::-webkit-scrollbar { + display: none; +} + +/* Media query for landscape mode */ +@media screen and (orientation: portrait) { + body { + display: flex; + flex-direction: column; + } +} diff --git a/capella_ros_tools/display/templates/class.html b/capella_ros_tools/display/templates/class.html new file mode 100644 index 0000000..6e41fc7 --- /dev/null +++ b/capella_ros_tools/display/templates/class.html @@ -0,0 +1,63 @@ + + + + + + + + {{ element.name }} - Overview + + + + +
+

+ {{ element.name }} + ({{ element.xtype }}) +

+ + + + + + + + + + + + + + + + + +
uuid{{ element.uuid }}
parent{{ element.parent._short_html_() }}
description + {{ element.description }} +
properties +
    + {% for prop in element.properties %} +
  1. +

    + Property "{{ prop.name + }}": {{prop.type.name}} + {{ prop.description }} +

    +
  2. + {% endfor %} +
+
+
+ + + diff --git a/capella_ros_tools/display/templates/enum.html b/capella_ros_tools/display/templates/enum.html new file mode 100644 index 0000000..a3c218e --- /dev/null +++ b/capella_ros_tools/display/templates/enum.html @@ -0,0 +1,56 @@ + + + + + + + + {{ element.name }} - Overview + + + + +
+

+ {{ element.name }} + ({{ element.xtype }}) +

+ + + + + + + + + + + + + + + + + +
uuid{{ element.uuid }}
parent{{ element.parent._short_html_() }}
description + {{ element.description }} +
literals +
    + {% for lit in element.literals %} +
  1. + EnumerationLiteral "{{ + lit.name }}": {{lit.value.type.name}} = + {{lit.value.value}} +
  2. + {% endfor %} +
+
+
+ + diff --git a/capella_ros_tools/display/templates/package.html b/capella_ros_tools/display/templates/package.html new file mode 100644 index 0000000..9850811 --- /dev/null +++ b/capella_ros_tools/display/templates/package.html @@ -0,0 +1,92 @@ + + + + + + + + {{ element.name }} - Overview + + + +
+

+ {{ element.name }} + ({{ element.xtype }}) +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
uuid{{ element.uuid }}
parent{{ element.parent._short_html_() }}
classes +
    + {% for cls in element.classes %} +
  1. + {{ cls._short_html_() }} +
  2. + {% endfor %} +
+
datatypes +
    + {% for datatype in element.datatypes %} {% if + get_type(datatype.xtype) != 'Enumeration' %} +
  1. + {{ datatype._short_html_() }} +
  2. + {% endif %} {% endfor %} +
+
enumeration +
    + {% for enum in element.enumerations %} +
  1. + {{ enum._short_html_() }} +
  2. + {% endfor %} +
+
packages +
    + {% for pkg in element.packages %} +
  1. + {{ pkg._short_html_() }} +
  2. + {% endfor %} +
+
+
+ + diff --git a/capella_ros_tools/modules/__init__.py b/capella_ros_tools/modules/__init__.py new file mode 100644 index 0000000..b4f5599 --- /dev/null +++ b/capella_ros_tools/modules/__init__.py @@ -0,0 +1,3 @@ +# Copyright DB Netz AG and contributors +# SPDX-License-Identifier: Apache-2.0 +"""Capella_ros_tools modules.""" diff --git a/capella_ros_tools/modules/capella/__init__.py b/capella_ros_tools/modules/capella/__init__.py new file mode 100644 index 0000000..1859e4d --- /dev/null +++ b/capella_ros_tools/modules/capella/__init__.py @@ -0,0 +1,57 @@ +# Copyright DB Netz AG and contributors +# SPDX-License-Identifier: Apache-2.0 +"""Capella model definition.""" +import typing as t + +import capellambse + + +class EnumValue(t.NamedTuple): + """Capella enum value.""" + + type: str + name: str + value: int + description: str + + +class EnumDef(t.NamedTuple): + """Capella enum.""" + + name: str + values: list[EnumValue] + description: str + + +class ClassProperty(t.NamedTuple): + """Capella class property.""" + + type_name: str + type_pkg_name: str + name: str + min_card: float + max_card: float + description: str + + +class ClassDef(t.NamedTuple): + """Capella class.""" + + name: str + properties: list[ClassProperty] + description: str + + +class BaseCapellaModel: + """Base class for capella model.""" + + def __init__( + self, + path_to_capella_model: str, + layer: str, + ) -> None: + self.model = capellambse.MelodyModel(path_to_capella_model) + self.data = getattr(self.model, layer).data_package + self.predef_types = self.model.sa.data_package.packages.by_name( + "Predefined Types" + ).datatypes diff --git a/capella_ros_tools/modules/capella/parser.py b/capella_ros_tools/modules/capella/parser.py new file mode 100644 index 0000000..3b66a9e --- /dev/null +++ b/capella_ros_tools/modules/capella/parser.py @@ -0,0 +1,70 @@ +# Copyright DB Netz AG and contributors +# SPDX-License-Identifier: Apache-2.0 +"""Parser for Capella model.""" +import typing as t + +from . import BaseCapellaModel, ClassDef, ClassProperty, EnumDef, EnumValue + + +class CapellaModel(BaseCapellaModel): + """Capella model definition for parsing model.""" + + def get_packages(self, package: t.Any) -> set[str]: + """Get packages in Capella model.""" + return {pkg.name for pkg in package.packages} + + def get_classes(self, package: t.Any) -> list[ClassDef]: + """Get classes in Capella model.""" + classes = [] + for cls in package.classes: + props = [] + for prop in cls.owned_properties: + type: t.Any + if prop.type.__class__.__name__ == "Enumeration": + type = EnumDef( + prop.type.name, + [ + EnumValue( + literal.value.type.name, + literal.name, + literal.value.value, + literal.description, + ) + for literal in prop.type.owned_literals + ], + prop.type.description, + ) + elif prop.type.__class__.__name__ == "Class": + type = ClassDef( + prop.type.name, + [], + prop.type.description, + ) + else: + type = prop.type.name + + type_pkg_name = prop.type.parent.name + if type_pkg_name in [ + "Predefined Types", + cls.parent.name, + ]: + type_pkg_name = None + + props.append( + ClassProperty( + prop.name, + type, + type_pkg_name, + prop.min_card.value, + prop.max_card.value, + prop.description, + ) + ) + classes.append( + ClassDef( + cls.name, + props, + cls.description, + ) + ) + return classes diff --git a/capella_ros_tools/modules/capella/serializer.py b/capella_ros_tools/modules/capella/serializer.py new file mode 100644 index 0000000..9f617c9 --- /dev/null +++ b/capella_ros_tools/modules/capella/serializer.py @@ -0,0 +1,221 @@ +# Copyright DB Netz AG and contributors +# SPDX-License-Identifier: Apache-2.0 +"""Serializer for Capella model.""" +import logging +import typing as t + +import capellambse + +from . import BaseCapellaModel, ClassDef, ClassProperty, EnumDef + +logging.basicConfig(level=logging.INFO) +logger = logging.getLogger(__name__) + + +class CapellaModel(BaseCapellaModel): + """Capella model definition for serializing model.""" + + def create_packages( + self, packages: list[str], package: t.Any = None + ) -> None: + """Create packages in Capella model.""" + + if package is None: + package = self.data + + for package_name in packages: + try: + package.packages.by_name(package_name) + except KeyError: + package.packages.create("DataPkg", name=package_name) + logger.info("Created package %s.", package_name) + + def create_classes( + self, + classes: list[ClassDef], + package: t.Any = None, + ) -> list: + """Create classes in Capella model.""" + if package is None: + package = self.data + + overlap = [] + for cls in classes: + try: + overlap.append(package.classes.by_name(cls.name)) + logger.info("Class %s already exists.", cls.name) + except KeyError: + package.classes.create( + name=cls.name, description=cls.description + ) + logger.info("Created class %s.", cls.name) + return overlap + + def delete_classes(self, classes: list, package: t.Any = None) -> None: + """Delete classes in Capella model.""" + if package is None: + package = self.data + + for cls in classes: + try: + package.classes.remove(cls) + logger.info("Deleted %s.", cls.name) + except ValueError: + pass + + def _find_type(self, type_name: str, package: t.Any) -> t.Any: + """Find type in Capella model.""" + try: + return self.predef_types.by_name(type_name) + except KeyError: + self.create_basic_types([type_name], package) + return package.datatypes.by_name(type_name) + + def create_enums( + self, enums: list[EnumDef], package: t.Any = None + ) -> list: + """Create enums in Capella model.""" + if package is None: + package = self.data + + overlap = [] + for enum in enums: + try: + overlap.append(package.datatypes.by_name(enum.name)) + logger.info("Enum %s already exists.", enum.name) + except KeyError: + type = package.datatypes.create( + "Enumeration", name=enum.name, description=enum.description + ) + for prop in enum.values: + property = type.owned_literals.create( + "EnumerationLiteral", + name=prop.name, + description=prop.description, + ) + property.value = capellambse.new_object( + "LiteralNumericValue", + value=prop.value, + type=self._find_type(prop.type, package), + ) + logger.info("Created enum %s.", enum.name) + + return overlap + + def delete_enums(self, types: list, package: t.Any = None) -> None: + """Delete types in Capella model.""" + if package is None: + package = self.data + + for type in types: + try: + package.datatypes.remove(type) + logger.info("Deleted %s.", type.name) + except ValueError: + pass + + def create_basic_types( + self, basic_types: list[str], package: t.Any = None + ) -> list: + """Create basic types in Capella model.""" + if package is None: + package = self.data + + overlap = [] + for basic_type in basic_types: + try: + overlap.append(package.datatypes.by_name(basic_type)) + except KeyError: + if "char" in basic_type or "string" in basic_type: + type = "StringType" + elif "bool" in basic_type or "boolean" in basic_type: + type = "BooleanType" + else: + type = "NumericType" + package.datatypes.create(type, name=basic_type) + return overlap + + def create_properties(self, cls: ClassDef, package: t.Any): + """Create properties for class in Capella model.""" + if package is None: + package = self.data + + superclass = package.classes.by_name(cls.name) + + for prop in cls.properties: + try: + type_package = self.data.packages.by_name(prop.type_pkg_name) + except KeyError: + type_package = ( + package.parent if package is not self.data else package + ) + + try: + partclass = self.model.search( + "Class", below=type_package + ).by_name(prop.type_name) + if superclass == partclass: + raise KeyError + composition = self._create_composition( + superclass, prop, partclass + ) + association = package.owned_associations.create( + navigable_members=[composition] + ) + association.members.create( + "Property", + type=superclass, + kind="ASSOCIATION", + min_card=capellambse.new_object( + "LiteralNumericValue", value=1 + ), + max_card=capellambse.new_object( + "LiteralNumericValue", value=1 + ), + ) + self._set_cardinality(composition, prop) + continue + except KeyError: + pass + try: + property_type = self.model.search( + "Enumeration", below=type_package + ).by_name(prop.type_name) + except KeyError: + property_type = self._find_type(prop.type_name, type_package) + + attribute = self._create_composition( + superclass, prop, property_type + ) + self._set_cardinality(attribute, prop) + logger.info("Created properties for %s.", cls.name) + + def _create_composition( + self, superclass: t.Any, prop: ClassProperty, property_type: t.Any + ): + """Create composition in Capella model.""" + try: + overlap = superclass.owned_properties.by_name(prop.name) + superclass.owned_properties.remove(overlap) + except KeyError: + pass + composition = superclass.owned_properties.create( + name=prop.name, + type=property_type, + kind="COMPOSITION", + description=prop.description, + ) + return composition + + def _set_cardinality(self, composition: t.Any, prop: ClassProperty): + """Set cardinality for composition in Capella model.""" + composition.min_card = capellambse.new_object( + "LiteralNumericValue", value=prop.min_card + ) + composition.max_card = capellambse.new_object( + "LiteralNumericValue", value=prop.max_card + ) + + def save_changes(self) -> None: + """Save changes to Capella model.""" + self.model.save() diff --git a/capella_ros_tools/modules/messages/__init__.py b/capella_ros_tools/modules/messages/__init__.py new file mode 100644 index 0000000..ae0ea70 --- /dev/null +++ b/capella_ros_tools/modules/messages/__init__.py @@ -0,0 +1,120 @@ +# Copyright DB Netz AG and contributors +# SPDX-License-Identifier: Apache-2.0 +"""IDL Message definition.""" "" +import typing as t + + +class BaseTypeDef: + """Type definition for a field or constant in a message.""" + + def __init__( + self, + name: str, + array_size: float | None = None, + pkg_name: str | None = None, + ) -> None: + self.name = name + """Name of the type.""" + self.array_size = array_size + """Max size of the array.""" + self.pkg_name = pkg_name + """Name of the package the type is defined in. + + None: type is a primitive type or + defined in the same package as the message + """ + + +class FieldDef: + """Definition of a field.""" + + def __init__(self, type: t.Any, name: str, annotations: list[str]) -> None: + self.type = type + self.name = name + self.annotations = annotations + + +class ConstantDef: + """Definition of a constant.""" + + def __init__( + self, + type: t.Any, + name: str, + value: str, + annotations: list[str], + ) -> None: + self.type = type + self.name = name + self.value = value + self.annotations = annotations + + +class EnumDef: + """Definition of an enum.""" + + def __init__( + self, name: str, values: list[ConstantDef], annotations: list[str] + ) -> None: + self.name = name + self.values = values + self.annotations = annotations + + +class BaseMessageDef: + """Definition of a message.""" + + def __init__( + self, + name: str, + fields: list[FieldDef], + enums: list[EnumDef], + annotations: list[str], + ) -> None: + self.name = name + self.fields = fields + self.enums = enums + self.annotations = annotations + + def _repr_html_(self): + fragments = [] + fragments.append( + f"

{self.name}

" + + "
".join(self.annotations) + + "

Fields

    " + ) + for field in self.fields: + fragments.append( + f'
  1. {field.type.pkg_name+"/" if field.type.pkg_name else ""}{field.type.name}{"[]" if field.type.array_size == float("inf") else f"[{field.type.array_size}]" if field.type.array_size else ""} {field.name}
    ' + + "
    ".join(field.annotations) + + "
  2. " + ) + fragments.append("

Enums

    ") + for enum in self.enums: + fragments.append( + f"
  1. {enum.name}
    " + + "
    ".join(enum.annotations) + + "
      " + ) + for value in enum.values: + fragments.append( + f"
    • {value.type.name} {value.name} = {value.value}
      " + + "
      ".join(value.annotations) + + "
    • " + ) + fragments.append("
  2. ") + fragments.append("
") + + return "".join(fragments) + + +class BaseMessagePkgDef: + """Definition of a message package.""" + + def __init__(self, name: str, messages: list, packages: list): + self.name = name + self.messages = messages + self.packages = packages + + def _repr_html_(self): + return f'

{self.name}

Messages

    {"".join([f"
  1. {msg.name}
  2. " for msg in self.messages])}

Packages

    {"".join([f"
  1. {pkg.name}
  2. " for pkg in self.packages])}
' diff --git a/capella_ros_tools/modules/messages/parser.py b/capella_ros_tools/modules/messages/parser.py new file mode 100644 index 0000000..3efab6c --- /dev/null +++ b/capella_ros_tools/modules/messages/parser.py @@ -0,0 +1,317 @@ +# Copyright DB Netz AG and contributors +# SPDX-License-Identifier: Apache-2.0 +"""Parser for IDL messages.""" +import os +import re +import typing as t + +from . import ( + BaseMessageDef, + BaseMessagePkgDef, + BaseTypeDef, + ConstantDef, + EnumDef, + FieldDef, +) + +PACKAGE_NAME_MESSAGE_TYPE_SEPARATOR = "/" +COMMENT_DELIMITER = "#" +CONSTANT_SEPARATOR = "=" +ARRAY_UPPER_BOUND_TOKEN = "<=" +STRING_UPPER_BOUND_TOKEN = "<=" + + +PRIMITIVE_TYPES = [ + "bool", + "byte", + "char", + "float32", + "float64", + "int8", + "uint8", + "int16", + "uint16", + "int32", + "uint32", + "int64", + "uint64", + "string", + "wstring", +] + + +VALID_MESSAGE_NAME_PATTERN = "[A-Z][A-Za-z0-9]*" +VALID_CONSTANT_NAME_PATTERN = "[A-Z][A-Z0-9_]*?[A-Z0-9]*" +VALID_REF_COMMENT_PATTERN = re.compile( + r"cf\.\s*" + rf"({VALID_MESSAGE_NAME_PATTERN})" + r"(?:,\s*" + rf"({VALID_CONSTANT_NAME_PATTERN}_XXX))?" +) + + +class TypeDef(BaseTypeDef): + """Type definition for a field or constant in a message.""" + + def __init__(self, type_string: str) -> None: + super().__init__(type_string) + + if type_string[-1] == "]": + # is array + index = type_string.rindex("[") + array_size_string = type_string[index + 1 : -1] + if array_size_string: + array_size_string = array_size_string.lstrip( + ARRAY_UPPER_BOUND_TOKEN + ) + self.array_size = float(array_size_string) + else: + # dynamic array + self.array_size = float("inf") + + type_string = type_string[:index] + + type_string = type_string.split(STRING_UPPER_BOUND_TOKEN, 1)[0] + if type_string not in PRIMITIVE_TYPES: + parts = type_string.split(PACKAGE_NAME_MESSAGE_TYPE_SEPARATOR, 1) + if len(parts) == 2: + # type string contains the package name + self.pkg_name = parts[0] + type_string = parts[1] + + self.name = type_string + + +def _extract_file_level_comments(message_string: str): + """Extract comments at the beginning of the message file.""" + lines = message_string.splitlines() + if lines and not lines[0].strip(): + lines = lines[1:] + + for index, line in enumerate(lines): + if not line.startswith(COMMENT_DELIMITER): + break + else: + index = 0 + + file_content = lines[index:] + [""] + file_level_comments = lines[:index] + return file_level_comments, file_content + + +class MessageDef(BaseMessageDef): + """Message definition for a ROS message.""" + + @classmethod + def from_msg_file(cls, msg_file: t.Any): + """Create a message definition from a message file.""" + msg_name = msg_file.stem + message_string = msg_file.read_text() + return cls.from_msg_string(msg_name, message_string) + + @classmethod + def from_msg_string(cls, msg_name: str, message_string: str): + """Create a message definition from a message string.""" + message_comments, lines = _extract_file_level_comments(message_string) + msg = cls(msg_name, [], [], message_comments) + last_element: t.Any = msg + current_comments: list = [] + last_index = index = -1 + + for line in lines: + line = line.rstrip() + + if not line: + # new block + if last_index == index == 0: + # comments were not used + msg.annotations += current_comments + current_comments = [] + if isinstance(last_element, ConstantDef): + last_element = msg.enums[-1] + continue + + last_index = index + index = line.find(COMMENT_DELIMITER) + + if index != -1: + # line has a comment + comment = line[index:] + line = line[:index] + line_stripped = line.strip() + if line and not line_stripped: + # indented comment line + # append to previous field/constant if available or ignore + last_element.annotations.append(comment) + continue + line = line_stripped + if not line: + # block comment + if last_index != index: + # first line of block comment + current_comments = [] + # save "unused" comments for next block + current_comments.append(comment) + continue + else: + comment = "" + + type_string, _, rest = line.partition(" ") + rest = rest.lstrip() + name, _, value = rest.partition(CONSTANT_SEPARATOR) + name = name.rstrip() + if value: + # line contains a constant + value = value.lstrip() + if not isinstance(last_element, ConstantDef): + msg.enums.append(EnumDef("", [], current_comments)) + msg.enums[-1].values.append( + ConstantDef(TypeDef(type_string), name, value, [comment]) + ) + last_element = msg.enums[-1].values[-1] + else: + # line contains a field + msg.fields.append( + FieldDef( + TypeDef(type_string), + name, + current_comments + [comment], + ) + ) + last_element = msg.fields[-1] + + # condense and rename enums + _process_enums(msg) + + # condense comment lines, extract special annotations + _process_comments(msg) + for field in msg.fields: + _process_comments(field) + for enum in msg.enums: + _process_comments(enum) + for constant in enum.values: + _process_comments(constant) + return msg + + +def _get_enum_identifier(common_prefix: str) -> str: + return "".join([x.capitalize() for x in common_prefix.split("_")]) + + +def _rename_enum(enum: EnumDef): + common_prefix = os.path.commonprefix([v.name for v in enum.values]) + for v in enum.values: + v.name = v.name.removeprefix(common_prefix) + + enum.name = _get_enum_identifier(common_prefix) + + +def _process_enums(msg): + """Condense enums and renames them if necessary.""" + if len(msg.enums) == 0: + return + + for enum in msg.enums: + _rename_enum(enum) + + to_delete = set() + for i, enum in enumerate(msg.enums): + # combine enums with the same name + if i in to_delete: + continue + indeces = [ + i + for i, other_enum in enumerate(msg.enums) + if other_enum.name is enum.name and other_enum is not enum + ] + for i in indeces: + to_delete.add(i) + for value in msg.enums[i].values: + enum.values.append( + ConstantDef( + TypeDef(value.type.name), + value.name, + value.value, + value.annotations.copy(), + ) + ) + + for i in to_delete: + del msg.enums[i] + + for enum in msg.enums: + match_name = [ + i + for i, field in enumerate(msg.fields) + if _get_enum_identifier(field.name) == enum.name + ] + match_type = [ + i + for i, field in enumerate(msg.fields) + if field.type.name == enum.values[0].type.name + ] + if match_name: + msg.fields[match_name[0]].type.name = enum.name + elif match_type: + field = msg.fields[match_type[0]] + field.type.name = msg.name + _get_enum_identifier(field.name) + enum.name = field.type.name + elif not enum.name or len(msg.enums) == 1: + enum.name = msg.name + "Type" if msg.fields else msg.name + + +def _process_comments(instance): + """Condense comment lines and extracts special annotations.""" + lines = instance.annotations + if not lines: + return + # remove empty lines + lines = [line for line in lines if line] + + instance.annotations = lines + + if ( + not isinstance(instance, FieldDef) + or instance.type.pkg_name + or instance.type.name not in PRIMITIVE_TYPES + ): + return + comment = "\n".join(lines) + match = VALID_REF_COMMENT_PATTERN.search(comment) + if match: + # reference to enum + ref_file_name, ref_common_prefix = match.groups() + instance.type.name = ( + _get_enum_identifier(ref_common_prefix[:-4]) + if ref_common_prefix + else ref_file_name + ) + + +class MessagePkgDef(BaseMessagePkgDef): + """Message package definition for ROS message package.""" + + @classmethod + def from_msg_folder(cls, package_name: str, msg_pkg_dir: t.Any): + """Create a message package definition from folder.""" + msg_pkg = cls(package_name, [], []) + for msg_file in msg_pkg_dir.iterdir(): + if msg_file.suffix == ".msg": + msg_pkg.messages.append(MessageDef.from_msg_file(msg_file)) + elif msg_file.is_dir(): + msg_pkg.packages.append( + cls.from_msg_folder(msg_file.name, msg_file) + ) + return msg_pkg + + @classmethod + def from_pkg_folder(cls, root_dir: t.Any, root_dir_name: str = "root"): + """Create a package package definition from a package folder.""" + out = cls("", [], []) + for dir in root_dir.rglob("msg"): + out.packages.append( + MessagePkgDef.from_msg_folder( + dir.parent.name or root_dir_name, dir + ) + ) + return out diff --git a/capella_ros_tools/modules/messages/serializer.py b/capella_ros_tools/modules/messages/serializer.py new file mode 100644 index 0000000..5cf8557 --- /dev/null +++ b/capella_ros_tools/modules/messages/serializer.py @@ -0,0 +1,38 @@ +# Copyright DB Netz AG and contributors +# SPDX-License-Identifier: Apache-2.0 +"""Serializer for IDL messages.""" +from pathlib import Path + +from capella_ros_tools.modules.messages import ( + BaseMessageDef, + BaseMessagePkgDef, +) + + +class MessageDef(BaseMessageDef): + """Message definition for a ROS message.""" + + def to_msg_file(self, msg_file: Path): + """Write message to file.""" + msg_file.write_text(self.to_msg_string()) + + def to_msg_string(self) -> str: + """Convert message to string.""" + msg_string = "\n".join(self.annotations) + "\n" + msg_string += ( + "\n".join([f"{f.type} {f.name}" for f in self.fields]) + "\n\n" + ) + msg_string += ( + "\n\n".join([f"{e.name}\n{e.values}" for e in self.enums]) + "\n\n" + ) + return msg_string + + +class MessagePkgDef(BaseMessagePkgDef): + """Message package definition for ROS message package.""" + + def to_msg_folder(self, msg_pkg_dir: Path): + """Write message package to folder.""" + msg_pkg_dir.mkdir(parents=True, exist_ok=True) + for msg in self.messages: + msg.to_msg_file(msg_pkg_dir / f"{msg.name}.msg") diff --git a/capella_ros_tools/scripts/__init__.py b/capella_ros_tools/scripts/__init__.py new file mode 100644 index 0000000..46ca00d --- /dev/null +++ b/capella_ros_tools/scripts/__init__.py @@ -0,0 +1,4 @@ +# Copyright DB Netz AG and contributors +# SPDX-License-Identifier: Apache-2.0 +"""The scripts package.""" "" +modules = ["capella2msg", "msg2capella"] diff --git a/capella_ros_tools/scripts/capella2msg.py b/capella_ros_tools/scripts/capella2msg.py new file mode 100644 index 0000000..0b65981 --- /dev/null +++ b/capella_ros_tools/scripts/capella2msg.py @@ -0,0 +1,35 @@ +# Copyright DB Netz AG and contributors +# SPDX-License-Identifier: Apache-2.0 +"""Convert Capella data to ROS messages.""" +import typing as t + +from capella_ros_tools.modules.capella.parser import CapellaModel + +CAPELLA_TYPE_TO_MSG = { + "Boolean": "bool", + "Byte": "byte", + "Char": "char", + "Short": "int8", + "UnsignedShort": "uint8", + "Integer": "int16", + "UnsignedInteger": "uint16", + "Long": "int32", + "UnsignedLong": "uint32", + "LongLong": "int64", + "UnsignedLongLong": "uint64", + "Float": "float32", + "Double": "float64", + "String": "string", +} + + +class Converter: + """Convert Capella data to ROS messages.""" + + def __init__(self, capella_path: t.Any, layer: str, merge: str) -> None: + self.model = CapellaModel(capella_path, layer) + self.merge = merge + + def convert(self) -> None: + """Convert Capella data to ROS messages.""" + return diff --git a/capella_ros_tools/scripts/msg2capella.py b/capella_ros_tools/scripts/msg2capella.py new file mode 100644 index 0000000..bc7c036 --- /dev/null +++ b/capella_ros_tools/scripts/msg2capella.py @@ -0,0 +1,184 @@ +# Copyright DB Netz AG and contributors +# SPDX-License-Identifier: Apache-2.0 +"""Convert ROS messages to Capella data.""" "" +import typing as t + +import capellambse +import click + +from capella_ros_tools.modules.capella import ( + ClassDef, + ClassProperty, + EnumDef, + EnumValue, +) +from capella_ros_tools.modules.capella.serializer import CapellaModel +from capella_ros_tools.modules.messages.parser import MessagePkgDef + +ROS2_INTERFACES = { + "common_interfaces": "git+https://github.com/ros2/common_interfaces", + "rcl_interfaces": "git+https://github.com/ros2/rcl_interfaces", + "unique_identifier_msgs": "git+https://github.com" + "/ros2/unique_identifier_msgs", +} + +MSG_TYPE_TO_CAPELLA = { + "bool": "Boolean", + "byte": "Byte", + "char": "Char", + "int8": "Short", + "uint8": "UnsignedShort", + "int16": "Integer", + "uint16": "UnsignedInteger", + "int32": "Long", + "uint32": "UnsignedLong", + "int64": "LongLong", + "uint64": "UnsignedLongLong", + "float32": "Float", + "float64": "Double", + "string": "String", + "wstring": "Char", +} + + +class Converter: + """Converts ROS messages to Capella data.""" + + def __init__( + self, + msg_path: t.Any, + capella_path: t.Any, + layer: str, + action: str, + no_deps: bool, + ) -> None: + self.msgs = MessagePkgDef.from_pkg_folder(msg_path) + self.model = CapellaModel(capella_path, layer) + self.action = action + self.no_deps = no_deps + + def _resolve_overlap(self, overlap, deletion_func, current_root): + if not overlap or self.action == "k": + return + if self.action == "a": + click.echo( + f"{len(overlap)} elements already exist." + " Use --exists-action=o to overwrite." + ) + raise click.Abort() + elif self.action == "o": + deletion_func(overlap, current_root) + elif self.action == "c": + for i, cls in enumerate(overlap): + confirm = click.prompt( + f"{cls.name} already exists. " "Do you want to overwrite?", + type=click.Choice( + ["y", "Y", "n", "N"], + case_sensitive=True, + ), + ) + if confirm == "n": + continue + elif confirm == "N": + self.action = "k" + return + elif confirm == "Y": + deletion_func(overlap[i:], current_root) + self.action = "o" + return + elif confirm == "y": + deletion_func([cls], current_root) + + def _add_objects( + self, current_pkg_def: MessagePkgDef, current_root: t.Any + ): + packages = [p.name for p in current_pkg_def.packages] + self.model.create_packages(packages, current_root) + classes = [ + ClassDef(c.name, [], "\n".join(c.annotations)) + for c in current_pkg_def.messages + if c.fields + ] + overlap = self.model.create_classes(classes, current_root) + self._resolve_overlap(overlap, self.model.delete_classes, current_root) + self.model.create_classes(classes, current_root) + enums = [ + EnumDef( + e.name, + [ + EnumValue( + MSG_TYPE_TO_CAPELLA.get(v.type.name) or v.type.name, + v.name, + int(v.value), + "\n".join(v.annotations), + ) + for v in e.values + ], + "\n".join(e.annotations), + ) + for msg in current_pkg_def.messages + for e in msg.enums + if e.values + ] + overlap = self.model.create_enums(enums, current_root) + self._resolve_overlap(overlap, self.model.delete_enums, current_root) + self.model.create_enums(enums, current_root) + + for new_pkg_def in current_pkg_def.packages: + new_root = current_root.packages.by_name(new_pkg_def.name) + self._add_objects(new_pkg_def, new_root) + + def _add_relations(self, current_pkg_def, current_root): + for msg in current_pkg_def.messages: + if not msg.fields: + continue + self.model.create_properties( + ClassDef( + name=msg.name, + properties=[ + ClassProperty( + MSG_TYPE_TO_CAPELLA.get(f.type.name) + or f.type.name, + f.type.pkg_name, + f.name, + min_card=0 if f.type.array_size else 1, + max_card=f.type.array_size or 1, + description="\n".join(f.annotations), + ) + for f in msg.fields + ], + description="\n".join(msg.annotations), + ), + current_root, + ) + + for new_pkg_def in current_pkg_def.packages: + new_root = current_root.packages.by_name(new_pkg_def.name) + self._add_relations(new_pkg_def, new_root) + + def convert(self) -> None: + """Convert ROS messages to Capella data.""" + current_root = self.model.data + + if not self.no_deps: + imported_ros2_packages = [] + for interface_name, interface_url in ROS2_INTERFACES.items(): + interface_path = capellambse.filehandler.get_filehandler( + interface_url + ).rootdir + interface_pkg_def = MessagePkgDef.from_pkg_folder( + interface_path, interface_name + ) + interface_pkg_def.name = ( + interface_pkg_def.name or interface_name + ) + imported_ros2_packages.append(interface_pkg_def) + self._add_objects(interface_pkg_def, current_root) + + for interface_pkg_def in imported_ros2_packages: + self._add_relations(interface_pkg_def, current_root) + + self._add_objects(self.msgs, current_root) + self._add_relations(self.msgs, current_root) + + self.model.save_changes() diff --git a/docs/Makefile b/docs/Makefile new file mode 100644 index 0000000..fdfe666 --- /dev/null +++ b/docs/Makefile @@ -0,0 +1,23 @@ +# Copyright DB Netz AG and contributors +# SPDX-License-Identifier: CC0-1.0 + +# Minimal makefile for Sphinx documentation +# + +# You can set these variables from the command line, and also +# from the environment for the first two. +SPHINXOPTS ?= +SPHINXBUILD ?= sphinx-build +SOURCEDIR = source +BUILDDIR = build + +# Put it first so that "make" without argument is like "make help". +help: + @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) + +.PHONY: help Makefile + +# Catch-all target: route all unknown targets to Sphinx using the new +# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). +%: Makefile + @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) diff --git a/docs/make.bat b/docs/make.bat new file mode 100644 index 0000000..ab614db --- /dev/null +++ b/docs/make.bat @@ -0,0 +1,37 @@ +@ECHO OFF +REM Copyright DB Netz AG and contributors +REM SPDX-License-Identifier: CC0-1.0 + +pushd %~dp0 + +REM Command file for Sphinx documentation + +if "%SPHINXBUILD%" == "" ( + set SPHINXBUILD=sphinx-build +) +set SOURCEDIR=source +set BUILDDIR=build + +%SPHINXBUILD% >NUL 2>NUL +if errorlevel 9009 ( + echo. + echo.The 'sphinx-build' command was not found. Make sure you have Sphinx + echo.installed, then set the SPHINXBUILD environment variable to point + echo.to the full path of the 'sphinx-build' executable. Alternatively you + echo.may add the Sphinx directory to PATH. + echo. + echo.If you don't have Sphinx installed, grab it from + echo.https://www.sphinx-doc.org/ + exit /b 1 +) + +if "%1" == "" goto help + +%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% +goto end + +:help +%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% + +:end +popd diff --git a/docs/source/_static/github-logo.svg b/docs/source/_static/github-logo.svg new file mode 100644 index 0000000..a407b96 --- /dev/null +++ b/docs/source/_static/github-logo.svg @@ -0,0 +1,9 @@ + + + + + diff --git a/docs/source/conf.py b/docs/source/conf.py new file mode 100644 index 0000000..1925ae0 --- /dev/null +++ b/docs/source/conf.py @@ -0,0 +1,115 @@ +# Copyright DB Netz AG and contributors +# SPDX-License-Identifier: Apache-2.0 +"""Configuration file for Sphinx.""" + + +# -- Path setup -------------------------------------------------------------- + +# If extensions (or modules to document with autodoc) are in another directory, +# add these directories to sys.path here. If the directory is relative to the +# documentation root, use os.path.abspath to make it absolute, like shown here. +# +import os +import sys + +sys.path.insert(0, os.path.abspath("../..")) + +import capella_ros_tools + +# -- Project information ----------------------------------------------------- + +if sys.version_info >= (3, 11): + import tomllib +else: + import tomli as tomllib +with open("../../pyproject.toml", "rb") as f: + _metadata = tomllib.load(f)["project"] + +project = "capella-ros-tools" +author = _metadata["authors"][0]["name"] +copyright = f"{author} and the {_metadata['name']} contributors" + + +# -- General configuration --------------------------------------------------- + +# Add any Sphinx extension module names here, as strings. They can be +# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom +# ones. +extensions = [ + "sphinx.ext.autodoc", + "sphinx.ext.intersphinx", + "sphinx.ext.napoleon", + "sphinx_copybutton", +] + +# Add any paths that contain templates here, relative to this directory. +templates_path = ["_templates"] + +# List of patterns, relative to source directory, that match files and +# directories to ignore when looking for source files. +# This pattern also affects html_static_path and html_extra_path. +# exclude_patterns = [] + + +# -- General information about the project ----------------------------------- + +# The version info for the project you're documenting, acts as replacement for +# |version| and |release|, also used in various other places throughout the +# built documents. + +# The full version, including alpha/beta/rc tags. +version = capella_ros_tools.__version__ +rst_epilog = f""" +.. |Project| replace:: {project} +.. |Version| replace:: {version} +""" + + +# -- Options for copy-button ------------------------------------------------- +copybutton_here_doc_delimiter = "EOT" +copybutton_line_continuation_character = "\\" + + +# -- Options for auto-doc ---------------------------------------------------- +autoclass_content = "class" + + +# -- Options for napoleon ---------------------------------------------------- +napoleon_google_docstring = False +napoleon_include_init_with_doc = True + + +# -- Options for Intersphinx output ------------------------------------------ +intersphinx_mapping = { + "python": ("https://docs.python.org/3", None), +} + + +# -- Options for HTML output ------------------------------------------------- + +# The theme to use for HTML and HTML Help pages. See the documentation for +# a list of builtin themes. + +html_theme = "furo" +html_theme_options = { + "footer_icons": [ + { + "name": "GitHub", + "url": "https://github.com/DSD-DBS/capella-ros-tools", + "html": '', + "class": "", + }, + ], +} + + +# -- Extra options for Furo theme -------------------------------------------- + +pygments_style = "tango" +pygments_dark_style = "monokai" + + +# Add any paths that contain custom static files (such as style sheets) here, +# relative to this directory. They are copied after the builtin static files, +# so a file named "default.css" will overwrite the builtin "default.css". +html_static_path = ["_static"] diff --git a/docs/source/examples/Convert messages.ipynb b/docs/source/examples/Convert messages.ipynb new file mode 100644 index 0000000..d756412 --- /dev/null +++ b/docs/source/examples/Convert messages.ipynb @@ -0,0 +1,1276 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 1, + "metadata": {}, + "outputs": [], + "source": [ + "import capellambse\n", + "from capella_ros_tools.scripts import msg2capella\n", + "from pathlib import Path" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": {}, + "outputs": [], + "source": [ + "msg_path = capellambse.filehandler.get_filehandler(\"git+https://github.com/DSD-DBS/dsd-ros-msg-definitions-oss\").rootdir\n", + "capella_path = Path(\"data/empty_project_52\")\n", + "layer = \"la\"" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": {}, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "WARNING:capellambse.model:Cannot load PVMT extension: ValueError: Provided model does not have a PropertyValuePkg\n", + "WARNING:capellambse.model:Property values are not available in this model\n" + ] + } + ], + "source": [ + "converter = msg2capella.Converter(msg_path, capella_path, layer, \"o\", False)" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": {}, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "INFO:capella_ros_tools.modules.capella.serializer:Class GoalID already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class GoalStatus already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class GoalStatusArray already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted GoalID.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted GoalStatus.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted GoalStatusArray.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class GoalID.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class GoalStatus.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class GoalStatusArray.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum GoalStatusStatus already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted GoalStatusStatus.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum GoalStatusStatus.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class DiagnosticArray already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class DiagnosticStatus already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class KeyValue already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted DiagnosticArray.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted DiagnosticStatus.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted KeyValue.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class DiagnosticArray.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class DiagnosticStatus.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class KeyValue.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum DiagnosticStatusLevel already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted DiagnosticStatusLevel.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum DiagnosticStatusLevel.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class Accel already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class AccelStamped already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class AccelWithCovariance already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class AccelWithCovarianceStamped already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class Inertia already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class InertiaStamped already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class Point already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class Point32 already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class PointStamped already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class Polygon already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class PolygonStamped already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class Pose already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class Pose2D already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class PoseArray already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class PoseStamped already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class PoseWithCovariance already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class PoseWithCovarianceStamped already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class Quaternion already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class QuaternionStamped already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class Transform already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class TransformStamped already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class Twist already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class TwistStamped already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class TwistWithCovariance already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class TwistWithCovarianceStamped already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class Vector3 already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class Vector3Stamped already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class Wrench already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class WrenchStamped already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Accel.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted AccelStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted AccelWithCovariance.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted AccelWithCovarianceStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Inertia.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted InertiaStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Point.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Point32.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted PointStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Polygon.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted PolygonStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Pose.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Pose2D.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted PoseArray.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted PoseStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted PoseWithCovariance.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted PoseWithCovarianceStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Quaternion.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted QuaternionStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Transform.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted TransformStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Twist.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted TwistStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted TwistWithCovariance.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted TwistWithCovarianceStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Vector3.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Vector3Stamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Wrench.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted WrenchStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class Accel.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class AccelStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class AccelWithCovariance.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class AccelWithCovarianceStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class Inertia.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class InertiaStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class Point.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class Point32.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class PointStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class Polygon.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class PolygonStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class Pose.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class Pose2D.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class PoseArray.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class PoseStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class PoseWithCovariance.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class PoseWithCovarianceStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class Quaternion.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class QuaternionStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class Transform.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class TransformStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class Twist.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class TwistStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class TwistWithCovariance.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class TwistWithCovarianceStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class Vector3.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class Vector3Stamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class Wrench.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class WrenchStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class GridCells already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class MapMetaData already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class OccupancyGrid already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class Odometry already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class Path already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted GridCells.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted MapMetaData.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted OccupancyGrid.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Odometry.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Path.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class GridCells.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class MapMetaData.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class OccupancyGrid.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class Odometry.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class Path.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class BatteryState already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class CameraInfo already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class ChannelFloat32 already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class CompressedImage already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class FluidPressure already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class Illuminance already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class Image already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class Imu already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class JointState already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class Joy already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class JoyFeedback already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class JoyFeedbackArray already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class LaserEcho already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class LaserScan already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class MagneticField already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class MultiDOFJointState already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class MultiEchoLaserScan already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class NavSatFix already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class NavSatStatus already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class PointCloud already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class PointCloud2 already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class PointField already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class Range already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class RegionOfInterest already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class RelativeHumidity already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class Temperature already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class TimeReference already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted BatteryState.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted CameraInfo.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted ChannelFloat32.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted CompressedImage.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted FluidPressure.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Illuminance.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Image.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Imu.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted JointState.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Joy.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted JoyFeedback.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted JoyFeedbackArray.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted LaserEcho.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted LaserScan.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted MagneticField.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted MultiDOFJointState.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted MultiEchoLaserScan.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted NavSatFix.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted NavSatStatus.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted PointCloud.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted PointCloud2.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted PointField.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Range.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted RegionOfInterest.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted RelativeHumidity.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Temperature.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted TimeReference.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class BatteryState.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class CameraInfo.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class ChannelFloat32.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class CompressedImage.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class FluidPressure.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class Illuminance.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class Image.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class Imu.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class JointState.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class Joy.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class JoyFeedback.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class JoyFeedbackArray.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class LaserEcho.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class LaserScan.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class MagneticField.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class MultiDOFJointState.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class MultiEchoLaserScan.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class NavSatFix.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class NavSatStatus.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class PointCloud.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class PointCloud2.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class PointField.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class Range.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class RegionOfInterest.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class RelativeHumidity.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class Temperature.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class TimeReference.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum PowerSupplyStatus already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum PowerSupplyHealth already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum PowerSupplyTechnology already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum Type already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum NavSatFixPositionCovarianceType already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum Status already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum Service already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum PointFieldDatatype already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum RangeRadiationType already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted PowerSupplyStatus.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted PowerSupplyHealth.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted PowerSupplyTechnology.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Type.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted NavSatFixPositionCovarianceType.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Status.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Service.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted PointFieldDatatype.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted RangeRadiationType.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum PowerSupplyStatus.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum PowerSupplyHealth.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum PowerSupplyTechnology.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum Type.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum NavSatFixPositionCovarianceType.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum Status.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum Service.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum PointFieldDatatype.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum RangeRadiationType.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class Mesh already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class MeshTriangle already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class Plane already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class SolidPrimitive already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Mesh.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted MeshTriangle.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Plane.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted SolidPrimitive.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class Mesh.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class MeshTriangle.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class Plane.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class SolidPrimitive.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum SolidPrimitiveType already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum Box already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum SphereRadius already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum Cylinder already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum Cone already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum PrismHeight already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted SolidPrimitiveType.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Box.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted SphereRadius.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Cylinder.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Cone.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted PrismHeight.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum SolidPrimitiveType.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum Box.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum SphereRadius.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum Cylinder.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum Cone.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum PrismHeight.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class Bool already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class Byte already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class ByteMultiArray already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class Char already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class ColorRGBA already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class Float32 already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class Float32MultiArray already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class Float64 already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class Float64MultiArray already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class Header already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class Int16 already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class Int16MultiArray already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class Int32 already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class Int32MultiArray already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class Int64 already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class Int64MultiArray already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class Int8 already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class Int8MultiArray already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class MultiArrayDimension already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class MultiArrayLayout already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class String already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class UInt16 already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class UInt16MultiArray already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class UInt32 already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class UInt32MultiArray already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class UInt64 already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class UInt64MultiArray already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class UInt8 already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class UInt8MultiArray already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Bool.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Byte.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted ByteMultiArray.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Char.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted ColorRGBA.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Float32.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Float32MultiArray.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Float64.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Float64MultiArray.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Header.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Int16.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Int16MultiArray.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Int32.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Int32MultiArray.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Int64.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Int64MultiArray.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Int8.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Int8MultiArray.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted MultiArrayDimension.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted MultiArrayLayout.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted String.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted UInt16.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted UInt16MultiArray.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted UInt32.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted UInt32MultiArray.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted UInt64.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted UInt64MultiArray.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted UInt8.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted UInt8MultiArray.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class Bool.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class Byte.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class ByteMultiArray.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class Char.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class ColorRGBA.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class Float32.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class Float32MultiArray.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class Float64.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class Float64MultiArray.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class Header.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class Int16.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class Int16MultiArray.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class Int32.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class Int32MultiArray.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class Int64.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class Int64MultiArray.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class Int8.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class Int8MultiArray.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class MultiArrayDimension.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class MultiArrayLayout.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class String.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class UInt16.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class UInt16MultiArray.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class UInt32.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class UInt32MultiArray.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class UInt64.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class UInt64MultiArray.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class UInt8.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class UInt8MultiArray.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class DisparityImage already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted DisparityImage.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class DisparityImage.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class JointTrajectory already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class JointTrajectoryPoint already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class MultiDOFJointTrajectory already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class MultiDOFJointTrajectoryPoint already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted JointTrajectory.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted JointTrajectoryPoint.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted MultiDOFJointTrajectory.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted MultiDOFJointTrajectoryPoint.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class JointTrajectory.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class JointTrajectoryPoint.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class MultiDOFJointTrajectory.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class MultiDOFJointTrajectoryPoint.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class ImageMarker already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class InteractiveMarker already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class InteractiveMarkerControl already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class InteractiveMarkerFeedback already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class InteractiveMarkerInit already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class InteractiveMarkerPose already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class InteractiveMarkerUpdate already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class Marker already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class MarkerArray already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class MenuEntry already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class MeshFile already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class UVCoordinate already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted ImageMarker.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted InteractiveMarker.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted InteractiveMarkerControl.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted InteractiveMarkerFeedback.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted InteractiveMarkerInit.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted InteractiveMarkerPose.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted InteractiveMarkerUpdate.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Marker.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted MarkerArray.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted MenuEntry.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted MeshFile.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted UVCoordinate.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class ImageMarker.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class InteractiveMarker.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class InteractiveMarkerControl.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class InteractiveMarkerFeedback.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class InteractiveMarkerInit.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class InteractiveMarkerPose.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class InteractiveMarkerUpdate.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class Marker.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class MarkerArray.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class MenuEntry.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class MeshFile.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class UVCoordinate.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum ImageMarkerId already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum InteractiveMarkerControlOrientationMode already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum InteractiveMarkerFeedbackEventType already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum Mouse already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum InteractiveMarkerUpdateType already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum MarkerId already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum MenuEntryCommandType already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted ImageMarkerId.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted InteractiveMarkerControlOrientationMode.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted InteractiveMarkerFeedbackEventType.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Mouse.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted InteractiveMarkerUpdateType.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted MarkerId.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted MenuEntryCommandType.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum ImageMarkerId.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum InteractiveMarkerControlOrientationMode.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum InteractiveMarkerFeedbackEventType.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum Mouse.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum InteractiveMarkerUpdateType.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum MarkerId.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum MenuEntryCommandType.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class GoalInfo already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class GoalStatus already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class GoalStatusArray already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted GoalInfo.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted GoalStatus.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted GoalStatusArray.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class GoalInfo.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class GoalStatus.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class GoalStatusArray.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum GoalStatusStatus already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum StatusAccepted already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum StatusExecuting already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum StatusCanceling already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum StatusSucceeded already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum StatusCanceled already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum StatusAborted already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted GoalStatusStatus.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted StatusAccepted.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted StatusExecuting.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted StatusCanceling.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted StatusSucceeded.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted StatusCanceled.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted StatusAborted.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum GoalStatusStatus.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum StatusAccepted.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum StatusExecuting.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum StatusCanceling.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum StatusSucceeded.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum StatusCanceled.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum StatusAborted.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class Duration already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class Time already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Duration.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Time.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class Duration.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class Time.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class State already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class Transition already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class TransitionDescription already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class TransitionEvent already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted State.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Transition.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted TransitionDescription.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted TransitionEvent.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class State.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class Transition.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class TransitionDescription.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class TransitionEvent.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum StateId already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum PrimaryStateUnconfigured already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum PrimaryStateInactive already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum PrimaryStateActive already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum PrimaryStateFinalized already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum TransitionStateConfiguring already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum TransitionStateCleaningup already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum TransitionStateShuttingdown already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum TransitionStateActivating already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum TransitionStateDeactivating already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum TransitionStateErrorprocessing already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum TransitionId already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum TransitionConfigure already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum TransitionCleanup already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum TransitionActivate already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum TransitionDeactivate already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum TransitionUnconfiguredShutdown already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum TransitionInactiveShutdown already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum TransitionActiveShutdown already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum TransitionDestroy already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum TransitionOnConfigure already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum TransitionOnCleanup already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum TransitionOnActivate already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum TransitionOnDeactivate already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum TransitionOnShutdown already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum TransitionOnError already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum TransitionCallbackSuccess already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum TransitionCallbackFailure already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum TransitionCallbackError already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted StateId.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted PrimaryStateUnconfigured.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted PrimaryStateInactive.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted PrimaryStateActive.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted PrimaryStateFinalized.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted TransitionStateConfiguring.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted TransitionStateCleaningup.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted TransitionStateShuttingdown.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted TransitionStateActivating.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted TransitionStateDeactivating.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted TransitionStateErrorprocessing.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted TransitionId.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted TransitionConfigure.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted TransitionCleanup.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted TransitionActivate.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted TransitionDeactivate.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted TransitionUnconfiguredShutdown.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted TransitionInactiveShutdown.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted TransitionActiveShutdown.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted TransitionDestroy.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted TransitionOnConfigure.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted TransitionOnCleanup.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted TransitionOnActivate.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted TransitionOnDeactivate.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted TransitionOnShutdown.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted TransitionOnError.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted TransitionCallbackSuccess.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted TransitionCallbackFailure.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted TransitionCallbackError.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum StateId.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum PrimaryStateUnconfigured.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum PrimaryStateInactive.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum PrimaryStateActive.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum PrimaryStateFinalized.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum TransitionStateConfiguring.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum TransitionStateCleaningup.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum TransitionStateShuttingdown.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum TransitionStateActivating.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum TransitionStateDeactivating.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum TransitionStateErrorprocessing.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum TransitionId.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum TransitionConfigure.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum TransitionCleanup.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum TransitionActivate.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum TransitionDeactivate.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum TransitionUnconfiguredShutdown.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum TransitionInactiveShutdown.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum TransitionActiveShutdown.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum TransitionDestroy.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum TransitionOnConfigure.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum TransitionOnCleanup.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum TransitionOnActivate.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum TransitionOnDeactivate.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum TransitionOnShutdown.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum TransitionOnError.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum TransitionCallbackSuccess.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum TransitionCallbackFailure.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum TransitionCallbackError.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class FloatingPointRange already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class IntegerRange already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class ListParametersResult already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class Log already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class LoggerLevel already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class Parameter already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class ParameterDescriptor already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class ParameterEvent already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class ParameterEventDescriptors already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class ParameterValue already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class SetLoggerLevelsResult already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class SetParametersResult already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted FloatingPointRange.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted IntegerRange.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted ListParametersResult.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Log.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted LoggerLevel.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Parameter.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted ParameterDescriptor.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted ParameterEvent.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted ParameterEventDescriptors.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted ParameterValue.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted SetLoggerLevelsResult.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted SetParametersResult.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class FloatingPointRange.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class IntegerRange.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class ListParametersResult.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class Log.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class LoggerLevel.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class Parameter.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class ParameterDescriptor.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class ParameterEvent.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class ParameterEventDescriptors.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class ParameterValue.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class SetLoggerLevelsResult.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class SetParametersResult.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum LogLevel already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum Info already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum Warn already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum Error already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum Fatal already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum LoggerLevelType already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum ParameterNotSet already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum Parameter already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted LogLevel.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Info.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Warn.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Error.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Fatal.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted LoggerLevelType.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted ParameterNotSet.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Parameter.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum LogLevel.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum Info.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum Warn.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum Error.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum Fatal.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum LoggerLevelType.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum ParameterNotSet.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum Parameter.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class Clock already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Clock.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class Clock.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class ServiceEventInfo already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted ServiceEventInfo.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class ServiceEventInfo.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum ServiceEventInfoEventType already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted ServiceEventInfoEventType.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum ServiceEventInfoEventType.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class MetricsMessage already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class StatisticDataPoint already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted MetricsMessage.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted StatisticDataPoint.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class MetricsMessage.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class StatisticDataPoint.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum StatisticsDataTypeUninitialized already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum StatisticsDataType already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted StatisticsDataTypeUninitialized.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted StatisticsDataType.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum StatisticsDataTypeUninitialized.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum StatisticsDataType.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class Builtins already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Builtins.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class Builtins.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class Field already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class FieldType already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class IndividualTypeDescription already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class KeyValue already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class TypeDescription already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class TypeSource already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Field.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted FieldType.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted IndividualTypeDescription.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted KeyValue.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted TypeDescription.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted TypeSource.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class Field.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class FieldType.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class IndividualTypeDescription.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class KeyValue.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class TypeDescription.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class TypeSource.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum FieldTypeTypeId 0 already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum FieldTypeNestedType already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum FieldType already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum FieldType already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum FieldType already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum FieldTypeBoolean already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum FieldTypeByte already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum FieldType already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum FieldTypeFixed already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum FieldTypeBounded already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum FieldType already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum FieldType already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum FieldType already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted FieldTypeTypeId 0.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted FieldTypeNestedType.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted FieldType.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted FieldTypeBoolean.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted FieldTypeByte.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted FieldTypeFixed.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted FieldTypeBounded.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum FieldTypeTypeId 0.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum FieldTypeNestedType.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum FieldType.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum FieldType already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum FieldType already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum FieldTypeBoolean.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum FieldTypeByte.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum FieldType already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum FieldTypeFixed.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum FieldTypeBounded.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum FieldType already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum FieldType already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum FieldType already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class UUID already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted UUID.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class UUID.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for GoalID.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for GoalStatus.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for GoalStatusArray.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for DiagnosticArray.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for DiagnosticStatus.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for KeyValue.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for Accel.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for AccelStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for AccelWithCovariance.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for AccelWithCovarianceStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for Inertia.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for InertiaStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for Point.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for Point32.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for PointStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for Polygon.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for PolygonStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for Pose.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for Pose2D.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for PoseArray.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for PoseStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for PoseWithCovariance.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for PoseWithCovarianceStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for Quaternion.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for QuaternionStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for Transform.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for TransformStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for Twist.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for TwistStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for TwistWithCovariance.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for TwistWithCovarianceStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for Vector3.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for Vector3Stamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for Wrench.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for WrenchStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for GridCells.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for MapMetaData.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for OccupancyGrid.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for Odometry.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for Path.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for BatteryState.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for CameraInfo.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for ChannelFloat32.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for CompressedImage.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for FluidPressure.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for Illuminance.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for Image.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for Imu.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for JointState.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for Joy.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for JoyFeedback.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for JoyFeedbackArray.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for LaserEcho.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for LaserScan.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for MagneticField.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for MultiDOFJointState.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for MultiEchoLaserScan.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for NavSatFix.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for NavSatStatus.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for PointCloud.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for PointCloud2.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for PointField.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for Range.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for RegionOfInterest.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for RelativeHumidity.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for Temperature.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for TimeReference.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for Mesh.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for MeshTriangle.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for Plane.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for SolidPrimitive.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for Bool.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for Byte.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for ByteMultiArray.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for Char.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for ColorRGBA.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for Float32.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for Float32MultiArray.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for Float64.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for Float64MultiArray.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for Header.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for Int16.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for Int16MultiArray.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for Int32.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for Int32MultiArray.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for Int64.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for Int64MultiArray.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for Int8.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for Int8MultiArray.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for MultiArrayDimension.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for MultiArrayLayout.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for String.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for UInt16.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for UInt16MultiArray.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for UInt32.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for UInt32MultiArray.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for UInt64.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for UInt64MultiArray.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for UInt8.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for UInt8MultiArray.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for DisparityImage.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for JointTrajectory.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for JointTrajectoryPoint.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for MultiDOFJointTrajectory.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for MultiDOFJointTrajectoryPoint.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for ImageMarker.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for InteractiveMarker.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for InteractiveMarkerControl.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for InteractiveMarkerFeedback.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for InteractiveMarkerInit.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for InteractiveMarkerPose.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for InteractiveMarkerUpdate.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for Marker.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for MarkerArray.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for MenuEntry.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for MeshFile.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for UVCoordinate.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for GoalInfo.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for GoalStatus.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for GoalStatusArray.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for Duration.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for Time.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for State.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for Transition.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for TransitionDescription.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for TransitionEvent.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for FloatingPointRange.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for IntegerRange.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for ListParametersResult.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for Log.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for LoggerLevel.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for Parameter.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for ParameterDescriptor.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for ParameterEvent.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for ParameterEventDescriptors.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for ParameterValue.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for SetLoggerLevelsResult.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for SetParametersResult.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for Clock.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for ServiceEventInfo.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for MetricsMessage.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for StatisticDataPoint.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for Builtins.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for Field.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for FieldType.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for IndividualTypeDescription.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for KeyValue.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for TypeDescription.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for TypeSource.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for UUID.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class CoupledLocalization already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class CoupledLocalizationStamped already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class CoupledLocalizationTupel already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class CoupledLocalizationTupelStamped already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class EgoMotion already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class EgoMotionPath already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class EgoMotionPathStamped already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class EgoMotionStamped already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class GNSSLocalization already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class GNSSLocalizationStamped already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class IMU already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class IMUStamped already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class MapMatchedLocalization already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class MapMatchedLocalizationStamped already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class MapMatchedLocalizationTupel already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class MapMatchedLocalizationTupelStamped already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class Objects already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class ObjectsStamped already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class Odometry already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class OdometryStamped already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class RailHorizon already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class RailHorizonStamped already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class SensorInformation already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class SensorInformationStamped already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class StaticObjects already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class StaticObjectsStamped already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted CoupledLocalization.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted CoupledLocalizationStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted CoupledLocalizationTupel.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted CoupledLocalizationTupelStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted EgoMotion.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted EgoMotionPath.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted EgoMotionPathStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted EgoMotionStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted GNSSLocalization.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted GNSSLocalizationStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted IMU.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted IMUStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted MapMatchedLocalization.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted MapMatchedLocalizationStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted MapMatchedLocalizationTupel.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted MapMatchedLocalizationTupelStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Objects.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted ObjectsStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Odometry.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted OdometryStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted RailHorizon.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted RailHorizonStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted SensorInformation.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted SensorInformationStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted StaticObjects.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted StaticObjectsStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class CoupledLocalization.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class CoupledLocalizationStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class CoupledLocalizationTupel.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class CoupledLocalizationTupelStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class EgoMotion.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class EgoMotionPath.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class EgoMotionPathStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class EgoMotionStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class GNSSLocalization.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class GNSSLocalizationStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class IMU.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class IMUStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class MapMatchedLocalization.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class MapMatchedLocalizationStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class MapMatchedLocalizationTupel.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class MapMatchedLocalizationTupelStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class Objects.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class ObjectsStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class Odometry.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class OdometryStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class RailHorizon.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class RailHorizonStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class SensorInformation.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class SensorInformationStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class StaticObjects.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class StaticObjectsStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class ApplicationConfiguration already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class ApplicationConfigurationStamped already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class ApplicationStatus already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class ApplicationStatusStamped already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class ApplicationVersion already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class ApplicationVersionStamped already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class MissionProfile already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class MissionProfileStamped already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted ApplicationConfiguration.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted ApplicationConfigurationStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted ApplicationStatus.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted ApplicationStatusStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted ApplicationVersion.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted ApplicationVersionStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted MissionProfile.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted MissionProfileStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class ApplicationConfiguration.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class ApplicationConfigurationStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class ApplicationStatus.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class ApplicationStatusStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class ApplicationVersion.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class ApplicationVersionStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class MissionProfile.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class MissionProfileStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class Covariance already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class FieldOfView already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class ID already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class KeyValueMap already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class KeyValuePair already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class LocalizationIntegrity already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class MapMatchingIntegrity already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class Object already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class ObjectBase already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class ObjectClassification already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class ObjectTracking already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class Orientation already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class Position already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class Probability already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class RailHorizonData already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class SensorInformationEntry already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class SensorIntegrity already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class Shape already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class Topology already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class Track already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class TrackPoint already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Class Variance already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Covariance.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted FieldOfView.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted ID.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted KeyValueMap.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted KeyValuePair.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted LocalizationIntegrity.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted MapMatchingIntegrity.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Object.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted ObjectBase.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted ObjectClassification.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted ObjectTracking.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Orientation.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Position.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Probability.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted RailHorizonData.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted SensorInformationEntry.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted SensorIntegrity.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Shape.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Topology.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Track.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted TrackPoint.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted Variance.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class Covariance.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class FieldOfView.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class ID.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class KeyValueMap.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class KeyValuePair.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class LocalizationIntegrity.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class MapMatchingIntegrity.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class Object.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class ObjectBase.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class ObjectClassification.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class ObjectTracking.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class Orientation.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class Position.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class Probability.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class RailHorizonData.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class SensorInformationEntry.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class SensorIntegrity.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class Shape.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class Topology.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class Track.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class TrackPoint.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created class Variance.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum ApplicationModeTypes already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum ApplicationStatusType already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum ApplicationStatusSubTypeUnknown already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum LocalizationIntegrityType already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum LocalizationIntegrityTypeMotion already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum LocalizationIntegrityTypePosition already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum LocalizationIntegrityTypeDirection already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum MapMatchingIntegrityType already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum MapMatchingInvalidType already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum MapMatchingOrientationTypes already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum ObjectMotionType already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum DynamicObjectType already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum DynamicObjectTypePedestrianType already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum StaticObjectClass already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum StaticObjectClassVerticalType already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum StaticObjectClassBodyType already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum StaticObjectClassPlaneType already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum StaticObjectClassPlaneSubtype already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum StaticObjectClassCompositionType already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum SensorIntegrityType already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum SensorType already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum SensorSubtype already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum SensorPosition already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum SensorSubposition already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum ShapeParameterIndicesTypePlane already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum ShapeParameterIndicesTypeBox already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum ShapeParameterIndicesTypeSphereRadius already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum ShapeParameterIndicesTypeCylinder already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum ShapeParameterIndicesTypeCone already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum ShapeParameterIndicesTypeVerticalStructureTopPoint already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum ShapeParameterIndicesTypeVerticalStructureBottomPoint already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum ShapeParameterIndicesTypeVerticalStructureWithRadiusTopPoint already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum ShapeParameterIndicesTypeVerticalStructureWithRadiusBottomPoint already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum ShapeParameterIndicesTypeHorizontalStructurePoint already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum ShapeParameterIndicesTypeBodyStructure already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum ShapeParameterIndicesTypePlaneStructurePoint already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum ShapeParameterIndicesTypeComposedStructureId already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum ShapeTypeUndefined already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum ShapeType already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum ShapeType already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum TrackType already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum TrackSubtype already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted ApplicationModeTypes.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted ApplicationStatusType.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted ApplicationStatusSubTypeUnknown.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted LocalizationIntegrityType.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted LocalizationIntegrityTypeMotion.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted LocalizationIntegrityTypePosition.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted LocalizationIntegrityTypeDirection.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted MapMatchingIntegrityType.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted MapMatchingInvalidType.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted MapMatchingOrientationTypes.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted ObjectMotionType.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted DynamicObjectType.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted DynamicObjectTypePedestrianType.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted StaticObjectClass.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted StaticObjectClassVerticalType.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted StaticObjectClassBodyType.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted StaticObjectClassPlaneType.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted StaticObjectClassPlaneSubtype.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted StaticObjectClassCompositionType.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted SensorIntegrityType.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted SensorType.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted SensorSubtype.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted SensorPosition.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted SensorSubposition.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted ShapeParameterIndicesTypePlane.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted ShapeParameterIndicesTypeBox.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted ShapeParameterIndicesTypeSphereRadius.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted ShapeParameterIndicesTypeCylinder.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted ShapeParameterIndicesTypeCone.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted ShapeParameterIndicesTypeVerticalStructureTopPoint.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted ShapeParameterIndicesTypeVerticalStructureBottomPoint.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted ShapeParameterIndicesTypeVerticalStructureWithRadiusTopPoint.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted ShapeParameterIndicesTypeVerticalStructureWithRadiusBottomPoint.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted ShapeParameterIndicesTypeHorizontalStructurePoint.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted ShapeParameterIndicesTypeBodyStructure.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted ShapeParameterIndicesTypePlaneStructurePoint.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted ShapeParameterIndicesTypeComposedStructureId.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted ShapeTypeUndefined.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted ShapeType.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted TrackType.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Deleted TrackSubtype.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum ApplicationModeTypes.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum ApplicationStatusType.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum ApplicationStatusSubTypeUnknown.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum LocalizationIntegrityType.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum LocalizationIntegrityTypeMotion.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum LocalizationIntegrityTypePosition.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum LocalizationIntegrityTypeDirection.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum MapMatchingIntegrityType.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum MapMatchingInvalidType.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum MapMatchingOrientationTypes.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum ObjectMotionType.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum DynamicObjectType.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum DynamicObjectTypePedestrianType.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum StaticObjectClass.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum StaticObjectClassVerticalType.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum StaticObjectClassBodyType.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum StaticObjectClassPlaneType.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum StaticObjectClassPlaneSubtype.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum StaticObjectClassCompositionType.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum SensorIntegrityType.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum SensorType.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum SensorSubtype.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum SensorPosition.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum SensorSubposition.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum ShapeParameterIndicesTypePlane.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum ShapeParameterIndicesTypeBox.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum ShapeParameterIndicesTypeSphereRadius.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum ShapeParameterIndicesTypeCylinder.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum ShapeParameterIndicesTypeCone.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum ShapeParameterIndicesTypeVerticalStructureTopPoint.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum ShapeParameterIndicesTypeVerticalStructureBottomPoint.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum ShapeParameterIndicesTypeVerticalStructureWithRadiusTopPoint.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum ShapeParameterIndicesTypeVerticalStructureWithRadiusBottomPoint.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum ShapeParameterIndicesTypeHorizontalStructurePoint.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum ShapeParameterIndicesTypeBodyStructure.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum ShapeParameterIndicesTypePlaneStructurePoint.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum ShapeParameterIndicesTypeComposedStructureId.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum ShapeTypeUndefined.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum ShapeType.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Enum ShapeType already exists.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum TrackType.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created enum TrackSubtype.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for CoupledLocalization.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for CoupledLocalizationStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for CoupledLocalizationTupel.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for CoupledLocalizationTupelStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for EgoMotion.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for EgoMotionPath.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for EgoMotionPathStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for EgoMotionStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for GNSSLocalization.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for GNSSLocalizationStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for IMU.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for IMUStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for MapMatchedLocalization.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for MapMatchedLocalizationStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for MapMatchedLocalizationTupel.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for MapMatchedLocalizationTupelStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for Objects.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for ObjectsStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for Odometry.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for OdometryStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for RailHorizon.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for RailHorizonStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for SensorInformation.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for SensorInformationStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for StaticObjects.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for StaticObjectsStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for ApplicationConfiguration.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for ApplicationConfigurationStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for ApplicationStatus.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for ApplicationStatusStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for ApplicationVersion.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for ApplicationVersionStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for MissionProfile.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for MissionProfileStamped.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for Covariance.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for FieldOfView.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for ID.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for KeyValueMap.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for KeyValuePair.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for LocalizationIntegrity.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for MapMatchingIntegrity.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for Object.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for ObjectBase.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for ObjectClassification.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for ObjectTracking.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for Orientation.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for Position.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for Probability.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for RailHorizonData.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for SensorInformationEntry.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for SensorIntegrity.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for Shape.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for Topology.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for Track.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for TrackPoint.\n", + "INFO:capella_ros_tools.modules.capella.serializer:Created properties for Variance.\n" + ] + } + ], + "source": [ + "converter.convert()" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": ".venv", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.10.12" + } + }, + "nbformat": 4, + "nbformat_minor": 2 +} diff --git a/docs/source/examples/Convert messages.ipynb.license b/docs/source/examples/Convert messages.ipynb.license new file mode 100644 index 0000000..6605644 --- /dev/null +++ b/docs/source/examples/Convert messages.ipynb.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright DB Netz AG and the capellambse contributors +SPDX-License-Identifier: Apache-2.0 diff --git a/docs/source/examples/Parse messages.ipynb b/docs/source/examples/Parse messages.ipynb new file mode 100644 index 0000000..ff91330 --- /dev/null +++ b/docs/source/examples/Parse messages.ipynb @@ -0,0 +1,312 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 1, + "metadata": {}, + "outputs": [], + "source": [ + "from capella_ros_tools.modules.messages.parser import MessageDef\n", + "from IPython.display import display" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": {}, + "outputs": [], + "source": [ + "msg_name = \"CameraInfo\"\n", + "msg_string = \"\"\"\n", + "# This message defines meta information for a camera. It should be in a\n", + "# camera namespace on topic \"camera_info\" and accompanied by up to five\n", + "# image topics named:\n", + "#\n", + "# image_raw - raw data from the camera driver, possibly Bayer encoded\n", + "# image - monochrome, distorted\n", + "# image_color - color, distorted\n", + "# image_rect - monochrome, rectified\n", + "# image_rect_color - color, rectified\n", + "#\n", + "# The image_pipeline contains packages (image_proc, stereo_image_proc)\n", + "# for producing the four processed image topics from image_raw and\n", + "# camera_info. The meaning of the camera parameters are described in\n", + "# detail at http://www.ros.org/wiki/image_pipeline/CameraInfo.\n", + "#\n", + "# The image_geometry package provides a user-friendly interface to\n", + "# common operations using this meta information. If you want to, e.g.,\n", + "# project a 3d point into image coordinates, we strongly recommend\n", + "# using image_geometry.\n", + "#\n", + "# If the camera is uncalibrated, the matrices D, K, R, P should be left\n", + "# zeroed out. In particular, clients may assume that K[0] == 0.0\n", + "# indicates an uncalibrated camera.\n", + "\n", + "#######################################################################\n", + "# Image acquisition info #\n", + "#######################################################################\n", + "\n", + "# Time of image acquisition, camera coordinate frame ID\n", + "std_msgs/Header header # Header timestamp should be acquisition time of image\n", + " # Header frame_id should be optical frame of camera\n", + " # origin of frame should be optical center of camera\n", + " # +x should point to the right in the image\n", + " # +y should point down in the image\n", + " # +z should point into the plane of the image\n", + "\n", + "\n", + "#######################################################################\n", + "# Calibration Parameters #\n", + "#######################################################################\n", + "# These are fixed during camera calibration. Their values will be the #\n", + "# same in all messages until the camera is recalibrated. Note that #\n", + "# self-calibrating systems may \"recalibrate\" frequently. #\n", + "# #\n", + "# The internal parameters can be used to warp a raw (distorted) image #\n", + "# to: #\n", + "# 1. An undistorted image (requires D and K) #\n", + "# 2. A rectified image (requires D, K, R) #\n", + "# The projection matrix P projects 3D points into the rectified image.#\n", + "#######################################################################\n", + "\n", + "# The image dimensions with which the camera was calibrated.\n", + "# Normally this will be the full camera resolution in pixels.\n", + "uint32 height\n", + "uint32 width\n", + "\n", + "# The distortion model used. Supported models are listed in\n", + "# sensor_msgs/distortion_models.hpp. For most cameras, \"plumb_bob\" - a\n", + "# simple model of radial and tangential distortion - is sufficent.\n", + "string distortion_model\n", + "\n", + "# The distortion parameters, size depending on the distortion model.\n", + "# For \"plumb_bob\", the 5 parameters are: (k1, k2, t1, t2, k3).\n", + "float64[] d\n", + "\n", + "# Intrinsic camera matrix for the raw (distorted) images.\n", + "# [fx 0 cx]\n", + "# K = [ 0 fy cy]\n", + "# [ 0 0 1]\n", + "# Projects 3D points in the camera coordinate frame to 2D pixel\n", + "# coordinates using the focal lengths (fx, fy) and principal point\n", + "# (cx, cy).\n", + "float64[9] k # 3x3 row-major matrix\n", + "\n", + "# Rectification matrix (stereo cameras only)\n", + "# A rotation matrix aligning the camera coordinate system to the ideal\n", + "# stereo image plane so that epipolar lines in both stereo images are\n", + "# parallel.\n", + "float64[9] r # 3x3 row-major matrix\n", + "\n", + "# Projection/camera matrix\n", + "# [fx' 0 cx' Tx]\n", + "# P = [ 0 fy' cy' Ty]\n", + "# [ 0 0 1 0]\n", + "# By convention, this matrix specifies the intrinsic (camera) matrix\n", + "# of the processed (rectified) image. That is, the left 3x3 portion\n", + "# is the normal camera intrinsic matrix for the rectified image.\n", + "# It projects 3D points in the camera coordinate frame to 2D pixel\n", + "# coordinates using the focal lengths (fx', fy') and principal point\n", + "# (cx', cy') - these may differ from the values in K.\n", + "# For monocular cameras, Tx = Ty = 0. Normally, monocular cameras will\n", + "# also have R = the identity and P[1:3,1:3] = K.\n", + "# For a stereo pair, the fourth column [Tx Ty 0]' is related to the\n", + "# position of the optical center of the second camera in the first\n", + "# camera's frame. We assume Tz = 0 so both cameras are in the same\n", + "# stereo image plane. The first camera always has Tx = Ty = 0. For\n", + "# the right (second) camera of a horizontal stereo pair, Ty = 0 and\n", + "# Tx = -fx' * B, where B is the baseline between the cameras.\n", + "# Given a 3D point [X Y Z]', the projection (x, y) of the point onto\n", + "# the rectified image is given by:\n", + "# [u v w]' = P * [X Y Z 1]'\n", + "# x = u / w\n", + "# y = v / w\n", + "# This holds for both images of a stereo pair.\n", + "float64[12] p # 3x4 row-major matrix\n", + "\n", + "\n", + "#######################################################################\n", + "# Operational Parameters #\n", + "#######################################################################\n", + "# These define the image region actually captured by the camera #\n", + "# driver. Although they affect the geometry of the output image, they #\n", + "# may be changed freely without recalibrating the camera. #\n", + "#######################################################################\n", + "\n", + "# Binning refers here to any camera setting which combines rectangular\n", + "# neighborhoods of pixels into larger \"super-pixels.\" It reduces the\n", + "# resolution of the output image to\n", + "# (width / binning_x) x (height / binning_y).\n", + "# The default values binning_x = binning_y = 0 is considered the same\n", + "# as binning_x = binning_y = 1 (no subsampling).\n", + "uint32 binning_x\n", + "uint32 binning_y\n", + "\n", + "# Region of interest (subwindow of full camera resolution), given in\n", + "# full resolution (unbinned) image coordinates. A particular ROI\n", + "# always denotes the same window of pixels on the camera sensor,\n", + "# regardless of binning settings.\n", + "# The default setting of roi (all values 0) is considered the same as\n", + "# full resolution (roi.width = width, roi.height = height).\n", + "RegionOfInterest roi\n", + "\"\"\"" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "

CameraInfo

# This message defines meta information for a camera. It should be in a
# camera namespace on topic \"camera_info\" and accompanied by up to five
# image topics named:
#
# image_raw - raw data from the camera driver, possibly Bayer encoded
# image - monochrome, distorted
# image_color - color, distorted
# image_rect - monochrome, rectified
# image_rect_color - color, rectified
#
# The image_pipeline contains packages (image_proc, stereo_image_proc)
# for producing the four processed image topics from image_raw and
# camera_info. The meaning of the camera parameters are described in
# detail at http://www.ros.org/wiki/image_pipeline/CameraInfo.
#
# The image_geometry package provides a user-friendly interface to
# common operations using this meta information. If you want to, e.g.,
# project a 3d point into image coordinates, we strongly recommend
# using image_geometry.
#
# If the camera is uncalibrated, the matrices D, K, R, P should be left
# zeroed out. In particular, clients may assume that K[0] == 0.0
# indicates an uncalibrated camera.
#######################################################################
# Image acquisition info #
#######################################################################
#######################################################################
# Calibration Parameters #
#######################################################################
# These are fixed during camera calibration. Their values will be the #
# same in all messages until the camera is recalibrated. Note that #
# self-calibrating systems may \"recalibrate\" frequently. #
# #
# The internal parameters can be used to warp a raw (distorted) image #
# to: #
# 1. An undistorted image (requires D and K) #
# 2. A rectified image (requires D, K, R) #
# The projection matrix P projects 3D points into the rectified image.#
#######################################################################
#######################################################################
# Operational Parameters #
#######################################################################
# These define the image region actually captured by the camera #
# driver. Although they affect the geometry of the output image, they #
# may be changed freely without recalibrating the camera. #
#######################################################################

Fields

  1. std_msgs/Header header
    # Time of image acquisition, camera coordinate frame ID
    # Header timestamp should be acquisition time of image
    # Header frame_id should be optical frame of camera
    # origin of frame should be optical center of camera
    # +x should point to the right in the image
    # +y should point down in the image
    # +z should point into the plane of the image
  2. uint32 height
    # The image dimensions with which the camera was calibrated.
    # Normally this will be the full camera resolution in pixels.
  3. uint32 width
    # The image dimensions with which the camera was calibrated.
    # Normally this will be the full camera resolution in pixels.
  4. string distortion_model
    # The distortion model used. Supported models are listed in
    # sensor_msgs/distortion_models.hpp. For most cameras, \"plumb_bob\" - a
    # simple model of radial and tangential distortion - is sufficent.
  5. float64[] d
    # The distortion parameters, size depending on the distortion model.
    # For \"plumb_bob\", the 5 parameters are: (k1, k2, t1, t2, k3).
  6. float64[9.0] k
    # Intrinsic camera matrix for the raw (distorted) images.
    # [fx 0 cx]
    # K = [ 0 fy cy]
    # [ 0 0 1]
    # Projects 3D points in the camera coordinate frame to 2D pixel
    # coordinates using the focal lengths (fx, fy) and principal point
    # (cx, cy).
    # 3x3 row-major matrix
  7. float64[9.0] r
    # Rectification matrix (stereo cameras only)
    # A rotation matrix aligning the camera coordinate system to the ideal
    # stereo image plane so that epipolar lines in both stereo images are
    # parallel.
    # 3x3 row-major matrix
  8. float64[12.0] p
    # Projection/camera matrix
    # [fx' 0 cx' Tx]
    # P = [ 0 fy' cy' Ty]
    # [ 0 0 1 0]
    # By convention, this matrix specifies the intrinsic (camera) matrix
    # of the processed (rectified) image. That is, the left 3x3 portion
    # is the normal camera intrinsic matrix for the rectified image.
    # It projects 3D points in the camera coordinate frame to 2D pixel
    # coordinates using the focal lengths (fx', fy') and principal point
    # (cx', cy') - these may differ from the values in K.
    # For monocular cameras, Tx = Ty = 0. Normally, monocular cameras will
    # also have R = the identity and P[1:3,1:3] = K.
    # For a stereo pair, the fourth column [Tx Ty 0]' is related to the
    # position of the optical center of the second camera in the first
    # camera's frame. We assume Tz = 0 so both cameras are in the same
    # stereo image plane. The first camera always has Tx = Ty = 0. For
    # the right (second) camera of a horizontal stereo pair, Ty = 0 and
    # Tx = -fx' * B, where B is the baseline between the cameras.
    # Given a 3D point [X Y Z]', the projection (x, y) of the point onto
    # the rectified image is given by:
    # [u v w]' = P * [X Y Z 1]'
    # x = u / w
    # y = v / w
    # This holds for both images of a stereo pair.
    # 3x4 row-major matrix
  9. uint32 binning_x
    # Binning refers here to any camera setting which combines rectangular
    # neighborhoods of pixels into larger \"super-pixels.\" It reduces the
    # resolution of the output image to
    # (width / binning_x) x (height / binning_y).
    # The default values binning_x = binning_y = 0 is considered the same
    # as binning_x = binning_y = 1 (no subsampling).
  10. uint32 binning_y
    # Binning refers here to any camera setting which combines rectangular
    # neighborhoods of pixels into larger \"super-pixels.\" It reduces the
    # resolution of the output image to
    # (width / binning_x) x (height / binning_y).
    # The default values binning_x = binning_y = 0 is considered the same
    # as binning_x = binning_y = 1 (no subsampling).
  11. RegionOfInterest roi
    # Region of interest (subwindow of full camera resolution), given in
    # full resolution (unbinned) image coordinates. A particular ROI
    # always denotes the same window of pixels on the camera sensor,
    # regardless of binning settings.
    # The default setting of roi (all values 0) is considered the same as
    # full resolution (roi.width = width, roi.height = height).

Enums

    " + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "msgs = MessageDef.from_msg_string(msg_name, msg_string)\n", + "display(msgs)" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": {}, + "outputs": [], + "source": [ + "msg_name = \"DiagnosticStatus\"\n", + "msg_string = \"\"\"\n", + "# This message holds the status of an individual component of the robot.\n", + "\n", + "# Possible levels of operations.\n", + "byte OK=0\n", + "byte WARN=1\n", + "byte ERROR=2\n", + "byte STALE=3\n", + "\n", + "# Level of operation enumerated above.\n", + "byte level\n", + "# A description of the test/component reporting.\n", + "string name\n", + "# A description of the status.\n", + "string message\n", + "# A hardware unique string.\n", + "string hardware_id\n", + "# An array of values associated with the status.\n", + "KeyValue[] values\n", + "\"\"\"" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "

    DiagnosticStatus

    # This message holds the status of an individual component of the robot.

    Fields

    1. byte level
      # Level of operation enumerated above.
    2. string name
      # A description of the test/component reporting.
    3. string message
      # A description of the status.
    4. string hardware_id
      # A hardware unique string.
    5. KeyValue[] values
      # An array of values associated with the status.

    Enums

    1. DiagnosticStatus
      # Possible levels of operations.
      • byte OK = 0
      • byte WARN = 1
      • byte ERROR = 2
      • byte STALE = 3
    " + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "msgs = MessageDef.from_msg_string(msg_name, msg_string)\n", + "display(msgs)" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": {}, + "outputs": [], + "source": [ + "msg_name = \"PointCloud2\"\n", + "msg_string = \"\"\"\n", + "# This message holds a collection of N-dimensional points, which may\n", + "# contain additional information such as normals, intensity, etc. The\n", + "# point data is stored as a binary blob, its layout described by the\n", + "# contents of the \"fields\" array.\n", + "#\n", + "# The point cloud data may be organized 2d (image-like) or 1d (unordered).\n", + "# Point clouds organized as 2d images may be produced by camera depth sensors\n", + "# such as stereo or time-of-flight.\n", + "\n", + "# Time of sensor data acquisition, and the coordinate frame ID (for 3d points).\n", + "std_msgs/Header header\n", + "\n", + "# 2D structure of the point cloud. If the cloud is unordered, height is\n", + "# 1 and width is the length of the point cloud.\n", + "uint32 height\n", + "uint32 width\n", + "\n", + "# Describes the channels and their layout in the binary data blob.\n", + "PointField[] fields\n", + "\n", + "bool is_bigendian # Is this data bigendian?\n", + "uint32 point_step # Length of a point in bytes\n", + "uint32 row_step # Length of a row in bytes\n", + "uint8[] data # Actual point data, size is (row_step*height)\n", + "\n", + "bool is_dense # True if there are no invalid points\n", + "\"\"\"" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "

    PointCloud2

    # This message holds a collection of N-dimensional points, which may
    # contain additional information such as normals, intensity, etc. The
    # point data is stored as a binary blob, its layout described by the
    # contents of the \"fields\" array.
    #
    # The point cloud data may be organized 2d (image-like) or 1d (unordered).
    # Point clouds organized as 2d images may be produced by camera depth sensors
    # such as stereo or time-of-flight.

    Fields

    1. std_msgs/Header header
      # Time of sensor data acquisition, and the coordinate frame ID (for 3d points).
    2. uint32 height
      # 2D structure of the point cloud. If the cloud is unordered, height is
      # 1 and width is the length of the point cloud.
    3. uint32 width
      # 2D structure of the point cloud. If the cloud is unordered, height is
      # 1 and width is the length of the point cloud.
    4. PointField[] fields
      # Describes the channels and their layout in the binary data blob.
    5. bool is_bigendian
      # Is this data bigendian?
    6. uint32 point_step
      # Length of a point in bytes
    7. uint32 row_step
      # Length of a row in bytes
    8. uint8[] data
      # Actual point data, size is (row_step*height)
    9. bool is_dense
      # True if there are no invalid points

    Enums

      " + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "msgs = MessageDef.from_msg_string(msg_name, msg_string)\n", + "display(msgs)" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": ".venv", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.10.12" + } + }, + "nbformat": 4, + "nbformat_minor": 2 +} diff --git a/docs/source/examples/Parse messages.ipynb.license b/docs/source/examples/Parse messages.ipynb.license new file mode 100644 index 0000000..6605644 --- /dev/null +++ b/docs/source/examples/Parse messages.ipynb.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright DB Netz AG and the capellambse contributors +SPDX-License-Identifier: Apache-2.0 diff --git a/docs/source/examples/data/empty_project_52/.project b/docs/source/examples/data/empty_project_52/.project new file mode 100644 index 0000000..5315043 --- /dev/null +++ b/docs/source/examples/data/empty_project_52/.project @@ -0,0 +1,12 @@ + + + empty_project_52 + + + + + + + org.polarsys.capella.project.nature + + diff --git a/docs/source/examples/data/empty_project_52/.project.license b/docs/source/examples/data/empty_project_52/.project.license new file mode 100644 index 0000000..6605644 --- /dev/null +++ b/docs/source/examples/data/empty_project_52/.project.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright DB Netz AG and the capellambse contributors +SPDX-License-Identifier: Apache-2.0 diff --git a/docs/source/examples/data/empty_project_52/empty_project_52.afm b/docs/source/examples/data/empty_project_52/empty_project_52.afm new file mode 100644 index 0000000..33d102e --- /dev/null +++ b/docs/source/examples/data/empty_project_52/empty_project_52.afm @@ -0,0 +1,4 @@ + + + + diff --git a/docs/source/examples/data/empty_project_52/empty_project_52.afm.license b/docs/source/examples/data/empty_project_52/empty_project_52.afm.license new file mode 100644 index 0000000..6605644 --- /dev/null +++ b/docs/source/examples/data/empty_project_52/empty_project_52.afm.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright DB Netz AG and the capellambse contributors +SPDX-License-Identifier: Apache-2.0 diff --git a/docs/source/examples/data/empty_project_52/empty_project_52.aird b/docs/source/examples/data/empty_project_52/empty_project_52.aird new file mode 100644 index 0000000..63f8ae5 --- /dev/null +++ b/docs/source/examples/data/empty_project_52/empty_project_52.aird @@ -0,0 +1,29 @@ + + + empty_project_52.afm + empty_project_52.capella + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/source/examples/data/empty_project_52/empty_project_52.aird.license b/docs/source/examples/data/empty_project_52/empty_project_52.aird.license new file mode 100644 index 0000000..6605644 --- /dev/null +++ b/docs/source/examples/data/empty_project_52/empty_project_52.aird.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright DB Netz AG and the capellambse contributors +SPDX-License-Identifier: Apache-2.0 diff --git a/docs/source/examples/data/empty_project_52/empty_project_52.capella b/docs/source/examples/data/empty_project_52/empty_project_52.capella new file mode 100644 index 0000000..836b9e3 --- /dev/null +++ b/docs/source/examples/data/empty_project_52/empty_project_52.capella @@ -0,0 +1,272 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/source/examples/data/empty_project_52/empty_project_52.capella.license b/docs/source/examples/data/empty_project_52/empty_project_52.capella.license new file mode 100644 index 0000000..6605644 --- /dev/null +++ b/docs/source/examples/data/empty_project_52/empty_project_52.capella.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright DB Netz AG and the capellambse contributors +SPDX-License-Identifier: Apache-2.0 diff --git a/docs/source/index.rst b/docs/source/index.rst new file mode 100644 index 0000000..8e45b65 --- /dev/null +++ b/docs/source/index.rst @@ -0,0 +1,25 @@ +.. + Copyright DB Netz AG and contributors + SPDX-License-Identifier: Apache-2.0 + +Welcome to capella-ros-tools's documentation! +============================================= + +.. toctree:: + :maxdepth: 2 + :caption: Contents: + +.. toctree:: + :maxdepth: 3 + :caption: API reference + + code/modules + + + +Indices and tables +================== + +* :ref:`genindex` +* :ref:`modindex` +* :ref:`search` diff --git a/git-conventional-commits.json b/git-conventional-commits.json new file mode 100644 index 0000000..525cbf0 --- /dev/null +++ b/git-conventional-commits.json @@ -0,0 +1,18 @@ +{ + "convention" : { + "commitTypes": [ + "build", + "chore", + "ci", + "docs", + "feat", + "fix", + "merge", + "perf", + "refactor", + "revert", + "test" + ], + "commitScopes": [] + } +} diff --git a/git-conventional-commits.json.license b/git-conventional-commits.json.license new file mode 100644 index 0000000..95e8b6e --- /dev/null +++ b/git-conventional-commits.json.license @@ -0,0 +1,2 @@ +Copyright DB Netz AG and contributors +SPDX-License-Identifier: CC0-1.0 diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..b3c3736 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,202 @@ +# Copyright DB Netz AG and contributors +# SPDX-License-Identifier: Apache-2.0 + +[build-system] +requires = ["setuptools>=64", "setuptools_scm[toml]>=3.4", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +dynamic = ["version"] + +name = "capella-ros-tools" +description = "API and scripts to parse .msg files and convert them to Capella" +readme = "README.md" +requires-python = ">=3.10, <3.12" +license = { text = "Apache-2.0" } +authors = [ + { name = "DB Netz AG" }, +] +keywords = [] +classifiers = [ + "Development Status :: 1 - Planning", + "License :: OSI Approved :: Apache Software License", + "Natural Language :: English", + "Operating System :: OS Independent", + "Programming Language :: Python :: 3 :: Only", + "Programming Language :: Python :: 3.10", +] +dependencies = [ + "click", + "capellambse @ git+https://github.com/DSD-DBS/py-capellambse.git@more-filepath-props", + "capellambse_context_diagrams", +] + +[project.urls] +Homepage = "https://github.com/DSD-DBS/capella-ros-tools" +Documentation = "https://dsd-dbs.github.io/capella-ros-tools" + +[project.optional-dependencies] +docs = [ + "furo", + "sphinx", + "sphinx-copybutton", + "tomli; python_version<'3.11'", +] + +test = [ + "pytest", + "pytest-cov", +] + +[tool.black] +line-length = 79 +target-version = ["py39"] + +[tool.coverage.run] +branch = true +command_line = "-m pytest" +source = ["capella_ros_tools"] + +[tool.coverage.report] +exclude_also = [ + 'if t\.TYPE_CHECKING:', + 'class .*\bt\.Protocol\):', + '@abc\.abstractmethod', + '@t\.overload', +] +skip_covered = true + +[tool.docformatter] +wrap-descriptions = 72 +wrap-summaries = 79 + +[tool.isort] +profile = 'black' +line_length = 79 + +[tool.mypy] +check_untyped_defs = true +no_implicit_optional = true +show_error_codes = true +warn_redundant_casts = true +warn_unreachable = true +python_version = "3.10" + +[[tool.mypy.overrides]] +module = ["tests.*"] +allow_incomplete_defs = true +allow_untyped_defs = true + +[[tool.mypy.overrides]] +# Untyped third party libraries +module = [ + # ... +] +ignore_missing_imports = true + +[tool.pydocstyle] +convention = "numpy" +add-select = [ + "D212", # Multi-line docstring summary should start at the first line + "D402", # First line should not be the function’s “signature” + "D417", # Missing argument descriptions in the docstring +] +add-ignore = [ + "D201", # No blank lines allowed before function docstring # auto-formatting + "D202", # No blank lines allowed after function docstring # auto-formatting + "D203", # 1 blank line required before class docstring # auto-formatting + "D204", # 1 blank line required after class docstring # auto-formatting + "D211", # No blank lines allowed before class docstring # auto-formatting + "D213", # Multi-line docstring summary should start at the second line +] + +[tool.pylint.format] +ignore-long-lines = '^\s*(?:(?:__ |\.\. __: )?https?://[^ ]+$|def test_.*|[A-Za-z0-9_\.]+(?: ?:)?$)' + +[tool.pylint.master] +max-line-length = 79 + +[tool.pylint.messages_control] +disable = [ + "broad-except", + "global-statement", + "import-outside-toplevel", + "invalid-name", + "missing-class-docstring", + "missing-function-docstring", + "missing-module-docstring", + "no-else-break", + "no-else-continue", + "no-else-raise", + "no-else-return", + "protected-access", + "redefined-builtin", + "too-few-public-methods", + "too-many-ancestors", + "too-many-arguments", + "too-many-boolean-expressions", + "too-many-branches", + "too-many-instance-attributes", + "too-many-lines", + "too-many-locals", + "too-many-public-methods", + "too-many-return-statements", + "too-many-statements", + + # Auto-formatting + "bad-indentation", + "inconsistent-quotes", + "missing-final-newline", + "mixed-line-endings", + "multiple-imports", + "multiple-statements", + "trailing-newlines", + "trailing-whitespace", + "unexpected-line-ending-format", + "ungrouped-imports", + "wrong-import-order", + "wrong-import-position", + + # Handled by mypy + "arguments-differ", + "assignment-from-no-return", + "import-error", + "missing-kwoa", + "no-member", + "no-value-for-parameter", + "redundant-keyword-arg", + "signature-differs", + "syntax-error", + "too-many-function-args", + "unbalanced-tuple-unpacking", + "undefined-variable", + "unexpected-keyword-arg", +] +enable = [ + "c-extension-no-member", + "deprecated-pragma", + "use-symbolic-message-instead", + "useless-suppression", +] + +[tool.pytest.ini_options] +addopts = """ + --import-mode=importlib + --strict-config + --strict-markers +""" +testpaths = ["tests"] +xfail_strict = true + +[tool.setuptools] +platforms = ["any"] +zip-safe = false + +[tool.setuptools.package-data] +"*" = ["py.typed"] + +[tool.setuptools.packages.find] +include = ["capella_ros_tools", "capella_ros_tools.*"] + +[tool.setuptools_scm] +# This section must exist for setuptools_scm to work diff --git a/tests/test_capella_ros_tools.py b/tests/test_capella_ros_tools.py new file mode 100644 index 0000000..17bcb5d --- /dev/null +++ b/tests/test_capella_ros_tools.py @@ -0,0 +1,8 @@ +# Copyright DB Netz AG and contributors +# SPDX-License-Identifier: Apache-2.0 + +import capella_ros_tools + + +def test_add_some_tests_here(): + ...