-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathstartupExample.m
34 lines (28 loc) · 1.1 KB
/
startupExample.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
%% Robot Manipulator Control Example
% Copyright 2017-2019 The MathWorks, Inc.
% NOTE: This submission requires files from the following Git repository:
% https://github.com/ROBOTIS-GIT/open_manipulator
% This startup script adds the necessary folders to the MATLAB path.
% If Git installed on your computer, this script will clone the necessary
% repository and create the necessary urdf file. Otherwise, download the
% necessary files, place them on the MATLAB path, and run this script.
% Find relevant models and scripts and the corresponding directories
% See Readme file for detailed model and script information
clear
clc
addpath(genpath(pwd));
% Set the simulation cache folder to a work folder
if ~isfolder('work')
mkdir('work')
end
Simulink.fileGenControl('set','CacheFolder','work')
% Check dependencies and address them
if checkDependencies
edit('openManipulatorIK.m');
edit('InverseKinematics.mlx');
edit('Readme.md')
open_system('openManipulatorWaypointTracking')
open_system('openManipulatorBallTracking')
else
disp('Please make sure all dependencies are on the MATLAB path');
end