barrier
Syntax
Description
barrier(
adds a barrier along a piecewise, clothoid curve that smoothly connects the specified
barrier centers. This approach is useful when adding barriers to edges of roads that
intersect or overlap.scenario
,barrierCenters
)
barrier(
specifies the angle by which the barrier tilts when traversing the barrier centers.scenario
,barrierCenters
,bankAngle
)
barrier(___,
sets barrier properties using one or more name-value pair arguments, in addition to any
combination of input arguments from previous syntaxes.Name,Value
)
Barriers are composed of individual elements called barrier
segments. Use name-value pair arguments such as 'SegmentLength'
,
'SegmentGap'
, 'Width'
and
'Height'
to tune the properties of individual barrier segments.
Jersey barriers and guardrails are the two types of barriers that you can add to a scenario.
Specify the appropriate 'Mesh'
and 'ClassID'
arguments to represent the barrier as a guardrail or a jersey barrier.
Examples
Input Arguments
Limitations
Road networks added using the
roadNetwork
function do not support barriers.
Tips
For faster simulations, specify the input argument
range
for thetargetPoses
function in the scenario advance loop.
Version History
Introduced in R2021a