%% Connect Poses Using Dubins Connection Path
% Create a dubinsConnection object.

dubConnObj = dubinsConnection;

%
% Define start and goal poses as [x y theta] vectors.

startPose = [0 0 0];
goalPose = [1 1 pi];

%
% Calculate a valid path segment to connect the poses.

[pathSegObj, pathCosts] = connect(dubConnObj,startPose,goalPose);

%
% Show the generated path.

show(pathSegObj{1})

% Copyright 2019 The MathWorks, Inc.