CARLA
Loading...
Searching...
No Matches
test_traffic_manager.cpp File Reference
#include "test.h"
#include <algorithm>
#include <cmath>
#include <limits>
#include <utility>
#include <vector>
#include <carla/geom/Location.h>
#include <carla/trafficmanager/Constants.h>
#include <carla/trafficmanager/DataStructures.h>
#include <carla/trafficmanager/PIDController.h>
#include <carla/trafficmanager/TrafficManagerGeometry.h>

Go to the source code of this file.

Classes

struct  ActuationSignal
 Structure to hold the actuation signals. More...
struct  StateEntry
 Structure to hold the controller state. More...

Functions

float GetPathSpeedLimit (const std::vector< cg::Location > &path, float path_start_offset, float sample_spacing, float lateral_acceleration, float braking_deceleration, float max_speed)
 Lowest sqrt(R * lateral_acceleration + 2 * braking_deceleration * distance) over every three consecutive samples taken at sample_spacing along path.
float GetThreePointCircleRadius (cg::Location first_location, cg::Location middle_location, cg::Location last_location)
 Returns the radius of the circle defined by three points in the XY plane.
std::pair< cg::Location, uint64_t > InterpolateBufferAt (const std::vector< cg::Location > &waypoint_locations, float target_distance, cg::Location vehicle_location)
 Locations-only variant of GetTargetData.
bool IsOffsetSideOccupied (cg::Location ego_location, cg::Vector3D ego_forward, cg::Vector3D offset_direction, float offset_magnitude, float lateral_clearance, float longitudinal_window, const std::vector< std::pair< cg::Location, float > > &neighbours)
 Returns true when a neighbouring vehicle sits in the lateral band that the wide-turn offset would swing the ego vehicle into.
float LargeVehicleJunctionOffsetProfile (float t, float max_offset, float max_offset_point, float inboard_scale)
 Lateral offset profile for the large-vehicle wide turn, as a function of t, the fraction of the junction still ahead of the target waypoint (1 at the entry, 0 at the exit).
float LargeVehicleOffsetMagnitude (float vehicle_length, float reference_length, float gain, float offset_cap)
 Wide-turn offset magnitude scaled by vehicle length: clamp(gain * (vehicle_length - reference_length), 0, offset_cap).
 TEST (TrafficManagerActuationSmoothing, Deadband_HoldsTheBrakeDitherAndPassesARealStep)
 TEST (TrafficManagerActuationSmoothing, Deadband_HoldsTheSteeringDitherAtUrbanSpeed)
 TEST (TrafficManagerActuationSmoothing, Deadband_HoldsTheThrottleDitherAndPassesARealStep)
 TEST (TrafficManagerActuationSmoothing, Deadband_SteeringBandShrinksWithSpeed)
 TEST (TrafficManagerActuationSmoothing, Deadband_ZeroPedalDemandIsAlwaysHonoured)
 TEST (TrafficManagerActuationSmoothing, LaunchRamp_AlwaysClearsTheThrottleDeadband)
 TEST (TrafficManagerActuationSmoothing, LaunchRamp_IsReleasedAboveTheLaunchSpeed)
 TEST (TrafficManagerActuationSmoothing, LaunchRamp_LimitsTheThrottleRiseFromRest)
 TEST (TrafficManagerActuationSmoothing, LaunchRamp_NeverRaisesAFallingThrottle)
 TEST (TrafficManagerActuationSmoothing, LaunchRamp_ReachesFullThrottleInABoundedNumberOfSteps)
 TEST (TrafficManagerBatchSync, IsBatchSyncDue_AtOrPastTheBoundOneIsWaitedFor)
 TEST (TrafficManagerBatchSync, IsBatchSyncDue_WithinTheBoundNothingIsWaitedFor)
 TEST (TrafficManagerBatchSync, QueueNeverHoldsMoreThanThePermittedBatches)
 TEST (TrafficManagerBatchSync, SlowServerWithAFixedDeltaIsBoundedTheSameWayAsAFastOne)
 TEST (TrafficManagerComfortConstants, ReferenceLeadOutrunsTheThrottleSaturationError)
 TEST (TrafficManagerGeometry, ThreePointCircleRadius_EquilateralTriangle)
 TEST (TrafficManagerGeometry, ThreePointCircleRadius_NearlyCollinearReturnsLarge)
 TEST (TrafficManagerGeometry, ThreePointCircleRadius_PerfectlyCollinearReturnsMax)
 TEST (TrafficManagerGeometry, ThreePointCircleRadius_RightTriangle)
 TEST (TrafficManagerInterpolation, InterpolateBufferAt_BracketBetweenLastTwoWaypoints)
 TEST (TrafficManagerInterpolation, InterpolateBufferAt_CoincidentBracketReturnsClosest)
 TEST (TrafficManagerInterpolation, InterpolateBufferAt_DistanceBeyondLastWaypoint)
 TEST (TrafficManagerInterpolation, InterpolateBufferAt_DistanceShorterThanFirstWaypoint)
 TEST (TrafficManagerInterpolation, InterpolateBufferAt_EmptyBufferReturnsVehicleLocation)
 TEST (TrafficManagerInterpolation, InterpolateBufferAt_LinearInterpBetweenTwoPoints)
 TEST (TrafficManagerInterpolation, InterpolateBufferAt_SingleElementReturnsThatElement)
 TEST (TrafficManagerPathSpeed, PathSpeedLimit_AllowsMoreSpeedFurtherFromTheTurn)
 TEST (TrafficManagerPathSpeed, PathSpeedLimit_ArcBehindTheVehicleIsNotCreditedWithBraking)
 TEST (TrafficManagerPathSpeed, PathSpeedLimit_ArcUnderfootAllowsItsOwnSpeed)
 TEST (TrafficManagerPathSpeed, PathSpeedLimit_HoldsSteadyAsAnArcIsConsumed)
 TEST (TrafficManagerPathSpeed, PathSpeedLimit_NonPositiveSpacingIsNotLimited)
 TEST (TrafficManagerPathSpeed, PathSpeedLimit_PathShorterThanTwoSamplesIsNotLimited)
 TEST (TrafficManagerPathSpeed, PathSpeedLimit_ShortPathIsNotLimited)
 TEST (TrafficManagerPathSpeed, PathSpeedLimit_StraightPathIsNotLimited)
 TEST (TrafficManagerPathSpeed, PathSpeedLimit_TighterTurnAllowsLessSpeed)
 TEST (TrafficManagerReferenceVelocity, ShapeReference_DecelerationIsPassedThroughUnshaped)
 TEST (TrafficManagerReferenceVelocity, ShapeReference_EmergencyStopDiscardsTheStoredReference)
 TEST (TrafficManagerReferenceVelocity, ShapeReference_LeadStaysBoundedWhileTheVehicleCannotFollow)
 TEST (TrafficManagerReferenceVelocity, ShapeReference_NeverExceedsTheTarget)
 TEST (TrafficManagerReferenceVelocity, ShapeReference_RampsAwayFromRestAtComfortAcceleration)
 TEST (TrafficManagerReferenceVelocity, ShapeReference_ShortFrameStillAdvancesTheReference)
 TEST (TrafficManagerReferenceVelocity, ShapeReference_SlowServerStillRampsAtTheCompensatedRate)
 TEST (TrafficManagerReferenceVelocity, ShapeReference_StaleHighReferenceIsCappedToTheLead)
 TEST (TrafficManagerReferenceVelocity, ShapeReference_StaleLowReferenceIsRecoveredInOneStep)
 TEST (TrafficManagerReferenceVelocity, VelocityDeviation_MatchesThePlainRatioOnceCaughtUp)
 TEST (TrafficManagerReferenceVelocity, VelocityDeviation_ZeroTargetBehindAStoppedVehicleIsFinite)
 TEST (TrafficManagerReferenceVelocity, VelocityDeviation_ZeroTargetDoesNotPoisonTheNextStep)
 TEST (TrafficManagerRefreshCadence, EarlyRefresh_NewlyRegisteredVehicleIsReadPromptly)
 TEST (TrafficManagerRefreshCadence, EarlyRefresh_VehicleTheServerNeverReportsKeepsTheRegularCadence)
 TEST (TrafficManagerRefreshCadence, IsEarlyRefreshDue_StepThatAlreadyReadNeedsNoRead)
 TEST (TrafficManagerRefreshCadence, IsEarlyRefreshDue_VehicleSeenForTheFirstTimeIsWorthARead)
 TEST (TrafficManagerRefreshCadence, IsEarlyRefreshDue_VehicleTheServerOmitsIsNotWorthAnother)
 TEST (TrafficManagerRefreshCadence, IsRefreshDue_AtOrPastThePeriodIsDue)
 TEST (TrafficManagerRefreshCadence, IsRefreshDue_ClockGoingBackwardsIsDue)
 TEST (TrafficManagerRefreshCadence, IsRefreshDue_NothingReadYetIsDue)
 TEST (TrafficManagerRefreshCadence, IsRefreshDue_SameFrameIsNotDue)
 TEST (TrafficManagerRefreshCadence, IsRefreshDue_WithinThePeriodIsNotDue)
 TEST (TrafficManagerWideTurn, OffsetMagnitude_MonotonicNonDecreasingInLength)
 TEST (TrafficManagerWideTurn, OffsetMagnitude_RampsThenClampsToCap)
 TEST (TrafficManagerWideTurn, OffsetMagnitude_ZeroAtOrBelowReferenceLength)
 TEST (TrafficManagerWideTurn, OffsetProfile_InboardExcursionIsCapped)
 TEST (TrafficManagerWideTurn, OffsetProfile_OutboardSwingReachesFullMagnitude)
 TEST (TrafficManagerWideTurn, OffsetProfile_ZeroAtEntryAndExit)
 TEST (TrafficManagerWideTurn, OffsetProfile_ZeroInboardScaleRemovesCutIn)
 TEST (TrafficManagerWideTurn, OffsetSideOccupied_EmptyNeighboursIsClear)
 TEST (TrafficManagerWideTurn, OffsetSideOccupied_FarLateralNeighbourIsClear)
 TEST (TrafficManagerWideTurn, OffsetSideOccupied_NeighbourAheadOutsideWindowIsClear)
 TEST (TrafficManagerWideTurn, OffsetSideOccupied_NeighbourInBandBlocks)
 TEST (TrafficManagerWideTurn, OffsetSideOccupied_OppositeSideNeighbourIsClear)

Function Documentation

◆ GetPathSpeedLimit()

float carla::traffic_manager::GetPathSpeedLimit ( const std::vector< cg::Location > & path,
const float path_start_offset,
const float sample_spacing,
const float lateral_acceleration,
const float braking_deceleration,
const float max_speed )
nodiscard

Lowest sqrt(R * lateral_acceleration + 2 * braking_deceleration * distance) over every three consecutive samples taken at sample_spacing along path.

path_start_offset is where path.front() sits relative to the vehicle, negative when behind it. Fewer than three points returns max_speed.

Definition at line 130 of file TrafficManagerGeometry.cpp.

Referenced by TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), and TEST().

◆ GetThreePointCircleRadius()

float carla::traffic_manager::GetThreePointCircleRadius ( cg::Location first_location,
cg::Location middle_location,
cg::Location last_location )
nodiscard

Returns the radius of the circle defined by three points in the XY plane.

Returns std::numeric_limits<float>::max() when the three points are collinear (no circumscribing circle exists).

Definition at line 22 of file TrafficManagerGeometry.cpp.

Referenced by TEST(), TEST(), TEST(), and TEST().

◆ InterpolateBufferAt()

std::pair< cg::Location, uint64_t > carla::traffic_manager::InterpolateBufferAt ( const std::vector< cg::Location > & waypoint_locations,
float target_distance,
cg::Location vehicle_location )
nodiscard

Locations-only variant of GetTargetData.

Takes a flat list of waypoint locations and walks them to find the bracketing pair around target_distance from vehicle_location, then linearly interpolates. Exposed as a free function so the unit-test suite can exercise it without constructing SimpleWaypoint instances (which require a real carla::client::Waypoint and therefore a road map).

Defensive: an empty list returns {vehicle_location, 0u}; a single-element list returns that element.

Definition at line 50 of file TrafficManagerGeometry.cpp.

Referenced by TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), and TEST().

◆ IsOffsetSideOccupied()

bool carla::traffic_manager::IsOffsetSideOccupied ( cg::Location ego_location,
cg::Vector3D ego_forward,
cg::Vector3D offset_direction,
float offset_magnitude,
float lateral_clearance,
float longitudinal_window,
const std::vector< std::pair< cg::Location, float > > & neighbours )
nodiscard

Returns true when a neighbouring vehicle sits in the lateral band that the wide-turn offset would swing the ego vehicle into.

offset_direction is a unit vector pointing to the swing side; ego_forward is the ego heading unit vector. A neighbour counts as blocking when it is on the offset side within offset_magnitude + lateral_clearance (plus its own radius) and roughly alongside the ego within longitudinal_window (plus its radius). Each neighbour is a {location, radius} pair.

Definition at line 223 of file TrafficManagerGeometry.cpp.

◆ LargeVehicleJunctionOffsetProfile()

float carla::traffic_manager::LargeVehicleJunctionOffsetProfile ( float t,
float max_offset,
float max_offset_point,
float inboard_scale )
nodiscard

Lateral offset profile for the large-vehicle wide turn, as a function of t, the fraction of the junction still ahead of the target waypoint (1 at the entry, 0 at the exit).

Returns the unsigned offset in the right-turn convention: positive values are inboard (toward the inside of the turn, the exit "cut-in"), negative values are outboard (the entry swing that opens the turn up). The caller flips the sign for left turns.

The raw profile is a cosine blend that is 0 at both entry and exit. The inboard (positive) lobe is then scaled by inboard_scale in [0, 1] so the cut-in that drives a long vehicle's rear into the inside shoulder can be attenuated (0) or kept (1) independently of the outboard swing.

Definition at line 180 of file TrafficManagerGeometry.cpp.

◆ LargeVehicleOffsetMagnitude()

float carla::traffic_manager::LargeVehicleOffsetMagnitude ( float vehicle_length,
float reference_length,
float gain,
float offset_cap )
nodiscard

Wide-turn offset magnitude scaled by vehicle length: clamp(gain * (vehicle_length - reference_length), 0, offset_cap).

Short vehicles (at or below the reference length) get no offset; longer vehicles ramp up to the cap.

Definition at line 213 of file TrafficManagerGeometry.cpp.

◆ TEST() [1/69]

TEST ( TrafficManagerActuationSmoothing ,
Deadband_HoldsTheBrakeDitherAndPassesARealStep  )

Definition at line 898 of file test_traffic_manager.cpp.

References TEST().

◆ TEST() [2/69]

TEST ( TrafficManagerActuationSmoothing ,
Deadband_HoldsTheSteeringDitherAtUrbanSpeed  )

Definition at line 916 of file test_traffic_manager.cpp.

References TEST().

◆ TEST() [3/69]

TEST ( TrafficManagerActuationSmoothing ,
Deadband_HoldsTheThrottleDitherAndPassesARealStep  )

Definition at line 889 of file test_traffic_manager.cpp.

References TEST().

◆ TEST() [4/69]

TEST ( TrafficManagerActuationSmoothing ,
Deadband_SteeringBandShrinksWithSpeed  )

Definition at line 925 of file test_traffic_manager.cpp.

References TEST().

◆ TEST() [5/69]

TEST ( TrafficManagerActuationSmoothing ,
Deadband_ZeroPedalDemandIsAlwaysHonoured  )

◆ TEST() [6/69]

TEST ( TrafficManagerActuationSmoothing ,
LaunchRamp_AlwaysClearsTheThrottleDeadband  )

◆ TEST() [7/69]

TEST ( TrafficManagerActuationSmoothing ,
LaunchRamp_IsReleasedAboveTheLaunchSpeed  )

◆ TEST() [8/69]

TEST ( TrafficManagerActuationSmoothing ,
LaunchRamp_LimitsTheThrottleRiseFromRest  )

◆ TEST() [9/69]

TEST ( TrafficManagerActuationSmoothing ,
LaunchRamp_NeverRaisesAFallingThrottle  )

◆ TEST() [10/69]

TEST ( TrafficManagerActuationSmoothing ,
LaunchRamp_ReachesFullThrottleInABoundedNumberOfSteps  )

◆ TEST() [11/69]

TEST ( TrafficManagerBatchSync ,
IsBatchSyncDue_AtOrPastTheBoundOneIsWaitedFor  )

Definition at line 667 of file test_traffic_manager.cpp.

References TEST().

◆ TEST() [12/69]

TEST ( TrafficManagerBatchSync ,
IsBatchSyncDue_WithinTheBoundNothingIsWaitedFor  )

Definition at line 661 of file test_traffic_manager.cpp.

References TEST().

◆ TEST() [13/69]

TEST ( TrafficManagerBatchSync ,
QueueNeverHoldsMoreThanThePermittedBatches  )

Definition at line 674 of file test_traffic_manager.cpp.

References TEST().

◆ TEST() [14/69]

TEST ( TrafficManagerBatchSync ,
SlowServerWithAFixedDeltaIsBoundedTheSameWayAsAFastOne  )

Definition at line 680 of file test_traffic_manager.cpp.

References TEST().

◆ TEST() [15/69]

TEST ( TrafficManagerComfortConstants ,
ReferenceLeadOutrunsTheThrottleSaturationError  )

Definition at line 712 of file test_traffic_manager.cpp.

References TEST().

◆ TEST() [16/69]

TEST ( TrafficManagerGeometry ,
ThreePointCircleRadius_EquilateralTriangle  )

Definition at line 51 of file test_traffic_manager.cpp.

References GetThreePointCircleRadius(), and TEST().

◆ TEST() [17/69]

TEST ( TrafficManagerGeometry ,
ThreePointCircleRadius_NearlyCollinearReturnsLarge  )

Definition at line 75 of file test_traffic_manager.cpp.

References GetThreePointCircleRadius(), and TEST().

◆ TEST() [18/69]

TEST ( TrafficManagerGeometry ,
ThreePointCircleRadius_PerfectlyCollinearReturnsMax  )

Definition at line 89 of file test_traffic_manager.cpp.

References GetThreePointCircleRadius(), and TEST().

◆ TEST() [19/69]

TEST ( TrafficManagerGeometry ,
ThreePointCircleRadius_RightTriangle  )

Definition at line 64 of file test_traffic_manager.cpp.

References GetThreePointCircleRadius(), and TEST().

◆ TEST() [20/69]

TEST ( TrafficManagerInterpolation ,
InterpolateBufferAt_BracketBetweenLastTwoWaypoints  )

Definition at line 168 of file test_traffic_manager.cpp.

References InterpolateBufferAt(), and TEST().

◆ TEST() [21/69]

TEST ( TrafficManagerInterpolation ,
InterpolateBufferAt_CoincidentBracketReturnsClosest  )

Definition at line 186 of file test_traffic_manager.cpp.

References InterpolateBufferAt(), and TEST().

◆ TEST() [22/69]

TEST ( TrafficManagerInterpolation ,
InterpolateBufferAt_DistanceBeyondLastWaypoint  )

Definition at line 154 of file test_traffic_manager.cpp.

References InterpolateBufferAt(), and TEST().

◆ TEST() [23/69]

TEST ( TrafficManagerInterpolation ,
InterpolateBufferAt_DistanceShorterThanFirstWaypoint  )

Definition at line 136 of file test_traffic_manager.cpp.

References InterpolateBufferAt(), and TEST().

◆ TEST() [24/69]

TEST ( TrafficManagerInterpolation ,
InterpolateBufferAt_EmptyBufferReturnsVehicleLocation  )

Definition at line 105 of file test_traffic_manager.cpp.

References InterpolateBufferAt(), and TEST().

◆ TEST() [25/69]

TEST ( TrafficManagerInterpolation ,
InterpolateBufferAt_LinearInterpBetweenTwoPoints  )

Definition at line 123 of file test_traffic_manager.cpp.

References InterpolateBufferAt(), and TEST().

◆ TEST() [26/69]

TEST ( TrafficManagerInterpolation ,
InterpolateBufferAt_SingleElementReturnsThatElement  )

Definition at line 114 of file test_traffic_manager.cpp.

References InterpolateBufferAt(), and TEST().

◆ TEST() [27/69]

TEST ( TrafficManagerPathSpeed ,
PathSpeedLimit_AllowsMoreSpeedFurtherFromTheTurn  )

Definition at line 285 of file test_traffic_manager.cpp.

References GetPathSpeedLimit(), and TEST().

◆ TEST() [28/69]

TEST ( TrafficManagerPathSpeed ,
PathSpeedLimit_ArcBehindTheVehicleIsNotCreditedWithBraking  )

Definition at line 330 of file test_traffic_manager.cpp.

References GetPathSpeedLimit(), and TEST().

◆ TEST() [29/69]

TEST ( TrafficManagerPathSpeed ,
PathSpeedLimit_ArcUnderfootAllowsItsOwnSpeed  )

Definition at line 255 of file test_traffic_manager.cpp.

References GetPathSpeedLimit(), and TEST().

◆ TEST() [30/69]

TEST ( TrafficManagerPathSpeed ,
PathSpeedLimit_HoldsSteadyAsAnArcIsConsumed  )

Definition at line 266 of file test_traffic_manager.cpp.

References GetPathSpeedLimit(), and TEST().

◆ TEST() [31/69]

TEST ( TrafficManagerPathSpeed ,
PathSpeedLimit_NonPositiveSpacingIsNotLimited  )

Definition at line 322 of file test_traffic_manager.cpp.

References GetPathSpeedLimit(), and TEST().

◆ TEST() [32/69]

TEST ( TrafficManagerPathSpeed ,
PathSpeedLimit_PathShorterThanTwoSamplesIsNotLimited  )

Definition at line 312 of file test_traffic_manager.cpp.

References GetPathSpeedLimit(), and TEST().

◆ TEST() [33/69]

TEST ( TrafficManagerPathSpeed ,
PathSpeedLimit_ShortPathIsNotLimited  )

Definition at line 246 of file test_traffic_manager.cpp.

References GetPathSpeedLimit(), and TEST().

◆ TEST() [34/69]

TEST ( TrafficManagerPathSpeed ,
PathSpeedLimit_StraightPathIsNotLimited  )

Definition at line 235 of file test_traffic_manager.cpp.

References GetPathSpeedLimit(), and TEST().

◆ TEST() [35/69]

TEST ( TrafficManagerPathSpeed ,
PathSpeedLimit_TighterTurnAllowsLessSpeed  )

Definition at line 299 of file test_traffic_manager.cpp.

References GetPathSpeedLimit(), and TEST().

◆ TEST() [36/69]

TEST ( TrafficManagerReferenceVelocity ,
ShapeReference_DecelerationIsPassedThroughUnshaped  )

Definition at line 733 of file test_traffic_manager.cpp.

References TEST().

◆ TEST() [37/69]

TEST ( TrafficManagerReferenceVelocity ,
ShapeReference_EmergencyStopDiscardsTheStoredReference  )

Definition at line 757 of file test_traffic_manager.cpp.

References TEST().

◆ TEST() [38/69]

TEST ( TrafficManagerReferenceVelocity ,
ShapeReference_LeadStaysBoundedWhileTheVehicleCannotFollow  )

Definition at line 748 of file test_traffic_manager.cpp.

References TEST().

◆ TEST() [39/69]

TEST ( TrafficManagerReferenceVelocity ,
ShapeReference_NeverExceedsTheTarget  )

Definition at line 726 of file test_traffic_manager.cpp.

References TEST().

◆ TEST() [40/69]

TEST ( TrafficManagerReferenceVelocity ,
ShapeReference_RampsAwayFromRestAtComfortAcceleration  )

Definition at line 720 of file test_traffic_manager.cpp.

References TEST().

◆ TEST() [41/69]

TEST ( TrafficManagerReferenceVelocity ,
ShapeReference_ShortFrameStillAdvancesTheReference  )

Definition at line 772 of file test_traffic_manager.cpp.

References TEST().

◆ TEST() [42/69]

TEST ( TrafficManagerReferenceVelocity ,
ShapeReference_SlowServerStillRampsAtTheCompensatedRate  )

Definition at line 765 of file test_traffic_manager.cpp.

References TEST().

◆ TEST() [43/69]

TEST ( TrafficManagerReferenceVelocity ,
ShapeReference_StaleHighReferenceIsCappedToTheLead  )

Definition at line 742 of file test_traffic_manager.cpp.

References TEST().

◆ TEST() [44/69]

TEST ( TrafficManagerReferenceVelocity ,
ShapeReference_StaleLowReferenceIsRecoveredInOneStep  )

Definition at line 737 of file test_traffic_manager.cpp.

References TEST().

◆ TEST() [45/69]

TEST ( TrafficManagerReferenceVelocity ,
VelocityDeviation_MatchesThePlainRatioOnceCaughtUp  )

Definition at line 782 of file test_traffic_manager.cpp.

References TEST().

◆ TEST() [46/69]

TEST ( TrafficManagerReferenceVelocity ,
VelocityDeviation_ZeroTargetBehindAStoppedVehicleIsFinite  )

Definition at line 786 of file test_traffic_manager.cpp.

References TEST().

◆ TEST() [47/69]

◆ TEST() [48/69]

TEST ( TrafficManagerRefreshCadence ,
EarlyRefresh_NewlyRegisteredVehicleIsReadPromptly  )

Definition at line 603 of file test_traffic_manager.cpp.

References TEST().

◆ TEST() [49/69]

TEST ( TrafficManagerRefreshCadence ,
EarlyRefresh_VehicleTheServerNeverReportsKeepsTheRegularCadence  )

Definition at line 591 of file test_traffic_manager.cpp.

References TEST().

◆ TEST() [50/69]

TEST ( TrafficManagerRefreshCadence ,
IsEarlyRefreshDue_StepThatAlreadyReadNeedsNoRead  )

Definition at line 586 of file test_traffic_manager.cpp.

References TEST().

◆ TEST() [51/69]

TEST ( TrafficManagerRefreshCadence ,
IsEarlyRefreshDue_VehicleSeenForTheFirstTimeIsWorthARead  )

Definition at line 578 of file test_traffic_manager.cpp.

References TEST().

◆ TEST() [52/69]

TEST ( TrafficManagerRefreshCadence ,
IsEarlyRefreshDue_VehicleTheServerOmitsIsNotWorthAnother  )

Definition at line 582 of file test_traffic_manager.cpp.

References TEST().

◆ TEST() [53/69]

TEST ( TrafficManagerRefreshCadence ,
IsRefreshDue_AtOrPastThePeriodIsDue  )

Definition at line 515 of file test_traffic_manager.cpp.

References TEST().

◆ TEST() [54/69]

TEST ( TrafficManagerRefreshCadence ,
IsRefreshDue_ClockGoingBackwardsIsDue  )

Definition at line 520 of file test_traffic_manager.cpp.

References TEST().

◆ TEST() [55/69]

TEST ( TrafficManagerRefreshCadence ,
IsRefreshDue_NothingReadYetIsDue  )

Definition at line 502 of file test_traffic_manager.cpp.

References TEST().

◆ TEST() [56/69]

TEST ( TrafficManagerRefreshCadence ,
IsRefreshDue_SameFrameIsNotDue  )

Definition at line 507 of file test_traffic_manager.cpp.

References TEST().

◆ TEST() [57/69]

TEST ( TrafficManagerRefreshCadence ,
IsRefreshDue_WithinThePeriodIsNotDue  )

Definition at line 511 of file test_traffic_manager.cpp.

References TEST().

◆ TEST() [58/69]

TEST ( TrafficManagerWideTurn ,
OffsetMagnitude_MonotonicNonDecreasingInLength  )

Definition at line 428 of file test_traffic_manager.cpp.

References TEST().

◆ TEST() [59/69]

TEST ( TrafficManagerWideTurn ,
OffsetMagnitude_RampsThenClampsToCap  )

Definition at line 421 of file test_traffic_manager.cpp.

References TEST().

◆ TEST() [60/69]

TEST ( TrafficManagerWideTurn ,
OffsetMagnitude_ZeroAtOrBelowReferenceLength  )

Definition at line 416 of file test_traffic_manager.cpp.

References TEST().

◆ TEST() [61/69]

TEST ( TrafficManagerWideTurn ,
OffsetProfile_InboardExcursionIsCapped  )

Definition at line 378 of file test_traffic_manager.cpp.

References TEST().

◆ TEST() [62/69]

TEST ( TrafficManagerWideTurn ,
OffsetProfile_OutboardSwingReachesFullMagnitude  )

Definition at line 370 of file test_traffic_manager.cpp.

References TEST().

◆ TEST() [63/69]

TEST ( TrafficManagerWideTurn ,
OffsetProfile_ZeroAtEntryAndExit  )

Definition at line 363 of file test_traffic_manager.cpp.

References TEST().

◆ TEST() [64/69]

TEST ( TrafficManagerWideTurn ,
OffsetProfile_ZeroInboardScaleRemovesCutIn  )

Definition at line 391 of file test_traffic_manager.cpp.

References TEST().

◆ TEST() [65/69]

TEST ( TrafficManagerWideTurn ,
OffsetSideOccupied_EmptyNeighboursIsClear  )

Definition at line 464 of file test_traffic_manager.cpp.

References TEST().

◆ TEST() [66/69]

TEST ( TrafficManagerWideTurn ,
OffsetSideOccupied_FarLateralNeighbourIsClear  )

Definition at line 473 of file test_traffic_manager.cpp.

References TEST().

◆ TEST() [67/69]

TEST ( TrafficManagerWideTurn ,
OffsetSideOccupied_NeighbourAheadOutsideWindowIsClear  )

Definition at line 483 of file test_traffic_manager.cpp.

References TEST().

◆ TEST() [68/69]

TEST ( TrafficManagerWideTurn ,
OffsetSideOccupied_NeighbourInBandBlocks  )

Definition at line 468 of file test_traffic_manager.cpp.

References TEST().

◆ TEST() [69/69]

TEST ( TrafficManagerWideTurn ,
OffsetSideOccupied_OppositeSideNeighbourIsClear  )

Definition at line 478 of file test_traffic_manager.cpp.

References TEST().