dist
Syntax
Description
returns the distance distance
= dist(transformation1
,transformation2
)distance
between the poses represented by
transformation transformation1
and transformation
transformation2
.
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 transformation1
and
transformation2
.
specifies the weights distance
= dist(transformation1
,transformation2
,weights
)weights
for the translational and rotational
distances for calculating the weighted sum of two homogeneous transformations.
returns the distance distance
= dist(rotation1
,rotation2
)distance
between the poses represented by
transformation rotation1
and transformation
rotation2
.
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 rotation1
and
rotation2
.
For rotation objects so2
, and so3
, the
dist
function calculates the rotational distance as the angular
difference between the rotation quaternions of rotation1
and
rotation2
.
Input Arguments
Output Arguments
Version History
Introduced in R2022b