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 Sep 2, 2021
1 parent e9279c9 commit 4c528f9
Show file tree
Hide file tree
Showing 4 changed files with 37 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
25 changes: 25 additions & 0 deletions docu/Introspection.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
## 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:

```
mkdir -p my_catkin_ws/src
cd my_catkin_ws/src
catkin_init_workspace
rosinstall . https://raw.githubusercontent.com/ipa320/ros-model/master/docu/introspection.rosinstall
cd my_catkin_ws
catkin_make (or catkin build)
```

To start the monitoring software the snapshot node has to be started on the same machine where the software to be analysed is running:

```
source my_catkin_ws/devel/setup.bash
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
8 changes: 8 additions & 0 deletions docu/introspection.rosinstall
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
- git:
local-name: ros_model_parser
uri: https://github.com/ipa-nhg/ros_model_parser.git
version: fix-value
- git:
local-name: rosgraph_monitor
uri: https://github.com/ipa-nhg/rosgraph_monitor.git
version: rossystem_snapshot

0 comments on commit 4c528f9

Please sign in to comment.