maliput
ObjFeatures Struct Reference

Detailed Description

Multitude of parameters for generating an OBJ model of a road surface, with sensible defaults.

#include <include/maliput/utility/generate_obj.h>

Public Attributes

double max_grid_unit {1.0}
 Maximum distance between rendered vertices, in either s- or r-dimension, along a lane's surface. More...
 
double min_grid_resolution {5.0}
 Minimum number of vertices, in either s- or r-dimension, along a lane's surface. More...
 
bool draw_stripes {true}
 Draw stripes along lane_bounds() of each lane? More...
 
bool draw_arrows {true}
 Draw arrows at start/finish of each lane? More...
 
bool draw_lane_haze {true}
 Draw highlighting swath with lane_bounds() of each lane? More...
 
bool draw_branch_points {true}
 Draw branching at BranchPoints? More...
 
bool draw_elevation_bounds {true}
 Draw highlighting of elevation_bounds of each lane? More...
 
bool off_grid_mesh_generation {false}
 Reduce the amount of vertices from the road by creating quads big enough which don't violate some tolerance. More...
 
double simplify_mesh_threshold {0.}
 Tolerance for mesh simplification, or the distance from a vertex to an edge line or to a face plane at which said vertex is considered redundant (i.e. More...
 
double stripe_width {0.25}
 Absolute width of stripes. More...
 
double stripe_elevation {0.05}
 Absolute elevation (h) of stripes above road surface. More...
 
double arrow_elevation {0.05}
 Absolute elevation (h) of arrows above road surface. More...
 
double lane_haze_elevation {0.02}
 Absolute elevation (h) of lane-haze above road surface. More...
 
double branch_point_elevation {0.5}
 Absolute elevation (h) of branch-points above road surface. More...
 
double branch_point_height {0.5}
 Height of rendered branch-point arrows. More...
 
api::InertialPosition origin {0., 0., 0.}
 Origin of OBJ coordinates relative to Inertial-frame. More...
 
std::vector< api::SegmentIdhighlighted_segments
 ID's of specific segments to be highlighted. More...
 

Member Data Documentation

◆ arrow_elevation

double arrow_elevation {0.05}

Absolute elevation (h) of arrows above road surface.

◆ branch_point_elevation

double branch_point_elevation {0.5}

Absolute elevation (h) of branch-points above road surface.

◆ branch_point_height

double branch_point_height {0.5}

Height of rendered branch-point arrows.

◆ draw_arrows

bool draw_arrows {true}

Draw arrows at start/finish of each lane?

◆ draw_branch_points

bool draw_branch_points {true}

Draw branching at BranchPoints?

◆ draw_elevation_bounds

bool draw_elevation_bounds {true}

Draw highlighting of elevation_bounds of each lane?

◆ draw_lane_haze

bool draw_lane_haze {true}

Draw highlighting swath with lane_bounds() of each lane?

◆ draw_stripes

bool draw_stripes {true}

Draw stripes along lane_bounds() of each lane?

◆ highlighted_segments

std::vector<api::SegmentId> highlighted_segments

ID's of specific segments to be highlighted.

(If non-empty, then the Segments not specified on this list will be rendered as grayed-out.)

◆ lane_haze_elevation

double lane_haze_elevation {0.02}

Absolute elevation (h) of lane-haze above road surface.

◆ max_grid_unit

double max_grid_unit {1.0}

Maximum distance between rendered vertices, in either s- or r-dimension, along a lane's surface.

◆ min_grid_resolution

double min_grid_resolution {5.0}

Minimum number of vertices, in either s- or r-dimension, along a lane's surface.

◆ off_grid_mesh_generation

bool off_grid_mesh_generation {false}

Reduce the amount of vertices from the road by creating quads big enough which don't violate some tolerance.

This could affect the accuracy of curved roads.

◆ origin

api::InertialPosition origin {0., 0., 0.}

Origin of OBJ coordinates relative to Inertial-frame.

◆ simplify_mesh_threshold

double simplify_mesh_threshold {0.}

Tolerance for mesh simplification, or the distance from a vertex to an edge line or to a face plane at which said vertex is considered redundant (i.e.

it is not necessary to further define those geometrical entities), in meters. If equal to 0, no mesh simplification will take place. If equal to the road linear tolerance, mesh simplification will be constrained enough so as to keep mesh geometrical accuracy. If greater than the road linear tolerance, mesh size reductions will come at the expense of geometrical accuracy.

◆ stripe_elevation

double stripe_elevation {0.05}

Absolute elevation (h) of stripes above road surface.

◆ stripe_width

double stripe_width {0.25}

Absolute width of stripes.


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