Drake
loader.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <memory>
4 #include <string>
5 
8 
9 namespace drake {
10 namespace maliput {
11 namespace rndf {
12 
15  RoadCharacteristics() = default;
16 
25  explicit RoadCharacteristics(double default_width_in,
26  double linear_tolerance_in,
27  double angular_tolerance_in)
28  : default_width(default_width_in),
29  linear_tolerance(linear_tolerance_in),
30  angular_tolerance(angular_tolerance_in) {}
31 
33  double default_width{4.};
35  double linear_tolerance{0.01};
37  double angular_tolerance{0.01 * M_PI};
38 };
39 
57 std::unique_ptr<const api::RoadGeometry> LoadFile(
58  const std::string& filepath,
59  const RoadCharacteristics& road_characteristics);
60 
66 std::unique_ptr<const api::RoadGeometry> LoadFile(
67  const std::string& filepath);
68 
69 } // namespace rndf
70 } // namespace maliput
71 } // namespace drake
RoadCharacteristics(double default_width_in, double linear_tolerance_in, double angular_tolerance_in)
Constructor for custom geometry characteristics.
Definition: loader.h:25
Definition: automotive_demo.cc:88
Definition: branch_point.cc:7
Holds common api::RoadGeometry characteristics needed to construct one.
Definition: loader.h:14
double default_width
Default width for RNDF Lanes, in meters.
Definition: loader.h:33
double angular_tolerance
Angular tolerance for RNDF RoadGeometry, in radians.
Definition: loader.h:37
std::unique_ptr< const api::RoadGeometry > LoadFile(const std::string &filepath)
Loads a given RNDF at filepath and builds an equivalent api::RoadGeometry.using default RoadCharacter...
Definition: loader.cc:225
Provides careful macros to selectively enable or disable the special member functions for copy-constr...
double linear_tolerance
Linear tolerance for RNDF RoadGeometry, in radians.
Definition: loader.h:35