function createCustomRobotSensorTemplate()
%createCustomRobotSensorTemplate Create Robot custom sensor template
%   createCustomRobotSensorTemplate creates a sample template
%   implementation for robot custom sensor that inherits from the
%   robotics.SensorAdaptor class. This function opens a new file in MATLAB
%   editor.
%
%   Example:
%      % Open custom sensor template in editor
%      createCustomRobotSensorTemplate
%
%   See also robotics.SensorAdaptor.

%   Copyright 2022 The MathWorks, Inc.

% Read in template code. Use full path to avoid local versions
% of the file from being read.
    exampleFile = fullfile(toolboxdir("robotics"), "robotscenario", "+robotics",...
                           "+internal", "+scenario", "+sensor", "CustomSensorExample.m");
    shared_uav_rst.internal.copyCustomSensorTemplate(exampleFile);
end
