distance

Distance between two states

Description

dist = distance(space,states1,states2) returns the distance between states1 and states2 in the state space specified by space.

Input Arguments

collapse all

State space object, specified as a stateSpaceSE2, a stateSpaceDubins, or a stateSpaceReedsShepp object.

Data Types: object

States for distance calculation, specified as an M-by-3 real-valued matrix. Each row of the matrix corresponds to one incidence of state in the state space. The number of rows in states1 must be exactly the same as that of states2.

Data Types: single | double

States for distance calculation, specified as an M-by-3 real-valued matrix. Each row of the matrix corresponds to one incidence of state in the state space. The number of rows in states2 must be exactly the same as that of states1.

Data Types: single | double

Output Arguments

collapse all

Distance between states, returned as an M-by-1 real vector. The dimension M depends on the dimension of the input.

Introduced in R2019b