Skip to content

Commit

Permalink
add documentation for the introspector
Browse files Browse the repository at this point in the history
  • Loading branch information
ipa-nhg committed Aug 31, 2021
1 parent e9279c9 commit 8766b01
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ Publications:
- Create a model from your code:

- (Prerequisite) [Add communication objects](docu/NewCommunicationObjects.md)
- [Create new ROS components](docu/NewProject.md)
- [Create a ROS model from your source code(static code analyzer)](docu/NewRosModel.md)
- [Create a ROS model from a deployed robot using our introspection at runtime tool](docu/Introspection.md)
- [Create new ROS components](docu/NewProject.md)
- [Generation of code from models](docu/CodeGeneration.md)
- [Parameters definition](docu/Parameters.md)

Expand Down
20 changes: 20 additions & 0 deletions docu/Introspection.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
## Create a ROS model from a deployed robot using our introspection at runtime tool

Please be sure that the tool is installed and your workspace setup, see the [installation guide](../README.md) for further details.

The tools documented here were conceived as a simple way to obtain models of systems already developed during their execution. This series of scripts uses the popular ROS rosgraph library to obtain a list of the interfaces present in the system at runtime.

You can install the tools directly on your workspace using the following command:

```
cd my_catkin_ws/src
rosinstall . https://raw.githubusercontent.com/ipa320/ros-model/master/docu/introspection.rosinstall
```

To start the monitoring software the snapshot node has to be started:

```
rosrun rosgraph_monitor rossystem_snapshot
```

This script will generate automatically a new file (.rossystem) under the folder: 'rosgraph_monitor/results'.
4 changes: 2 additions & 2 deletions docu/NewRosModel.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ Under the link [Model extractor](http://ros-model.seronet-project.de/) a web ser

### Docker container

Clone the repository [ros-model-cloud](https://github.com/ipa320/ros-model-cloud) and follow its [documentation instructions](https://github.com/ipa320/ros-model-cloud/tree/master/extractor-interface)
Clone the repository [ros-model-extractors](https://github.com/ipa320/ros-model-extractors) and follow its [documentation instructions](https://github.com/ipa320/ros-model-extractors#ros-model-extractors).

Save the result content of the extraction as a ".ros" file in your tooling workspace.
Save the result content of the extraction as a ".ros" file in your tooling workspace. You can also contribute by sending us your generated files to be added to our database of models [RosCommonModels](https://github.com/ipa320/RosCommonModels).

To check the created model open the file representation.aird with the Aird editor and in the menu representations choose the "component" option and press "New.." then choose the Artifact entity of your "*.ros" model and press finish.

Expand Down
6 changes: 6 additions & 0 deletions docu/introspection.rosinstall
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
- git:
local-name: ros_model_parser
uri: https://github.com/ipa320/ros_model_parser.git
- git:
local-name: rosgraph_monitor
uri: https://github.com/ipa320/rosgraph_monitor.git

0 comments on commit 8766b01

Please sign in to comment.