selfdriving
Public Member Functions | Public Attributes | List of all members
mpp::RenderOptions Struct Reference

#include <mpp/data/RenderOptions.h>

Public Member Functions

 RenderOptions ()=default
 
 ~RenderOptions ()=default
 

Public Attributes

std::optional< mrpt::graphs::TNodeID > highlight_path_to_node_id
 If set, highlight the path from root towards this node (e.g. the target) More...
 
bool highlight_last_added_edge = false
 
size_t draw_shape_decimation = 1
 Draw one out of N vehicle shapes along the highlighted. More...
 
std::optional< mrpt::math::TPose2D > x_rand_pose
 
std::optional< mrpt::math::TPose2D > new_state
 
std::optional< mrpt::math::TPose2D > x_nearest_pose
 
std::optional< const mrpt::maps::CPointsMap * > local_obs_from_nearest_pose
 
std::optional< double > xyzcorners_scale
 A scale factor to all XYZ corners (default=auto from vehicle shape) More...
 
std::optional< double > ground_xy_grid_frequency
 0:disable, not assigned: auto More...
 
double phi2z_scale = 1.0
 If !=0, represent different headings as different heights: More...
 
mrpt::img::TColor color_vehicle {0xff0000, 0xff}
 
mrpt::img::TColor color_obstacles {0x0000ff, 0x40}
 
mrpt::img::TColor color_local_obstacles {0x0000ff, 0xff}
 
mrpt::img::TColor color_start {0x000000, 0xff}
 
mrpt::img::TColor color_goal {0x000000, 0xff}
 
mrpt::img::TColor color_ground_xy_grid {0xffffff, 0xff}
 
mrpt::img::TColor color_normal_edge {0x222222, 0x40}
 
mrpt::img::TColor color_last_edge {0xffff00, 0xff}
 
mrpt::img::TColor color_optimal_edge {0x000000, 0xff}
 
float width_last_edge = 3.f
 0=hidden More...
 
float width_normal_edge = 1.f
 0=hidden More...
 
float width_optimal_edge = 4.f
 0=hidden More...
 
float point_size_obstacles = 5.f
 
float point_size_local_obstacles = 5.f
 
double vehicle_shape_z = 0.01
 
double vehicle_line_width = 2.0
 
bool draw_obstacles = true
 
bool draw_twist = true
 
double linVelScale = 0.25
 
double angVelScale = 0.25
 
double twistArrowsRadius = 0.01
 
bool showEdgeCosts = false
 
double edgeCostLabelSize = 0.025
 
std::string log_msg
 
mrpt::math::TPoint3D log_msg_position
 
double log_msg_scale = 0.2
 

Detailed Description

Options for render_tree()

Constructor & Destructor Documentation

◆ RenderOptions()

mpp::RenderOptions::RenderOptions ( )
default

◆ ~RenderOptions()

mpp::RenderOptions::~RenderOptions ( )
default

Member Data Documentation

◆ angVelScale

double mpp::RenderOptions::angVelScale = 0.25

◆ color_goal

mrpt::img::TColor mpp::RenderOptions::color_goal {0x000000, 0xff}

◆ color_ground_xy_grid

mrpt::img::TColor mpp::RenderOptions::color_ground_xy_grid {0xffffff, 0xff}

◆ color_last_edge

mrpt::img::TColor mpp::RenderOptions::color_last_edge {0xffff00, 0xff}

◆ color_local_obstacles

mrpt::img::TColor mpp::RenderOptions::color_local_obstacles {0x0000ff, 0xff}

◆ color_normal_edge

mrpt::img::TColor mpp::RenderOptions::color_normal_edge {0x222222, 0x40}

◆ color_obstacles

mrpt::img::TColor mpp::RenderOptions::color_obstacles {0x0000ff, 0x40}

◆ color_optimal_edge

mrpt::img::TColor mpp::RenderOptions::color_optimal_edge {0x000000, 0xff}

◆ color_start

mrpt::img::TColor mpp::RenderOptions::color_start {0x000000, 0xff}

◆ color_vehicle

mrpt::img::TColor mpp::RenderOptions::color_vehicle {0xff0000, 0xff}

◆ draw_obstacles

bool mpp::RenderOptions::draw_obstacles = true

◆ draw_shape_decimation

size_t mpp::RenderOptions::draw_shape_decimation = 1

Draw one out of N vehicle shapes along the highlighted.

◆ draw_twist

bool mpp::RenderOptions::draw_twist = true

◆ edgeCostLabelSize

double mpp::RenderOptions::edgeCostLabelSize = 0.025

◆ ground_xy_grid_frequency

std::optional<double> mpp::RenderOptions::ground_xy_grid_frequency

0:disable, not assigned: auto

◆ highlight_last_added_edge

bool mpp::RenderOptions::highlight_last_added_edge = false

◆ highlight_path_to_node_id

std::optional<mrpt::graphs::TNodeID> mpp::RenderOptions::highlight_path_to_node_id

If set, highlight the path from root towards this node (e.g. the target)

◆ linVelScale

double mpp::RenderOptions::linVelScale = 0.25

◆ local_obs_from_nearest_pose

std::optional<const mrpt::maps::CPointsMap*> mpp::RenderOptions::local_obs_from_nearest_pose

◆ log_msg

std::string mpp::RenderOptions::log_msg

◆ log_msg_position

mrpt::math::TPoint3D mpp::RenderOptions::log_msg_position

◆ log_msg_scale

double mpp::RenderOptions::log_msg_scale = 0.2

◆ new_state

std::optional<mrpt::math::TPose2D> mpp::RenderOptions::new_state

◆ phi2z_scale

double mpp::RenderOptions::phi2z_scale = 1.0

If !=0, represent different headings as different heights:

◆ point_size_local_obstacles

float mpp::RenderOptions::point_size_local_obstacles = 5.f

◆ point_size_obstacles

float mpp::RenderOptions::point_size_obstacles = 5.f

◆ showEdgeCosts

bool mpp::RenderOptions::showEdgeCosts = false

◆ twistArrowsRadius

double mpp::RenderOptions::twistArrowsRadius = 0.01

◆ vehicle_line_width

double mpp::RenderOptions::vehicle_line_width = 2.0

Robot line width for visualization - default 2.0

◆ vehicle_shape_z

double mpp::RenderOptions::vehicle_shape_z = 0.01

(Default=0.01) Height (Z coordinate) for the vehicle shapes. Helps making it in the "first plane"

◆ width_last_edge

float mpp::RenderOptions::width_last_edge = 3.f

0=hidden

◆ width_normal_edge

float mpp::RenderOptions::width_normal_edge = 1.f

0=hidden

◆ width_optimal_edge

float mpp::RenderOptions::width_optimal_edge = 4.f

0=hidden

◆ x_nearest_pose

std::optional<mrpt::math::TPose2D> mpp::RenderOptions::x_nearest_pose

◆ x_rand_pose

std::optional<mrpt::math::TPose2D> mpp::RenderOptions::x_rand_pose

◆ xyzcorners_scale

std::optional<double> mpp::RenderOptions::xyzcorners_scale

A scale factor to all XYZ corners (default=auto from vehicle shape)


The documentation for this struct was generated from the following file: