|
maliput
|
Classes | |
| class | MockBranchPoint |
| class | MockIdIndex |
| class | MockJunction |
| class | MockLane |
| class | MockLaneBoundary |
| class | MockLaneEndSet |
| class | MockRoadGeometry |
| class | MockSegment |
| struct | PhaseBuildFlags |
| Holds Phase build configurations. More... | |
| struct | RightOfWayBuildFlags |
| Holds RightOfWayRule build configurations. More... | |
| struct | RoadGeometryBuildFlags |
| Holds RoadGeometry build configuration. More... | |
| struct | RoadGeometryContiguityBuildFlags |
| Holds RoadGeometry contiguity build configuration. More... | |
| struct | RoadGeometryIdIndexBuildFlags |
| struct | RoadNetworkContiguityBuildFlags |
| Holds RoadNetwork contiguity build configuration. More... | |
| struct | RoadRulebookBuildFlags |
| Holds RoadRulebook build configurations. More... | |
| struct | RoadRulebookContiguityBuildFlags |
| Holds RoadRulebook contiguity build configuration. More... | |
| struct | RoadRulebookRelatedRulesBuildFlags |
| Holds RoadRulebook build configurations when RelatedRules consitency are under test. More... | |
| struct | TrafficLightBookBuildFlags |
| Holds TrafficLightBook build configurations. More... | |
| struct | TrafficLightBuildFlags |
| Holds TrafficLight build configurations. More... | |
| std::unique_ptr< rules::RuleRegistry > CreateBasicRuleRegistry | ( | ) |
Returns an arbitrary rules::RuleRegistry populated with discrete and range value rule types.
| std::unique_ptr< BulbGroup > CreateBulbGroup | ( | bool | add_missing_bulb_group | ) |
Returns an arbitrary rules::BulbGroup.
When add_missing_bulb_group is true, the rules::BulbGroup's ID is "MissingBulbGroupId". Otherwise, ID is "BulbGroupId". traffic_light_id is the rules::TrafficLight::Id to set to the rules::Bulb's rules::UniqueBulbId.
| DirectionUsageRule CreateDirectionUsageRule | ( | ) |
Returns a rules::DirectionUsageRule containing an arbitrary state.
| DirectionUsageRule::State CreateDirectionUsageRuleState | ( | ) |
Returns an arbitrary rules::DirectionUsageRule::State.
| DiscreteValueRule CreateDiscreteValueRule | ( | ) |
Returns a rules::DiscreteValueRule containing an arbitrary state.
| DiscreteValueRule maliput::api::test::CreateDiscreteValueRule | ( | bool | consistent_related_rule_groups | ) |
| DiscreteValueRule CreateDiscreteValueRuleForContiguityTest | ( | ) |
Returns a rules::DiscreteValueRule containing an arbitrary state.
| std::unique_ptr< rules::DiscreteValueRuleStateProvider > CreateDiscreteValueRuleStateProvider | ( | ) |
Returns an arbitrary rules::DiscreteValueRuleStateProvider.
| rules::Rule::RelatedRules CreateEmptyRelatedRules | ( | ) |
Returns an empty rules::Rule::RelatedRules.
| rules::Rule::RelatedUniqueIds CreateEmptyRelatedUniqueIds | ( | ) |
Returns an empty rules::Rule::RelatedUniqueIds.
| std::unique_ptr< IntersectionBook > CreateIntersectionBook | ( | ) |
Returns an arbitrary IntersectionBook.
| LaneSRange CreateLaneSRange | ( | ) |
Returns a LaneSRange containing an arbitrary range.
| LaneSRoute CreateLaneSRoute | ( | ) |
Returns a LaneSRoute containing an arbitrary route.
| std::unique_ptr< RoadGeometry > CreateMockContiguousRoadGeometry | ( | const RoadGeometryContiguityBuildFlags & | build_flags | ) |
Builds a RoadGeometry based on build_flags configuration.
When build.flags.add_linear_mismatch is true, end of first lane and start of second lane will be separated by more than linear_tolerance. When build_flags.add_angular_mismatch is true, heading angular distance between the end of the first lane and the start of the second lane will be bigger than angular_tolerance.
| std::unique_ptr< rules::RoadRulebook > CreateMockContiguousRoadRulebook | ( | const RoadRulebookContiguityBuildFlags & | build_flags | ) |
Returns an arbitrary rules::RoadRulebook.
When build_flags.add_discrete_value is true, a DiscreteValueRule is created with CreateDiscreteValueRuleForContiguityTest(). When build_flags.add_range_value is true, a RangeValueRule is created with CreateRangeValueRuleForContiguityTest().
| std::unique_ptr<RoadGeometry> maliput::api::test::CreateMultipleLanesRoadGeometry | ( | const std::vector< Lane * > & | lanes | ) |
| rules::Rule::RelatedRules CreateNonEmptyRelatedRules | ( | ) |
Returns an arbitrary rules::Rule::RelatedRules.
| rules::Rule::RelatedUniqueIds CreateNonEmptyRelatedUniqueIds | ( | ) |
Returns an arbitrary rules::Rule::RelatedUniqueIds.
| std::unique_ptr< RoadGeometry > CreateOneLaneRoadGeometry | ( | ) |
Returns an arbitrary one-lane RoadGeometry.
| Phase CreatePhase | ( | ) |
Returns an arbitrary rules::Phase.
| Phase CreatePhase | ( | const PhaseBuildFlags & | build_flags | ) |
Returns a rules::Phase based on build_flags configuration.
When build_flags.add_missing_rule is true, an unknown rule id is added; and if build_flags.add_missing_value is true, an unknown rules::DiscreteValueRule::DiscreteValue is added. Otherwise, it adds a reference to both rules::Rule::Id and rules::DiscreteValueRule::DiscreteValue offered by CreateDiscreteValueRule(). When build_flags.add_missing_bulb is true, an unknown rules::UniqueBulbId is added; and if build_flags.add_missing_bulb_state is true, the rules::Bulb's rules::BulbState will be other than the one set by CreateBulbGroup().
| std::unique_ptr< rules::PhaseProvider > CreatePhaseProvider | ( | ) |
Returns an arbitrary rules::PhaseProvider.
| PhaseRing CreatePhaseRing | ( | ) |
Returns an arbitrary rules::PhaseRing whose rules::Phase is the result of CreatePhase().
| PhaseRing CreatePhaseRing | ( | const PhaseBuildFlags & | build_flags | ) |
Returns a rules::PhaseRing whose rules::Phase is the result of CreatePhase(build_flags).
| std::unique_ptr< rules::PhaseRingBook > CreatePhaseRingBook | ( | ) |
Returns an arbitrary rules::PhaseRingBook.
| std::unique_ptr< rules::PhaseRingBook > CreatePhaseRingBook | ( | const PhaseBuildFlags & | build_flags | ) |
Returns an arbitrary rules::PhaseRingBook based on build_flags.
| RangeValueRule::Range CreateRange | ( | ) |
Returns a rules::RangeValueRule::Range.
| RangeValueRule CreateRangeValueRule | ( | ) |
Returns a rules::RangeValueRule containing an arbitrary state.
| RangeValueRule maliput::api::test::CreateRangeValueRule | ( | bool | consistent_related_rule_groups | ) |
| RangeValueRule CreateRangeValueRuleForContiguityTest | ( | ) |
Returns a rules::RangeValueRule containing an arbitrary state.
| std::unique_ptr< rules::RangeValueRuleStateProvider > CreateRangeValueRuleStateProvider | ( | ) |
Returns an arbitrary rules::RangeValueRuleStateProvider.
| RightOfWayRule CreateRightOfWayRule | ( | ) |
Returns a rules::RightOfWayRule containing arbitrary state.
Forwards the call to CreateRightOfWayRule() with a default initialized RightOfWayBuildFlags.
| RightOfWayRule CreateRightOfWayRule | ( | const RightOfWayBuildFlags & | build_flags | ) |
Returns a rules::RightOfWayRule containing arbitrary state.
When build_flags.add_related_bulb_groups is true, the rule is constructed with RelatedBulbGroups() result. Otherwise, the rule is constructed with an empty collection for the field.
| std::unique_ptr< rules::RightOfWayRuleStateProvider > CreateRightOfWayRuleStateProvider | ( | ) |
Returns an arbitrary rules::RightOfWayRuleStateProvider.
| std::unique_ptr< RoadGeometry > CreateRoadGeometry | ( | ) |
Returns an arbitrary RoadGeometry.
| std::unique_ptr< RoadGeometry > CreateRoadGeometry | ( | const RoadGeometryBuildFlags & | build_flags | ) |
| std::unique_ptr< objects::RoadMarkingBook > CreateRoadMarkingBook | ( | ) |
Returns an empty objects::RoadMarkingBook.
| std::unique_ptr< RoadNetwork > CreateRoadNetwork | ( | ) |
Returns an arbitrary RoadNetwork.
It calls all the Create*() functions in this header file to populate the RoadNetwork.
| std::unique_ptr< objects::RoadObjectBook > CreateRoadObjectBook | ( | ) |
Returns an empty objects::RoadObjectBook.
| std::unique_ptr< rules::RoadRulebook > CreateRoadRulebook | ( | ) |
Returns an arbitrary rules::RoadRulebook.
Forwards the call to CreateRoadRulebook() passing a default-constructed RoadRulebookBuildFlags structure.
| std::unique_ptr< rules::RoadRulebook > CreateRoadRulebook | ( | const RoadRulebookBuildFlags & | build_flags | ) |
Returns an arbitrary rules::RoadRulebook.
When build_flags.add_right_of_way is true, a RightOfWayRule is created with CreateRightOfWayRule() and build_flags.right_of_way_build_flags is used to configure the RightOfWayRule. When build_flags.add_direction_usage is true, a DirectionUsageRule is created with CreateDirectionUsageRule(). When build_flags.add_speed_limit is true, a SpeedLimitRule is created with CreateSpeedLimitRule. When build_flags.add_discrete_value is true, a DiscreteValueRule is created with CreateDiscreteValueRule(). When build_flags.add_range_value is true, a RangeValueRule is created with CreateRangeValueRule().
| std::unique_ptr< rules::RoadRulebook > CreateRoadRulebook | ( | const RoadRulebookRelatedRulesBuildFlags & | build_flags | ) |
Returns an arbitrary rules::RoadRulebook.
When build_flags.roadrulebook.add_discrete_value, build_flags.consistent_related_rule_in_discrete_value_rule will create a self reference to provide a valid rule::Rule::Id as a RelatedRule. When build_flags.roadrulebook.add_Range_value, build_flags.consistent_related_rule_in_range_value_rule will create a self reference to provide a valid rule::Rule::Id as a RelatedRule.
| std::unique_ptr< rules::RuleRegistry > CreateRuleRegistry | ( | ) |
Returns an arbitrary rules::RuleRegistry.
| SpeedLimitRule CreateSpeedLimitRule | ( | ) |
Returns a rules::SpeedLimitRule containing an arbitrary state.
| std::unique_ptr< TrafficLight > CreateTrafficLight | ( | const TrafficLightBuildFlags & | build_flags | ) |
Returns an arbitrary rules::TrafficLight.
When build_flags.add_missing_bulb_group is true, the rules::TrafficLight's ID is "MissingTrafficLightId". Otherwise, ID is "TrafficLightId". BulbGroup creation is done via CreateBulbGroup(build_flags.add_missing_bulb_group).
| std::unique_ptr< rules::TrafficLightBook > CreateTrafficLightBook | ( | ) |
Returns an arbitrary rules::TrafficLightBook.
| std::unique_ptr< rules::TrafficLightBook > CreateTrafficLightBook | ( | const TrafficLightBookBuildFlags & | build_flags | ) |
Returns an arbitrary rules::TrafficLightBook.
| std::unique_ptr< rules::TrafficSignBook > CreateTrafficSignBook | ( | ) |
Returns an empty rules::TrafficSignBook.
| std::unique_ptr< RoadGeometry > CreateTwoLanesRoadGeometry | ( | ) |
Returns an arbitrary two-lane RoadGeometry.
Forwards the call to CreateTwoLanesRoadGeometry(const LanePositionResult&, const LanePositionResult&) and provides two hardcoded LanePositionResults:
| std::unique_ptr< RoadGeometry > CreateTwoLanesRoadGeometry | ( | const LanePositionResult & | lane_a_pos_result, |
| const LanePositionResult & | lane_b_pos_result | ||
| ) |
Returns an arbitrary two-lane RoadGeometry and each lane will return lane_a_pos_result and lane_b_pos_result when calling Lane::ToLanePosition() with any InertialPosition.
| RightOfWayRule::State NoYieldState | ( | ) |
Returns a rules::RightOfWayRule::State containing no yield groups.
| RightOfWayRule::RelatedBulbGroups RelatedBulbGroups | ( | ) |
Returns an arbitrary rules::RightOfWayRule::RelatedBulbGroups.
| RightOfWayRule::State::YieldGroup YieldGroup2 | ( | ) |
Returns a rules::RightOfWayRule::State::YieldGroup of size two.
| RightOfWayRule::State YieldState | ( | ) |
Returns a rules::RightOfWayRule::State containing yield groups.