Skip to content

Commit

Permalink
docs: Add GIF to README
Browse files Browse the repository at this point in the history
  • Loading branch information
huyenngn committed May 21, 2024
1 parent 172935e commit cfc44f9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
![image](https://github.com/DSD-DBS/capella-ros-tools/actions/workflows/lint.yml/badge.svg)

Tools for importing ROS .msg files into Capella `DataPackage`, `DataType` and
`Class` objects, and exporting those objects into .msg files.
`Class` objects, or exporting those objects to .msg files.

![Showcase](https://i.imgur.com/hs4EUnL.gif)

# Documentation

Expand Down
5 changes: 2 additions & 3 deletions capella_ros_tools/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# SPDX-License-Identifier: Apache-2.0
"""Tool for importing ROS messages to a Capella data package."""

import collections as c
import typing as t

from capellambse import decl, filehandler, helpers
Expand All @@ -29,8 +28,8 @@ def __init__(
no_deps: bool,
):
self.messages = data_model.MessagePkgDef("root", [], [])
self._promise_ids: c.OrderedDict[str, None] = c.OrderedDict()
self._promise_id_refs: c.OrderedDict[str, None] = c.OrderedDict()
self._promise_ids: dict[str, None] = {}
self._promise_id_refs: dict[str, None] = {}

self._add_packages("ros_msgs", msg_path)
if no_deps:
Expand Down

0 comments on commit cfc44f9

Please sign in to comment.