metric
Syntax
Description
returns the summary of all the path planner metrics as a table.metricSummary
= metric(plannerBM
)
returns the summary of a specific metric.metricSummary
= metric(plannerBM
,metricName
)
[
returns the metricSummary
,metricData
] = metric(plannerBM
)metricData
table with the metric values across each run for
all metrics and metricSummary
table with the summary of all
metrics.
[
returns the summary and the values of a specific metric.metricSummary
,metricData
] = metric(plannerBM
,metricName
)
Examples
Input Arguments
Output Arguments
Tips
If the metric value can not be computed due to empty states in path output or error during plan function execution,
NaN
will be displayed for corresponding values in metric data tables. The show function will not display any value for metrics withNaN
value.If the path output is
navPath
, metrics are calculated using the state space innavPath
.If the path output is a m-by-2 matrix, state space is assumed as
stateSpaceSE2
with theta as0
for all poses.If the path output is a m-by-3 matrix, the third column in the path output is assumed as theta and subsequently
stateSpaceSE2
is assumed as the state space.If environment is
validatorOccupancyMap
, the metricisPathValid
is computed using the specified environment.If environment is
occupancyMap
orbinaryOccupancyMap
, defaultvalidatorOccupancyMap
is created using the specified environment as Map and state space is derived as above.The value of
ValidationDistance
property is assumed as0.1*(1/resolution of map)
.
Version History
Introduced in R2022a