maliput_multilane
|
Defines a builder interface for multilane.
It is used for testing purposes only, and derived code should instantiate Builder objects.
#include <include/maliput_multilane/builder.h>
Public Member Functions | |
BuilderBase ()=default | |
virtual | ~BuilderBase ()=default |
virtual double | get_lane_width () const =0 |
Gets lane_width value. More... | |
virtual const api::HBounds & | get_elevation_bounds () const =0 |
Gets elevation_bounds value. More... | |
virtual double | get_linear_tolerance () const =0 |
Gets linear_tolerance value. More... | |
virtual double | get_angular_tolerance () const =0 |
Gets angular_tolerance value. More... | |
virtual double | get_scale_length () const =0 |
Gets scale_length value. More... | |
virtual ComputationPolicy | get_computation_policy () const =0 |
Gets computation_policy value. More... | |
virtual const Connection * | Connect (const std::string &id, const LaneLayout &lane_layout, const StartReference::Spec &start_spec, const LineOffset &line_offset, const EndReference::Spec &end_spec)=0 |
Connects start_spec 's Endpoint to an end-point linearly displaced from start_spec 's Endpoint. More... | |
virtual const Connection * | Connect (const std::string &id, const LaneLayout &lane_layout, const StartReference::Spec &start_spec, const ArcOffset &arc_offset, const EndReference::Spec &end_spec)=0 |
Connects start_spec 's Endpoint to an end-point displaced from start_spec 's Endpoint via an arc. More... | |
virtual const Connection * | Connect (const std::string &id, const LaneLayout &lane_layout, const StartLane::Spec &start_spec, const LineOffset &line_offset, const EndLane::Spec &end_spec)=0 |
Creates a Connection whose planar reference curve is a line. More... | |
virtual const Connection * | Connect (const std::string &id, const LaneLayout &lane_layout, const StartLane::Spec &start_spec, const ArcOffset &arc_offset, const EndLane::Spec &end_spec)=0 |
Creates a Connection whose planar reference curve is an arc. More... | |
virtual void | SetDefaultBranch (const Connection *in, int in_lane_index, api::LaneEnd::Which in_end, const Connection *out, int out_lane_index, api::LaneEnd::Which out_end)=0 |
Sets the default branch for one end of a connection. More... | |
virtual Group * | MakeGroup (const std::string &id)=0 |
Creates a new empty connection group with ID string id . More... | |
virtual Group * | MakeGroup (const std::string &id, const std::vector< const Connection * > &connections)=0 |
Creates a new connection group with ID id , populated with the given connections . More... | |
virtual std::unique_ptr< const api::RoadGeometry > | Build (const api::RoadGeometryId &id) const =0 |
Produces a RoadGeometry, with the ID id . More... | |
|
default |
|
virtualdefault |
|
pure virtual |
Produces a RoadGeometry, with the ID id
.
maliput::common::assertion_error | if unable to produce a valid (i.e. G1) RoadGeometry. |
Implemented in Builder.
|
pure virtual |
Creates a Connection whose planar reference curve is an arc.
start_spec.lane_id()
lane starts at start_spec.endpoint()
and end_spec.lane_id()
lane ends with end_spec.endpoint_z()
which specifies the elevation characteristics.
arc_offset
specifies the shape of the arc.
lane_layout
defines the number of lanes, their width, extra shoulder asphalt extensions and placing with respect to connection's reference curve.
Implemented in Builder.
|
pure virtual |
Creates a Connection whose planar reference curve is a line.
start_spec.lane_id()
lane starts at start_spec.endpoint()
and end_spec.lane_id()
lane ends with end_spec.endpoint_z()
which specifies the elevation characteristics.
line_offset
specifies the length of displacement (in the direction of the heading of start_spec
's Endpoint).
lane_layout
defines the number of lanes, their width, extra shoulder asphalt extensions and placing with respect to connection's reference curve.
Implemented in Builder.
|
pure virtual |
Connects start_spec
's Endpoint to an end-point displaced from start_spec
's Endpoint via an arc.
arc_offset
specifies the shape of the arc. end_spec
specifies the elevation characteristics at the end-point.
lane_layout
defines the number of lanes, their width, extra shoulder asphalt extensions and placing with respect to connection's reference curve.
Implemented in Builder.
|
pure virtual |
Connects start_spec
's Endpoint to an end-point linearly displaced from start_spec
's Endpoint.
line_offset
specifies the length of displacement (in the direction of the heading of start_spec
's Endpoint). end_spec
specifies the elevation characteristics at the end-point.
lane_layout
defines the number of lanes, their width, extra shoulder asphalt extensions and placing with respect to connection's reference curve.
Implemented in Builder.
|
pure virtual |
Gets angular_tolerance
value.
Implemented in Builder.
|
pure virtual |
Gets computation_policy
value.
Implemented in Builder.
|
pure virtual |
Gets elevation_bounds
value.
Implemented in Builder.
|
pure virtual |
Gets lane_width
value.
Implemented in Builder.
|
pure virtual |
Gets linear_tolerance
value.
Implemented in Builder.
|
pure virtual |
Gets scale_length
value.
Implemented in Builder.
|
pure virtual |
Creates a new empty connection group with ID string id
.
Implemented in Builder.
|
pure virtual |
Creates a new connection group with ID id
, populated with the given connections
.
Implemented in Builder.
|
pure virtual |
Sets the default branch for one end of a connection.
The default branch for the in_end
of connection in
at Lane in_lane_index
will set to be out_end
of connection out
at Lane out_lane_index
. The specified connections must actually be joined at the specified ends (i.e., the Endpoint's for those ends must be coincident and (anti)parallel within the tolerances for the Builder).
Implemented in Builder.