Skip to content

Commit 4c528f9

Browse files
committed
add documentation for the introspector
1 parent e9279c9 commit 4c528f9

4 files changed

Lines changed: 37 additions & 3 deletions

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@ Publications:
3838
- Create a model from your code:
3939

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

docu/Introspection.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
## Create a ROS model from a deployed robot using our introspection at runtime tool
2+
3+
Please be sure that the tool is installed and your workspace setup, see the [installation guide](../README.md) for further details.
4+
5+
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.
6+
7+
You can install the tools directly on your workspace using the following command:
8+
9+
```
10+
mkdir -p my_catkin_ws/src
11+
cd my_catkin_ws/src
12+
catkin_init_workspace
13+
rosinstall . https://raw.githubusercontent.com/ipa320/ros-model/master/docu/introspection.rosinstall
14+
cd my_catkin_ws
15+
catkin_make (or catkin build)
16+
```
17+
18+
To start the monitoring software the snapshot node has to be started on the same machine where the software to be analysed is running:
19+
20+
```
21+
source my_catkin_ws/devel/setup.bash
22+
rosrun rosgraph_monitor rossystem_snapshot
23+
```
24+
25+
This script will generate automatically a new file (.rossystem) under the folder: 'rosgraph_monitor/results'.

docu/NewRosModel.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ Under the link [Model extractor](http://ros-model.seronet-project.de/) a web ser
1515

1616
### Docker container
1717

18-
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)
18+
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).
1919

20-
Save the result content of the extraction as a ".ros" file in your tooling workspace.
20+
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).
2121

2222
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.
2323

docu/introspection.rosinstall

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
- git:
2+
local-name: ros_model_parser
3+
uri: https://github.com/ipa-nhg/ros_model_parser.git
4+
version: fix-value
5+
- git:
6+
local-name: rosgraph_monitor
7+
uri: https://github.com/ipa-nhg/rosgraph_monitor.git
8+
version: rossystem_snapshot

0 commit comments

Comments
 (0)