You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Visualization messages can be sent to the LCC to draw basic shapes and text in the monitoring view, where the vehicles are shown as well. An example use case for this would be to draw the desired path that a vehicle is supposed to take on command, to check if it actually follows this path. The messages can also be used to show additional information to the running program or simply to debug the sent trajectory by checking the created path visually.

Data structure

The visualization IDL file looks like this:

#include "Color.idl"
#include "Point2D.idl"

#ifndef VISUALIZATION_IDL
#define VISUALIZATION_IDL

enum VisualizationType 
{
    LineStrips=0,
    Polygon,
    StringMessage
};

struct Visualization 
{
    //Id to be able to delete the viz later on
    string id; //@key

    VisualizationType type;
    unsigned long long time_to_live;

    sequence<Point2D> points;
    double size; //Line width in pixels or text size in pt
    string string_message;

    Color color;
};
#endif

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

Color


  • No labels