Drake
yaml_to_obj.cc File Reference

Take a yaml file as input, build the resulting multilane road geometry, and render the road surface to a WaveFront OBJ output file. More...

#include <string>
#include <gflags/gflags.h>
#include "yaml-cpp/yaml.h"
#include "drake/automotive/maliput/multilane/builder.h"
#include "drake/automotive/maliput/multilane/loader.h"
#include "drake/automotive/maliput/utility/generate_obj.h"
#include "drake/common/text_logging.h"
#include "drake/common/text_logging_gflags.h"
Include dependency graph for yaml_to_obj.cc:

Namespaces

 drake
 
 drake::maliput
 
 drake::maliput::utility
 

Enumerations

enum  MaliputImplementation { kMultilane, kUnknown }
 

Functions

 DEFINE_string (yaml_file, "", "yaml input file defining a multilane road geometry")
 
 DEFINE_string (obj_dir, ".", "Directory to contain rendered road surface")
 
 DEFINE_string (obj_file, "", "Basename for output Wavefront OBJ and MTL files")
 
 DEFINE_double (max_grid_unit, drake::maliput::utility::ObjFeatures().max_grid_unit, "Maximum size of a grid unit in the rendered mesh covering the " "road surface")
 
 DEFINE_double (min_grid_resolution, drake::maliput::utility::ObjFeatures().min_grid_resolution, "Minimum number of grid-units in either lateral or longitudinal " "direction in the rendered mesh covering the road surface")
 
 DEFINE_bool (draw_elevation_bounds, drake::maliput::utility::ObjFeatures().draw_elevation_bounds, "Whether to draw the elevation bounds")
 
int main (int argc, char *argv[])
 

Detailed Description

Take a yaml file as input, build the resulting multilane road geometry, and render the road surface to a WaveFront OBJ output file.

Enumeration Type Documentation

◆ MaliputImplementation

enum MaliputImplementation
strong

Function Documentation

◆ DEFINE_bool()

DEFINE_bool ( draw_elevation_bounds  ,
drake::maliput::utility::ObjFeatures().  draw_elevation_bounds,
"Whether to draw the elevation bounds"   
)

◆ DEFINE_double() [1/2]

DEFINE_double ( max_grid_unit  ,
drake::maliput::utility::ObjFeatures().  max_grid_unit,
"Maximum size of a grid unit in the rendered mesh covering the " "road surface"   
)

◆ DEFINE_double() [2/2]

DEFINE_double ( min_grid_resolution  ,
drake::maliput::utility::ObjFeatures().  min_grid_resolution,
"Minimum number of grid-units in either lateral or longitudinal " "direction in the rendered mesh covering the road surface"   
)

◆ DEFINE_string() [1/3]

DEFINE_string ( yaml_file  ,
""  ,
"yaml input file defining a multilane road geometry"   
)

◆ DEFINE_string() [2/3]

DEFINE_string ( obj_dir  ,
"."  ,
"Directory to contain rendered road surface"   
)

◆ DEFINE_string() [3/3]

DEFINE_string ( obj_file  ,
""  ,
"Basename for output Wavefront OBJ and MTL files"   
)

◆ main()

int main ( int  argc,
char *  argv[] 
)