maliput_sparse
|
Builder class for maliput::api::RoadGeometry.
#include <include/maliput_sparse/builder/builder.h>
Public Member Functions | |
RoadGeometryBuilder ()=default | |
Construct a new RoadGeometry Builder object. More... | |
RoadGeometryBuilder & | Id (const maliput::api::RoadGeometryId &road_geometry_id) |
Sets the maliput::api::RoadGeometryId of the maliput::api::RoadGeometry. More... | |
RoadGeometryBuilder & | LinearTolerance (double linear_tolerance) |
Sets the linear tolerance of the maliput::api::RoadGeometry. More... | |
RoadGeometryBuilder & | AngularTolerance (double angular_tolerance) |
Sets the angular tolerance of the maliput::api::RoadGeometry. More... | |
RoadGeometryBuilder & | ScaleLength (double scale_length) |
Sets the scale length of the maliput::api::RoadGeometry. More... | |
RoadGeometryBuilder & | InertialToBackendFrameTranslation (const maliput::math::Vector3 &translation) |
Sets the initial to backend frame translation vector of the maliput::api::RoadGeometry. More... | |
JunctionBuilder | StartJunction () |
Starts the Junction builder for this RoadGeometry. More... | |
BranchPointBuilder | StartBranchPoints () |
Starts the BranchPoint builder for this RoadGeometry. More... | |
std::unique_ptr< maliput::api::RoadGeometry > | Build () |
Builds a maliput::api::RoadGeometry. More... | |
void | SetJunction (maliput::common::Passkey< JunctionBuilder >, std::unique_ptr< maliput::geometry_base::Junction > junction) |
Sets a maliput::geometry_base::Junction into this builder to fill in the RoadGeometry. More... | |
void | SetBranchPoints (maliput::common::Passkey< BranchPointBuilder >, std::vector< std::unique_ptr< maliput::geometry_base::BranchPoint >> &&branch_points) |
std::unordered_map< maliput::api::LaneId, const maliput::geometry_base::Lane * > | GetLanes (maliput::common::Passkey< BranchPointBuilder >) const |
double | linear_tolerance (maliput::common::Passkey< LaneGeometryBuilder >) const |
Getter for LaneGeometry of linear_tolerance. More... | |
double | scale_length (maliput::common::Passkey< LaneGeometryBuilder >) const |
Getter for LaneGeometry of scale_length. More... | |
|
default |
Construct a new RoadGeometry Builder object.
RoadGeometryBuilder & AngularTolerance | ( | double | angular_tolerance | ) |
Sets the angular tolerance of the maliput::api::RoadGeometry.
angular_tolerance | The angular tolerance of the maliput::api::RoadGeometry. It must be positive. |
std::unique_ptr< maliput::api::RoadGeometry > Build | ( | ) |
Builds a maliput::api::RoadGeometry.
The underlying type of the RoadGeometry is maliput_sparse::RoadGeometry which is derived from maliput::geometry_base::RoadGeometry.
maliput::common::assertion_error | When there is no Junction to add to the RoadGeometry. |
maliput::common::assertion_error | When there is no BranchPoint to add to the RoadGeometry. |
std::unordered_map< maliput::api::LaneId, const maliput::geometry_base::Lane * > GetLanes | ( | maliput::common::Passkey< BranchPointBuilder > | ) | const |
RoadGeometryBuilder & Id | ( | const maliput::api::RoadGeometryId & | road_geometry_id | ) |
Sets the maliput::api::RoadGeometryId of the maliput::api::RoadGeometry.
road_geometry_id | The maliput::api::RoadGeometryId. |
RoadGeometryBuilder & InertialToBackendFrameTranslation | ( | const maliput::math::Vector3 & | translation | ) |
Sets the initial to backend frame translation vector of the maliput::api::RoadGeometry.
translation | The initial to backend frame translation vector of the maliput::api::RoadGeometry. |
double linear_tolerance | ( | maliput::common::Passkey< LaneGeometryBuilder > | ) | const |
Getter for LaneGeometry of linear_tolerance.
RoadGeometryBuilder & LinearTolerance | ( | double | linear_tolerance | ) |
Sets the linear tolerance of the maliput::api::RoadGeometry.
linear_tolerance | The linear tolerance of the maliput::api::RoadGeometry. It must be positive. |
double scale_length | ( | maliput::common::Passkey< LaneGeometryBuilder > | ) | const |
Getter for LaneGeometry of scale_length.
RoadGeometryBuilder & ScaleLength | ( | double | scale_length | ) |
Sets the scale length of the maliput::api::RoadGeometry.
scale_length | The scale length of the maliput::api::RoadGeometry. It must be positive. |
void SetBranchPoints | ( | maliput::common::Passkey< BranchPointBuilder > | , |
std::vector< std::unique_ptr< maliput::geometry_base::BranchPoint >> && | branch_points | ||
) |
void SetJunction | ( | maliput::common::Passkey< JunctionBuilder > | , |
std::unique_ptr< maliput::geometry_base::Junction > | junction | ||
) |
Sets a maliput::geometry_base::Junction into this builder to fill in the RoadGeometry.
This method is only intended to be called by JunctionBuilder instances.
junction | A junction to be stored into the RoadGeometry. It must not be nullptr. |
maliput::common::assertion_error | When junction is nullptr. |
BranchPointBuilder StartBranchPoints | ( | ) |
Starts the BranchPoint builder for this RoadGeometry.
JunctionBuilder StartJunction | ( | ) |
Starts the Junction builder for this RoadGeometry.