poses = interpolate(pathSeg,lengths)
interpolates along the path segment at the specified lengths along the path. Transitions
between motion types are always included.
[poses,directions] = interpolate(___)
also returns the direction of motion along the path for each section as a vector of 1s
(forward) and –1s (reverse) using the previous inputs.
lengths — Lengths along path to interpolate at positive numeric vector
Lengths along path to interpolate at, specified as a positive numeric vector. For
example, specify [0:0.1:pathSegObj{1}.Length] to interpolate at every
0.1 meters along the path. Transitions between motion types are always included.
Interpolated poses along the path segment, specified as an [x,
y, Θ] matrix. Each row of the matrix corresponds
to a different interpolated pose along the path.
x and y are in meters. Θ is in
radians.
directions — Directions of motion vector of 1s (forward) and –1s (reverse)
Directions of motion for each segment of the interpolated path, specified as a
vector of 1s (forward) and –1s (reverse).
Extended Capabilities
C/C++ Code Generation Generate C and C++ code using MATLAB® Coder™.