Bench-MR
A Motion Planning Benchmark for Wheeled Mobile Robots
Public Member Functions | Static Public Member Functions | List of all members
QtVisualizer Class Reference

#include <QtVisualizer.h>

Public Member Functions

virtual ~QtVisualizer ()
 

Static Public Member Functions

static void initialize ()
 
static int exec ()
 
static void show ()
 
static void visualize (Environment *environment, int run, bool renderDistances=false)
 
static void drawNode (const ompl::base::State *state, const QColor &color=Qt::red, double radius=0.3, bool drawArrow=true)
 
static void drawNode (const Point &point, const QColor &color=Qt::red, double radius=0.3)
 
static void drawNode (double x, double y, const QColor &color=Qt::red, double radius=0.3)
 
static void drawNode (double x, double y, double theta, const QColor &color, double radius, bool drawArrow)
 
static void drawTrajectory (const ompl::geometric::PathGeometric &path, const QColor &color=Qt::white, float penWidth=1.f, Qt::PenStyle penStyle=Qt::PenStyle::SolidLine)
 
static void drawTrajectory (const ompl::base::State *a, const ompl::base::State *b, const QColor &color=Qt::white, float penWidth=1.f, Qt::PenStyle penStyle=Qt::PenStyle::SolidLine)
 
static void drawPath (const ompl::geometric::PathGeometric &path, const QColor &color=Qt::white, float penWidth=1.f, Qt::PenStyle penStyle=Qt::PenStyle::SolidLine)
 
static void drawPath (const std::vector< Point > &nodes, const QColor &color=Qt::white, float penWidth=1.f, Qt::PenStyle penStyle=Qt::PenStyle::SolidLine)
 
static void drawPath (const std::vector< Point > &nodes, QPen pen)
 
static void drawNodes (ompl::geometric::PathGeometric path, bool drawArrows=false, const QColor &color=Qt::red, double radius=0.3)
 
static void drawNodes (const std::vector< Point > &nodes, const QColor &color=Qt::red, double radius=0.3)
 
static void drawLabel (const std::string &text, double x, double y, const QColor &color=Qt::black, float size=1.f)
 
static void addLegendEntry (LegendEntry entry)
 
static void drawLegend ()
 
static void showStartGoal (bool show=true)
 
static void savePng (const QString &fileName)
 
static void saveSvg (const QString &fileName)
 
static void saveScene ()
 
static void restoreScene ()
 

Constructor & Destructor Documentation

◆ ~QtVisualizer()

QtVisualizer::~QtVisualizer ( )
virtual

Member Function Documentation

◆ addLegendEntry()

void QtVisualizer::addLegendEntry ( LegendEntry  entry)
static

◆ drawLabel()

void QtVisualizer::drawLabel ( const std::string &  text,
double  x,
double  y,
const QColor &  color = Qt::black,
float  size = 1.f 
)
static

◆ drawLegend()

void QtVisualizer::drawLegend ( )
static

◆ drawNode() [1/4]

void QtVisualizer::drawNode ( const ompl::base::State state,
const QColor &  color = Qt::red,
double  radius = 0.3,
bool  drawArrow = true 
)
static

◆ drawNode() [2/4]

void QtVisualizer::drawNode ( const Point point,
const QColor &  color = Qt::red,
double  radius = 0.3 
)
static

◆ drawNode() [3/4]

void QtVisualizer::drawNode ( double  x,
double  y,
const QColor &  color = Qt::red,
double  radius = 0.3 
)
static

◆ drawNode() [4/4]

void QtVisualizer::drawNode ( double  x,
double  y,
double  theta,
const QColor &  color,
double  radius,
bool  drawArrow 
)
static

◆ drawNodes() [1/2]

void QtVisualizer::drawNodes ( const std::vector< Point > &  nodes,
const QColor &  color = Qt::red,
double  radius = 0.3 
)
static

◆ drawNodes() [2/2]

void QtVisualizer::drawNodes ( ompl::geometric::PathGeometric  path,
bool  drawArrows = false,
const QColor &  color = Qt::red,
double  radius = 0.3 
)
static

◆ drawPath() [1/3]

void QtVisualizer::drawPath ( const ompl::geometric::PathGeometric &  path,
const QColor &  color = Qt::white,
float  penWidth = 1.f,
Qt::PenStyle  penStyle = Qt::PenStyle::SolidLine 
)
static

◆ drawPath() [2/3]

void QtVisualizer::drawPath ( const std::vector< Point > &  nodes,
const QColor &  color = Qt::white,
float  penWidth = 1.f,
Qt::PenStyle  penStyle = Qt::PenStyle::SolidLine 
)
static

◆ drawPath() [3/3]

void QtVisualizer::drawPath ( const std::vector< Point > &  nodes,
QPen  pen 
)
static

◆ drawTrajectory() [1/2]

void QtVisualizer::drawTrajectory ( const ompl::base::State a,
const ompl::base::State b,
const QColor &  color = Qt::white,
float  penWidth = 1.f,
Qt::PenStyle  penStyle = Qt::PenStyle::SolidLine 
)
static

◆ drawTrajectory() [2/2]

void QtVisualizer::drawTrajectory ( const ompl::geometric::PathGeometric &  path,
const QColor &  color = Qt::white,
float  penWidth = 1.f,
Qt::PenStyle  penStyle = Qt::PenStyle::SolidLine 
)
static

◆ exec()

int QtVisualizer::exec ( )
static

◆ initialize()

void QtVisualizer::initialize ( )
static

◆ restoreScene()

void QtVisualizer::restoreScene ( )
static

◆ savePng()

void QtVisualizer::savePng ( const QString &  fileName)
static

◆ saveScene()

void QtVisualizer::saveScene ( )
static

◆ saveSvg()

void QtVisualizer::saveSvg ( const QString &  fileName)
static

◆ show()

static void QtVisualizer::show ( )
inlinestatic

◆ showStartGoal()

void QtVisualizer::showStartGoal ( bool  show = true)
static

◆ visualize()

void QtVisualizer::visualize ( Environment environment,
int  run,
bool  renderDistances = false 
)
static

The documentation for this class was generated from the following files: