Skip to content
This repository was archived by the owner on Jan 21, 2022. It is now read-only.

Describe using OSI Visualizer #64

Open
wants to merge 2 commits into
base: migration
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes
File renamed without changes
File renamed without changes
13 changes: 13 additions & 0 deletions doc/misc/example_visualizer.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
= Example use of OSI Visualizer

In this example, channel 1 of OSI Visualizer reads a trace file containing `SensorView` messages and publishes these messages at port 5564.
An intermediary runs at localhost using a OSMP sensor model .
The intermediary processes `SensorView` messages received at port 5564, transforms them into `SensorData` messages, and sends them to port 5563.
OSI Visualizer listens at port 5564 for `SensorData` messages and visualizes them in channel 2.

[[image-demo]]
image::demo.png[title = "Example configuration of OSI Visualizer."]

After clicking **Play** for channel 1 and 2, OSI Visualizer visualizes the communication between the two channels.
Channel 1 plays the selected OSI input file scenario and sends out the OSI message to port 5564 at the same time.
Channel 2 visualizes the received OSI messages at localhost at port 5563 showing it on the canvas.
3 changes: 2 additions & 1 deletion doc/osi-visualizer_user_guide.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

:topicdir: topics
:reusedir: reuse
:imagesdir: _images

// header & footer for html
// html themes
Expand Down Expand Up @@ -50,4 +51,4 @@ include::./use/comparing_messages.adoc[leveloffset=+2]

include::./use/configuring_view.adoc[leveloffset=+2]

include::./use/playing_large_files.adoc[leveloffset=+2]
include::./misc/example_visualizer.adoc[leveloffset=+2]
21 changes: 12 additions & 9 deletions doc/use/comparing_messages.adoc
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
= Comparing OSI message files

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Et malesuada fames ac turpis egestas.
Mauris pharetra et ultrices neque ornare aenean euismod elementum nisi.
Nulla facilisi morbi tempus iaculis urna id. Justo eget magna fermentum iaculis.
Sed augue lacus viverra vitae congue eu.
Velit ut tortor pretium viverra suspendisse.
Amet commodo nulla facilisi nullam vehicula ipsum a.
Nibh nisl condimentum id venenatis a.
Diam vel quam elementum pulvinar etiam non quam lacus suspendisse.
OSI Visualizer comprises a standalone tool to compare two OSI trace files.

**Prerequisites**

* OSI Visualizer is running.

**Steps**

. Open the **File** menu.
. Select **Python Compare**.
. Enter the full paths to the two OSI trace files.
. To export the result, click **Compare**.
18 changes: 9 additions & 9 deletions doc/use/configuring_view.adoc
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
= Configuring the view

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Et malesuada fames ac turpis egestas.
Mauris pharetra et ultrices neque ornare aenean euismod elementum nisi.
Nulla facilisi morbi tempus iaculis urna id. Justo eget magna fermentum iaculis.
Sed augue lacus viverra vitae congue eu.
Velit ut tortor pretium viverra suspendisse.
Amet commodo nulla facilisi nullam vehicula ipsum a.
Nibh nisl condimentum id venenatis a.
Diam vel quam elementum pulvinar etiam non quam lacus suspendisse.
You can configure the view of the OSI Visualizer in the **View** menu

**Prerequisites**

**Steps**

* Activate **Combine Channels** to play both channels simultaneously.
* Activate **Show Grid** to show the grid in the canvas.
* Activate **Show Object** details to display the position, velocity and acceleration of an object selected in the **Objecs Overview** tree
11 changes: 0 additions & 11 deletions doc/use/playing_large_files.adoc

This file was deleted.

39 changes: 30 additions & 9 deletions doc/use/playing_messages.adoc
Original file line number Diff line number Diff line change
@@ -1,11 +1,32 @@
= Playing back messages from a trace file

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Et malesuada fames ac turpis egestas.
Mauris pharetra et ultrices neque ornare aenean euismod elementum nisi.
Nulla facilisi morbi tempus iaculis urna id. Justo eget magna fermentum iaculis.
Sed augue lacus viverra vitae congue eu.
Velit ut tortor pretium viverra suspendisse.
Amet commodo nulla facilisi nullam vehicula ipsum a.
Nibh nisl condimentum id venenatis a.
Diam vel quam elementum pulvinar etiam non quam lacus suspendisse.
OSI Visualizer can visualize the content of an OSI trace file.

[[image-playback]]
image::playback.png[title = "Playback section in the configuration panel."]

**Prerequisites**

OSI Visualizer is running.

**Steps**

. In the configuration panel of the channel, select **Playback**.
. From the **ZMQ** drop-down list, select the ZMQ pattern you want to use.
. In the **Load** field, select the OSI trace file.
. From the **Data** drop-down list, select the ZMQ pattern you want to use.
. In the **Delay** field, enter the delta-delay in milliseconds.
The delta-delay slows down the playback speed by delaying each message by the given value.
. If you want to publish the messages to localhost, select **Send to Port** and enter the port number you want to send OSI messages to.
. If you want to add a FMU, check the **FMU** box and select the appropriate FMU file.
. Once you have configured the channel correctly, press the **Play** button to start the playback.

**Result**

The channel is playing back the OSI trace file.
If **Send to Port** is enabled, the messages are sent to localhost at the given port.

**Troubleshooting**

When playing back large trace files, the visualization may not render smoothly.
In this case, increase the delta-delay.
30 changes: 21 additions & 9 deletions doc/use/receiving_network.adoc
Original file line number Diff line number Diff line change
@@ -1,11 +1,23 @@
= Receiving OSI messages from a network

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Et malesuada fames ac turpis egestas.
Mauris pharetra et ultrices neque ornare aenean euismod elementum nisi.
Nulla facilisi morbi tempus iaculis urna id. Justo eget magna fermentum iaculis.
Sed augue lacus viverra vitae congue eu.
Velit ut tortor pretium viverra suspendisse.
Amet commodo nulla facilisi nullam vehicula ipsum a.
Nibh nisl condimentum id venenatis a.
Diam vel quam elementum pulvinar etiam non quam lacus suspendisse.
OSI Visualizer can visualize OSI messages received over a network.

[[image-connection]]
image::connection.png[title = "Connection section in the configuration panel."]

**Prerequisites**

OSI Visualizer is running.

**Steps**

. In the configuration panel of the channel, select **Connection**.
. In the **IP** field, enter the IP adress of the network.
. In the **Port** field, enter the port number you want to receive OSI messages at.
. From the **ZMQ** drop-down list, select the ZMQ pattern you want to use.
. If you want to add a FMU, check the **FMU** box and select the appropriate FMU file.
. From the **Data** drop-down list, select the ZMQ pattern you want to use.

**Result**

The channel is set up for receiving OSI messages over the network.
33 changes: 22 additions & 11 deletions doc/use/running_visualizer.adoc
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
= Running OSI visualizer

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Et malesuada fames ac turpis egestas.
Mauris pharetra et ultrices neque ornare aenean euismod elementum nisi.
Nulla facilisi morbi tempus iaculis urna id. Justo eget magna fermentum iaculis.
Sed augue lacus viverra vitae congue eu.
Velit ut tortor pretium viverra suspendisse.
Amet commodo nulla facilisi nullam vehicula ipsum a.
Nibh nisl condimentum id venenatis a.
Diam vel quam elementum pulvinar etiam non quam lacus suspendisse.
= Running OSI Visualizer

OSI Visualizer is started via the command line.

**Prerequisites**

You have built OSI Visualizer.

**Steps**

. Open a command line interpreter.
. Change to the OSI Visualizer repository.
. Run the following command to start OSI Visualizer.
+
[source]
----
./build/osi-visualizer
----

**Results**

OSI Visualizer is running.
58 changes: 47 additions & 11 deletions doc/use/running_visualizer_docker.adoc
Original file line number Diff line number Diff line change
@@ -1,11 +1,47 @@
= Running OSI visualizer using Docker

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Et malesuada fames ac turpis egestas.
Mauris pharetra et ultrices neque ornare aenean euismod elementum nisi.
Nulla facilisi morbi tempus iaculis urna id. Justo eget magna fermentum iaculis.
Sed augue lacus viverra vitae congue eu.
Velit ut tortor pretium viverra suspendisse.
Amet commodo nulla facilisi nullam vehicula ipsum a.
Nibh nisl condimentum id venenatis a.
Diam vel quam elementum pulvinar etiam non quam lacus suspendisse.
= Running OSI Visualizer using Docker

Using Docker enables running OSI Visualizer on non-Linux plattforms.

**Prerequisites**

You have built OSI Visualizer Docker image.

**Steps**

. Open a command line interpreter.
. Change to the OSI Visualizer repository.
. Run the following command to start OSI Visualizer.
+
[source]
----
sh run-nvidia-docker.sh
----
+
. Place Protobuffer files in `osi_pb/` to make them available to OSI Visualizer.
This directory is mounted as a volume to the Docker image.

**Results**

OSI Visualizer is running.
The Protobuffer files are available to OSI Visualizer

**Troubleshooting**

Currently OSI Visualizer is set up and tested to work with the playback option.
For using other functionalities, for example socket communication, you may need to change the Docker file.
After running the image, the following error may appear:

[source]
----
Creating network “osi-visualizer_default” with the default driver
No protocol specified QXcbConnection: Could not connect to display:1
----

If this error message appears, add the following command to the end of the Docker file and run the image again:

[source]
----
sudo xhost +
----

You do not have to build the Docker image again.
28 changes: 19 additions & 9 deletions doc/use/saving_messages.adoc
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
= Saving OSI messages

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Et malesuada fames ac turpis egestas.
Mauris pharetra et ultrices neque ornare aenean euismod elementum nisi.
Nulla facilisi morbi tempus iaculis urna id. Justo eget magna fermentum iaculis.
Sed augue lacus viverra vitae congue eu.
Velit ut tortor pretium viverra suspendisse.
Amet commodo nulla facilisi nullam vehicula ipsum a.
Nibh nisl condimentum id venenatis a.
Diam vel quam elementum pulvinar etiam non quam lacus suspendisse.
OSI Visualizer can log an OSI message stream and save it to a file.
By default, OSI Visualizer saves up to 1.000.000 messages.
can change this threshold via `osiMsgSaveThreshold_` in `appconfig.cpp`.

[[image-save_osi_message]]
image::save_osi_message.png[title = "Save OSI message button."]

**Prerequisites**

* OSI Visualizer is running.
* OSI Visualizer is playing messages.

**Steps**

Click **Save OSI Message**.

**Result**

The channel is set up for playing back OSI trace files.
29 changes: 20 additions & 9 deletions doc/use/showing_field_of_view.adoc
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
= Showing the field of view of a sensor

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Et malesuada fames ac turpis egestas.
Mauris pharetra et ultrices neque ornare aenean euismod elementum nisi.
Nulla facilisi morbi tempus iaculis urna id. Justo eget magna fermentum iaculis.
Sed augue lacus viverra vitae congue eu.
Velit ut tortor pretium viverra suspendisse.
Amet commodo nulla facilisi nullam vehicula ipsum a.
Nibh nisl condimentum id venenatis a.
Diam vel quam elementum pulvinar etiam non quam lacus suspendisse.
OSI Visualizer can visualize the field of view of sensors.

[[image-field_of_view]]
image::field_of_view.png[title = "Save OSI message button."]

**Prerequisites**

* OSI Visualizer is running.

**Steps**

. In the configuration panel, select **Show Field of View**.
. In the **MinR** field, enter the minimum range in meter.
. In the **MaxR** field, enter the maximum range in meter.
. In the **AP** field, enter the azimuth positive angle in degree.
. In the **AN** field, enter the azimuth negative angle in degree.

**Result**

The field of view is displayed on the grid.