forked from martinajingyixu/non-planar-surface-contact
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.m
31 lines (24 loc) · 756 Bytes
/
example.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
%% example for FEM simulations
% exampleFEMSimulation
%% Example code to model non-planar surface contacts and its application in grasping.
% The pipeline includes:
% 1. Contact profile
% 2. Friction computation
% 3. Fit limit surfaces
% 4. Multi-contacts and applications in grasping
% add paths
addpath(genpath('createParametricSurface'));
addpath(genpath('fitLimitSurface'));
addpath(genpath('frictionComputation'));
addpath(genpath('IO'));
%% Step 1-3
config.ifVisualize = 0;
% examle for a meshed surface
exampleMeshedSurface;
% example for a parametric surface
% exampleParametricSurface
% example for a contact from FEM simulation
% exampleFEM
%% Step 4: Example for multi contacts
addpath(genpath('multiContact'));
exampleMultiContact;