Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Each visualization message thus consists of seven data fields which need to be filled accordingly to draw the desired information in the LCC:

  • ID

...

  • visualization type

...

  • time_to_live

...

  • points

...

  • size
  • string_message
  • string_message_anchor
  • color.

ID

Each visualization command is identified by a unique ID. Choose different IDs for commands that should be displayed at the same time, or use the same ID to override an older visualization message.

...

Visualization Type

Currently, three four command types are supported: You can draw a line, a polygon or a string.

  • Line
  • Polygon
  • Filled circle
  • String

Lines and polygons are defined by the points which are set in the structure data as well. In both cases, lines are drawn between subsequent points in the array. The first and the last point are also connected by a line if you want to draw a polygon.

For stringsIf you choose a string, you need to specifiy specify a single point where the string is drawn, and you should set the string message that should be displayedas anchor. The drawn string will be attached to this anchor as specified the field _String Message Anchor_. A string message will only be displayed, if you set the field _String Message_.

A filled circle requires a single point which will be its center.

Time to Live

Each visualization command is removed automatically after a given time. Here, you can set the time to live in nanoseconds.

...

Points is a custom IDL data type which is a structPoint2D{ doublex; doubley}. Points are set according to the coordinate system.

Size

Here you can define the line width or the size of the string messagePolygons and lines interpret the size as line width, string messages as font size, and circles as radius.

String Message

Just set a string for this field (as RTI uses its own string format, be aware that setting this value with a std::string data type might lead to an error message, but give it a try before you use RTI's own implementation).

String Message Anchor

Defines where a string message will be aligned, relative to the anchor point (the first entry of _points_). You only have to specify this field manually, if it should be different from the __default__: `BottomLeft` corner.

```
TopCenter
TopLeft +--------+--------+ TopRight
| |
CenterLeft + String Content + CenterRight
| |
BottomLeft (default) +--------+--------+ BottomRight
BottomCenter

```
`Center` is also a possible value.

Color

Lines, polygons and strings can be given any color within the RGB spectrum.

...