grasp
All Data Structures Namespaces Functions Modules
drawResults.m
1 function drawResults(joints, ee, axisangle, center, c1, c2, c3, n1, n2, n3, hand, xdhat, odhat, cloud)
2 
3 contactPoints=[c1' c2' c3'];
4 normals=[n1' n2' n3'];
5 
6 x=[joints ee(1:3) axisangle];
7 
8 drawResultsiCub(hand,x,center,contactPoints,normals,'');
9 
10 for i=1:size(cloud,1)
11  h=plot3(cloud(i,1),cloud(i,2),cloud(i,3),'*');
12  set(h,'color',[cloud(i,4)/255 cloud(i,5)/255 cloud(i,6)/255]);
13 end
14 axis equal;
15 
16 x1=[joints xdhat odhat];
17 drawResultsiCub(hand,x1,center,contactPoints,normals,'');
18 
19 for i=1:size(cloud,1)
20  h=plot3(cloud(i,1),cloud(i,2),cloud(i,3),'*');
21  set(h,'color',[cloud(i,4)/255 cloud(i,5)/255 cloud(i,6)/255]);
22 end
23 axis equal;