dist
Calculate distance between transformations
Syntax
Description
returns the distance distance
= dist(transformationA
,transformationB
)distance
between the poses represented by
transformation transformationA
and transformation
transformationB
.
For the homogeneous transformation objects se2
, and
se3
, the dist
function calculates translational
and rotational distance independently and combines them in a weighted sum. Translational
distance is the Euclidean distance, and rotational distance is the angular difference
between the rotation quaternions of transformationA
and
transformationB
.
For rotational transformation objects so2
, and so3
,
the dist
function calculates the rotational distance as the angular
difference between the rotation quaternions of transformationA
and
transformationB
.
specifies the weights distance
= dist(transformationA
,transformationB
,weights
)weights
for the translational and rotational
distances for calculating the weighted sum of two homogeneous transformations. The weights
do not apply when calculating the distance between two rotation transformations.
Input Arguments
Output Arguments
Version History
Introduced in R2022b