A path is composed of multiple segments that are combinations of
motions (for example, left turn, straight, and right turn). Transition
poses are vehicle poses corresponding to the end of one motion and the
beginning of another motion. They represent points along the path corresponding to a change
in the direction or orientation of the vehicle. The interpolate
function always returns transition poses, even if you interpolate only at specified points
along the path.
The path length between transition poses is given by the
MotionLengths
property of the path segments. For example, consider
the following path, which is a driving.Path
object composed of a single Dubins path segment. This segment consists of three motions, as
described by the MotionLengths
and MotionTypes
properties of the segment.
The interpolate
function interpolates the following transition
poses in this order:
The initial pose of the vehicle, StartPose
.
The pose after the vehicle turns left ("L"
) for 4.39 meters at
its maximum steering angle.
The pose after the vehicle goes straight ("S"
) for 6.32
meters.
The pose after the vehicle turns right ("R"
) for 4.39 meters at
its maximum steering angle. This pose is also the goal pose, because it is the last pose
of the entire path.
The plot shows these transition poses, which are [x,
y, Θ] vectors. x and
y specify the location of the vehicle in world units, such as meters.
Θ specifies the orientation angle of the vehicle in degrees.