maliput
|
#include <string>
#include <vector>
#include "maliput/api/road_geometry.h"
#include "maliput/api/road_network.h"
#include "maliput/api/segment.h"
#include "maliput/utility/mesh.h"
Classes | |
struct | ObjFeatures |
Multitude of parameters for generating an OBJ model of a road surface, with sensible defaults. More... | |
struct | Material |
Material information for built meshes. More... | |
struct | RoadGeometryMesh |
Namespaces | |
maliput | |
Code in this file is inspired by: https://github.com/RobotLocomotion/drake/blob/master/common/text_logging.h. | |
maliput::utility | |
Enumerations | |
enum | MaterialType { Asphalt, Lane, Marker, HBounds, BranchPointGlow, GrayedAsphalt, GrayedLane, GrayedMarker, Sidewalk } |
Functions | |
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... | |