Skip to content

Commit c2a44b8

Browse files
authored
Merge pull request #85 from OSU-LRAM/Ross
Upgraded granular system to support illustrate shape space
2 parents d18d9d7 + 7d25c85 commit c2a44b8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

UserFiles/GenericUser/Systems/sysf_three_link_granular.m

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,17 @@
7474
s.geometry.linklengths = [1 1 1];
7575
s.geometry.baseframe = 'center';
7676
s.geometry.length = 1;
77+
78+
% Define properties for visualizing the system
79+
80+
% Make a grid of values at which to visualize the system in
81+
% illustrate_shapespace. The code below uses properties of cell
82+
% arrays to automatically match the dimensionality of the grid
83+
% with the number of shape basis functions in use
84+
s.visual.grid = cell(numel(s.geometry.linklengths)-1,1);
85+
[s.visual.grid{:}] = ndgrid([-1 0 1]);
86+
87+
7788

7889
% power metric
7990
%s.metric = eye(2); %@(x,y) Granular_metric_calc(x,y,Metric_Tensor_raw,alpha1,alpha2);

0 commit comments

Comments
 (0)