targetOutlines
Outlines of targets viewed by actor
Syntax
Description
[
returns the oriented rectangular outlines of all non-ego and non-barrier target actors in a driving scenario. The outlines are as viewed from a designated ego vehicle actor,position
,yaw
,length
,width
,originOffset
,color
] = targetOutlines(ac
)ac
. SeeEgo Vehicle and Targetsfor more details.
A target outline is the projection of the target actor cuboid into the (x,y) plane of the local coordinate system of the ego vehicle. The target outline components are theposition
,yaw
,length
,width
,originOffset
, andcolor
output arguments.
You can use the returned outlines as input arguments to the outline plotter of abirdsEyePlot
. First, call theoutlinePlotter
function to create the plotter object. Then, use theplotOutline
function to plot the outlines of all the actors in a bird's-eye plot.
[
returns only the oriented rectangular outlines of all barriers in a driving scenario. The additional output argumentposition
,yaw
,length
,width
,originOffset
,color
,numBarrierSegments
] = targetOutlines(ac
,'Barriers')numBarrierSegments
contains the number of segments present in each barrier.
You can use the retuned barrier outlines as input arguments to the outline plotter of abirdsEyePlot
. First, call theoutlinePlotter
function to create the plotter object. Then, use theplotBarrierOutline
function to plot the outlines of all the barriers in a bird's-eye plot.