maliput
generate_obj.cc File Reference
#include "maliput/utility/generate_obj.h"
#include <algorithm>
#include <cmath>
#include <cstddef>
#include <fstream>
#include <functional>
#include <initializer_list>
#include <map>
#include <tuple>
#include <vector>
#include "maliput/api/branch_point.h"
#include "maliput/api/junction.h"
#include "maliput/api/lane.h"
#include "maliput/api/road_geometry.h"
#include "maliput/api/segment.h"
#include "maliput/common/logger.h"
#include "maliput/common/maliput_abort.h"
#include "maliput/common/profiler.h"
#include "maliput/math/vector.h"
#include "maliput/utility/mesh.h"
#include "maliput/utility/mesh_simplification.h"
#include "maliput/utility/string_format.h"
Include dependency graph for generate_obj.cc:

Namespaces

 maliput
 Code in this file is inspired by: https://github.com/RobotLocomotion/drake/blob/master/common/text_logging.h.
 
 maliput::utility
 

Functions

Material GetMaterialFromMesh (const MaterialType mesh_material)
 
std::pair< mesh::GeoMesh, Material > BuildMesh (const api::RoadGeometry *rg, const ObjFeatures &features, const api::LaneId &lane_id, const MaterialType &mesh_material)
 Builds a map of meshes based on features properties and the RoadGeometry. More...
 
std::pair< mesh::GeoMesh, Material > BuildMesh (const api::RoadGeometry *rg, const ObjFeatures &features, const api::BranchPointId &branch_point_id, const MaterialType &mesh_material)
 Builds a map of meshes based on features properties and the RoadGeometry. More...
 
std::pair< mesh::GeoMesh, Material > BuildMesh (const api::RoadGeometry *rg, const ObjFeatures &features, const api::SegmentId &segment_id, const MaterialType &mesh_material)
 Builds a map of meshes based on features properties and the RoadGeometry. More...
 
RoadGeometryMesh BuildRoadGeometryMesh (const api::RoadGeometry *rg, const ObjFeatures &features)
 Builds a complete RoadGeometryMesh based on features properties and the RoadGeometry. More...
 
std::map< std::string, std::pair< mesh::GeoMesh, Material > > BuildMeshes (const api::RoadGeometry *road_geometry, const ObjFeatures &features)
 Builds a map of meshes based on features properties and the api::RoadGeometry. More...
 
std::map< std::string, std::pair< mesh::GeoMesh, Material > > BuildMeshes (const api::RoadNetwork *road_network, const ObjFeatures &features)
 Builds a map of meshes based on features properties and the api::RoadNetwork. More...
 
void GenerateObjFile (const api::RoadGeometry *road_geometry, const std::string &dirpath, const std::string &fileroot, const ObjFeatures &features)
 Generates a Wavefront OBJ model of the road surface of an api::RoadGeometry. More...
 
void GenerateObjFile (const api::RoadNetwork *road_network, const std::string &dirpath, const std::string &fileroot, const ObjFeatures &features)
 Generates a Wavefront OBJ model of the road surface of an api::RoadNetwork. More...
 
const Material & GetMaterialByName (const std::string &material_name)
 Gets a Material based on material_name key. More...