Skip to content

Commit

Permalink
feat: Convert ROS Messages to Capella package
Browse files Browse the repository at this point in the history
  • Loading branch information
huyenngn committed Oct 27, 2023
1 parent 18390e3 commit 2b62414
Show file tree
Hide file tree
Showing 38 changed files with 10,405 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ venv.bak/
.spyderproject
.spyproject

# VS Code settings
.vscode/

# Rope project settings
.ropeproject

Expand Down
6 changes: 6 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[submodule "std_msgs"]
path = rosidl2capella/ros/std_msgs
url = https://github.com/ros/std_msgs.git
[submodule "common_msgs"]
path = rosidl2capella/ros/common_msgs
url = https://github.com/ros/common_msgs.git
2 changes: 2 additions & 0 deletions .gitmodules.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Copyright DB Netz AG and contributors
SPDX-License-Identifier: CC0-1.0
2,289 changes: 2,289 additions & 0 deletions docs/examples/advanced.ipynb

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions docs/examples/advanced.ipynb.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Copyright DB Netz AG and contributors
SPDX-License-Identifier: Apache-2.0
12 changes: 12 additions & 0 deletions docs/examples/data/empty_model/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>ros_msgs</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
</buildSpec>
<natures>
<nature>org.polarsys.capella.project.nature</nature>
</natures>
</projectDescription>
2 changes: 2 additions & 0 deletions docs/examples/data/empty_model/.project.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Copyright DB Netz AG and contributors
SPDX-License-Identifier: Apache-2.0
4 changes: 4 additions & 0 deletions docs/examples/data/empty_model/ros_msgs.afm
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<metadata:Metadata xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:metadata="http://www.polarsys.org/kitalpha/ad/metadata/1.0.0" id="_IMYo4GmiEe6H9OTeegFukw">
<viewpointReferences id="_MvN64GmiEe6H9OTeegFukw" vpId="org.polarsys.capella.core.viewpoint" version="6.0.0"/>
</metadata:Metadata>
2 changes: 2 additions & 0 deletions docs/examples/data/empty_model/ros_msgs.afm.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Copyright DB Netz AG and contributors
SPDX-License-Identifier: Apache-2.0
74 changes: 74 additions & 0 deletions docs/examples/data/empty_model/ros_msgs.aird
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
<?xml version="1.0" encoding="UTF-8"?>
<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:concern="http://www.eclipse.org/sirius/diagram/description/concern/1.1.0" xmlns:description="http://www.eclipse.org/sirius/description/1.1.0" xmlns:description_1="http://www.eclipse.org/sirius/diagram/description/1.1.0" xmlns:diagram="http://www.eclipse.org/sirius/diagram/1.1.0" xmlns:filter="http://www.eclipse.org/sirius/diagram/description/filter/1.1.0" xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.3/notation" xmlns:org.polarsys.capella.core.data.information="http://www.polarsys.org/capella/core/information/6.0.0" xmlns:viewpoint="http://www.eclipse.org/sirius/1.1.0" xsi:schemaLocation="http://www.eclipse.org/sirius/diagram/description/concern/1.1.0 http://www.eclipse.org/sirius/diagram/1.1.0#//description/concern http://www.eclipse.org/sirius/description/1.1.0 http://www.eclipse.org/sirius/1.1.0#//description http://www.eclipse.org/sirius/diagram/description/1.1.0 http://www.eclipse.org/sirius/diagram/1.1.0#//description http://www.eclipse.org/sirius/diagram/description/filter/1.1.0 http://www.eclipse.org/sirius/diagram/1.1.0#//description/filter">
<viewpoint:DAnalysis uid="_IMmrUGmiEe6H9OTeegFukw" selectedViews="_Mw3gsGmiEe6H9OTeegFukw _M1b3oGmiEe6H9OTeegFukw _M_oVcGmiEe6H9OTeegFukw _NA3EgGmiEe6H9OTeegFukw _NBFG8GmiEe6H9OTeegFukw _NBVloGmiEe6H9OTeegFukw _NC3PoGmiEe6H9OTeegFukw" version="15.0.0.202201261500">
<semanticResources>ros_msgs.afm</semanticResources>
<semanticResources>ros_msgs.capella</semanticResources>
<ownedViews xmi:type="viewpoint:DView" uid="_Mw3gsGmiEe6H9OTeegFukw">
<viewpoint xmi:type="description:Viewpoint" href="platform:/plugin/org.polarsys.kitalpha.ad.integration.sirius/description/ad.odesign#//@ownedViewpoints[name='ad']"/>
</ownedViews>
<ownedViews xmi:type="viewpoint:DView" uid="_M1b3oGmiEe6H9OTeegFukw">
<viewpoint xmi:type="description:Viewpoint" href="platform:/plugin/org.polarsys.capella.core.sirius.analysis/description/common.odesign#//@ownedViewpoints[name='Common']"/>
<ownedRepresentationDescriptors xmi:type="viewpoint:DRepresentationDescriptor" uid="_wbr-YGmiEe6H9OTeegFukw" name="[CDB] Data" repPath="#_wawKQGmiEe6H9OTeegFukw" changeId="667f10a1-2e47-4342-b62e-b8c0516253d8">
<description xmi:type="description_1:DiagramDescription" href="platform:/plugin/org.polarsys.capella.core.sirius.analysis/description/common.odesign#//@ownedViewpoints[name='Common']/@ownedRepresentations[name='Class%20Diagram%20Blank']"/>
<target xmi:type="org.polarsys.capella.core.data.information:DataPkg" href="ros_msgs.capella#792fe86e-ea52-4a4b-ac04-26561c5c5bab"/>
</ownedRepresentationDescriptors>
<ownedRepresentationDescriptors xmi:type="viewpoint:DRepresentationDescriptor" uid="_QSQHUGmjEe6H9OTeegFukw" name="[CDB] Data" repPath="#_QSLO0GmjEe6H9OTeegFukw" changeId="292f3a36-4d82-4176-acdd-e1f84f870f95">
<description xmi:type="description_1:DiagramDescription" href="platform:/plugin/org.polarsys.capella.core.sirius.analysis/description/common.odesign#//@ownedViewpoints[name='Common']/@ownedRepresentations[name='Class%20Diagram%20Blank']"/>
<target xmi:type="org.polarsys.capella.core.data.information:DataPkg" href="ros_msgs.capella#4ada90cb-13d8-4140-b92f-d8206a56bdae"/>
</ownedRepresentationDescriptors>
</ownedViews>
<ownedViews xmi:type="viewpoint:DView" uid="_M_oVcGmiEe6H9OTeegFukw">
<viewpoint xmi:type="description:Viewpoint" href="platform:/plugin/org.polarsys.capella.core.sirius.analysis/description/logical.odesign#//@ownedViewpoints[name='Logical%20Architecture']"/>
</ownedViews>
<ownedViews xmi:type="viewpoint:DView" uid="_NA3EgGmiEe6H9OTeegFukw">
<viewpoint xmi:type="description:Viewpoint" href="platform:/plugin/org.polarsys.capella.core.sirius.analysis/description/EPBS.odesign#//@ownedViewpoints[name='EPBS%20architecture']"/>
</ownedViews>
<ownedViews xmi:type="viewpoint:DView" uid="_NBFG8GmiEe6H9OTeegFukw">
<viewpoint xmi:type="description:Viewpoint" href="platform:/plugin/org.polarsys.capella.core.sirius.analysis/description/physical.odesign#//@ownedViewpoints[name='Physical%20Architecture']"/>
</ownedViews>
<ownedViews xmi:type="viewpoint:DView" uid="_NBVloGmiEe6H9OTeegFukw">
<viewpoint xmi:type="description:Viewpoint" href="platform:/plugin/org.polarsys.capella.core.sirius.analysis/description/oa.odesign#//@ownedViewpoints[name='Operational%20Analysis']"/>
</ownedViews>
<ownedViews xmi:type="viewpoint:DView" uid="_NC3PoGmiEe6H9OTeegFukw">
<viewpoint xmi:type="description:Viewpoint" href="platform:/plugin/org.polarsys.capella.core.sirius.analysis/description/context.odesign#//@ownedViewpoints[name='System%20Analysis']"/>
</ownedViews>
</viewpoint:DAnalysis>
<diagram:DSemanticDiagram uid="_wawKQGmiEe6H9OTeegFukw">
<ownedAnnotationEntries xmi:type="description:AnnotationEntry" uid="_weYtEGmiEe6H9OTeegFukw" source="GMF_DIAGRAMS">
<data xmi:type="notation:Diagram" xmi:id="_weYtEWmiEe6H9OTeegFukw" type="Sirius" element="_wawKQGmiEe6H9OTeegFukw" measurementUnit="Pixel">
<styles xmi:type="notation:DiagramStyle" xmi:id="_weYtEmmiEe6H9OTeegFukw"/>
</data>
</ownedAnnotationEntries>
<ownedAnnotationEntries xmi:type="description:AnnotationEntry" uid="_wgdJoGmiEe6H9OTeegFukw" source="DANNOTATION_CUSTOMIZATION_KEY">
<data xmi:type="diagram:ComputedStyleDescriptionRegistry" uid="_wgeXwGmiEe6H9OTeegFukw"/>
</ownedAnnotationEntries>
<description xmi:type="description_1:DiagramDescription" href="platform:/plugin/org.polarsys.capella.core.sirius.analysis/description/common.odesign#//@ownedViewpoints[name='Common']/@ownedRepresentations[name='Class%20Diagram%20Blank']"/>
<currentConcern xmi:type="concern:ConcernDescription" href="platform:/plugin/org.polarsys.capella.core.sirius.analysis/description/common.odesign#//@ownedViewpoints[name='Common']/@ownedRepresentations[name='Class%20Diagram%20Blank']/@concerns/@ownedConcernDescriptions.0"/>
<activatedFilters xmi:type="filter:CompositeFilterDescription" href="platform:/plugin/org.polarsys.capella.core.sirius.analysis/description/common.odesign#//@ownedViewpoints[name='Common']/@ownedRepresentations[name='Class%20Diagram%20Blank']/@filters[name='hide.association.labels.filter']"/>
<activatedFilters xmi:type="filter:CompositeFilterDescription" href="platform:/plugin/org.polarsys.capella.core.sirius.analysis/description/common.odesign#//@ownedViewpoints[name='Common']/@ownedRepresentations[name='Class%20Diagram%20Blank']/@filters[name='hide.technical.interfaces.filter']"/>
<activatedFilters xmi:type="filter:CompositeFilterDescription" href="platform:/plugin/org.polarsys.kitalpha.ad.integration.sirius/description/ad.odesign#//@ownedViewpoints[name='ad']/@ownedRepresentations[name='AD%20diagram']/@filters[name='ModelExtensionFilter']"/>
<filterVariableHistory xmi:type="diagram:FilterVariableHistory" uid="_wbWAIGmiEe6H9OTeegFukw"/>
<activatedLayers xmi:type="description_1:Layer" href="platform:/plugin/org.polarsys.capella.core.sirius.analysis/description/common.odesign#//@ownedViewpoints[name='Common']/@ownedRepresentations[name='Class%20Diagram%20Blank']/@defaultLayer"/>
<activatedLayers xmi:type="description_1:AdditionalLayer" href="platform:/plugin/org.polarsys.capella.core.sirius.analysis/description/common.odesign#//@ownedViewpoints[name='Common']/@ownedRepresentations[name='Class%20Diagram%20Blank']/@additionalLayers[name='Communication%20Model']"/>
<target xmi:type="org.polarsys.capella.core.data.information:DataPkg" href="ros_msgs.capella#792fe86e-ea52-4a4b-ac04-26561c5c5bab"/>
</diagram:DSemanticDiagram>
<diagram:DSemanticDiagram uid="_QSLO0GmjEe6H9OTeegFukw">
<ownedAnnotationEntries xmi:type="description:AnnotationEntry" uid="_QSR8gGmjEe6H9OTeegFukw" source="GMF_DIAGRAMS">
<data xmi:type="notation:Diagram" xmi:id="_QSR8gWmjEe6H9OTeegFukw" type="Sirius" element="_QSLO0GmjEe6H9OTeegFukw" measurementUnit="Pixel">
<styles xmi:type="notation:DiagramStyle" xmi:id="_QSR8gmmjEe6H9OTeegFukw"/>
</data>
</ownedAnnotationEntries>
<ownedAnnotationEntries xmi:type="description:AnnotationEntry" uid="_QSeJwGmjEe6H9OTeegFukw" source="DANNOTATION_CUSTOMIZATION_KEY">
<data xmi:type="diagram:ComputedStyleDescriptionRegistry" uid="_QSeJwWmjEe6H9OTeegFukw"/>
</ownedAnnotationEntries>
<description xmi:type="description_1:DiagramDescription" href="platform:/plugin/org.polarsys.capella.core.sirius.analysis/description/common.odesign#//@ownedViewpoints[name='Common']/@ownedRepresentations[name='Class%20Diagram%20Blank']"/>
<currentConcern xmi:type="concern:ConcernDescription" href="platform:/plugin/org.polarsys.capella.core.sirius.analysis/description/common.odesign#//@ownedViewpoints[name='Common']/@ownedRepresentations[name='Class%20Diagram%20Blank']/@concerns/@ownedConcernDescriptions.0"/>
<activatedFilters xmi:type="filter:CompositeFilterDescription" href="platform:/plugin/org.polarsys.capella.core.sirius.analysis/description/common.odesign#//@ownedViewpoints[name='Common']/@ownedRepresentations[name='Class%20Diagram%20Blank']/@filters[name='hide.association.labels.filter']"/>
<activatedFilters xmi:type="filter:CompositeFilterDescription" href="platform:/plugin/org.polarsys.capella.core.sirius.analysis/description/common.odesign#//@ownedViewpoints[name='Common']/@ownedRepresentations[name='Class%20Diagram%20Blank']/@filters[name='hide.technical.interfaces.filter']"/>
<activatedFilters xmi:type="filter:CompositeFilterDescription" href="platform:/plugin/org.polarsys.kitalpha.ad.integration.sirius/description/ad.odesign#//@ownedViewpoints[name='ad']/@ownedRepresentations[name='AD%20diagram']/@filters[name='ModelExtensionFilter']"/>
<filterVariableHistory xmi:type="diagram:FilterVariableHistory" uid="_QSL14GmjEe6H9OTeegFukw"/>
<activatedLayers xmi:type="description_1:Layer" href="platform:/plugin/org.polarsys.capella.core.sirius.analysis/description/common.odesign#//@ownedViewpoints[name='Common']/@ownedRepresentations[name='Class%20Diagram%20Blank']/@defaultLayer"/>
<activatedLayers xmi:type="description_1:AdditionalLayer" href="platform:/plugin/org.polarsys.capella.core.sirius.analysis/description/common.odesign#//@ownedViewpoints[name='Common']/@ownedRepresentations[name='Class%20Diagram%20Blank']/@additionalLayers[name='Communication%20Model']"/>
<target xmi:type="org.polarsys.capella.core.data.information:DataPkg" href="ros_msgs.capella#4ada90cb-13d8-4140-b92f-d8206a56bdae"/>
</diagram:DSemanticDiagram>
</xmi:XMI>
2 changes: 2 additions & 0 deletions docs/examples/data/empty_model/ros_msgs.aird.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Copyright DB Netz AG and contributors
SPDX-License-Identifier: Apache-2.0
Loading

0 comments on commit 2b62414

Please sign in to comment.