Exam 2 10-29-14 Answers updated

advertisement
ME192 Midterm Exam 2
October 29, 2014
Name ________Key ___________________________
12 1. In what sequence are
Score _____100_____
1 , 2 , 3 computed in the Pieper’s method?   3 , 2 ,1
Of the two special cases in the “r & z” equations below, which case is easier to solve and why?
The “z” equation is easier to solve because for the “r” equation introduces quadratic terms (which will
turn out to be 4th order polynomial equations, a messy undertaking.)
5
z  (k1s2  k2c2 )s1  k4
r  (k1c 2  k 2 s 2 )2a1  k 3
where,
k1  f1 , k 2   f 2 , k 3  f 12  f 22  f 32  a12  d 22  2d 2 f 3 , k4  c1 ( f 3  d 2 ) , and f1 , f 2 , f 3  f ( 3 )
In the case of six axis robots, the Z-Y-Z Euler angles may be used for solving the joint angles
 4 , 5 ,  6 between wrist and gripper. What must be known to be able to use the angle set solution?
3
The rotation matrix
3
6
R at the end effecter. Is it reasonable to assume that it is known? Elaborate.
Yes. The whole inverse kinematics solutions presented in the book are based on given
reasonable because when the gripper location is defined, the
controller. When
4
0
6
0
6
0
6
R which is
R can easily be extracted from the robot
R is extracted, and 1 ,  2 ,  3 are calculated, then 63 R can be determined.
No. The issue here is when
problem. In other words,
0
6
0
6
R is set, so are 1 ,  2 ,  3 and therefore there is no inverse kinematics
R cannot be given without setting 1 ,  2 ,  3 which is a forward kinematics.
In practice, a six axis robot controller will store a large number of the location transformations in the
work space and when an exact position is specified, the angle set solution can quickly be found
through a combination of position interpolation and forward kinematics calculations without having to
carry out inverse kinematics calculations.
2. The Pieper’s solution requires solving a series of quadratic equations substituting the transcendental
equations. State the most likely reason for the faults other than round-off errors that are often seen in
solving the quadratic solutions.
6
4
4
3
a. Division by zero in the denominator:
The variable substitutions, or a conversion “from θ to u” for quadratic solution, is not
applicable in the case.
b.
The quantity inside the radical in the quadratic solution is negative:
3
There is no solution. In other words, the position specified is unreachable.
4
4
6
4
4
4
4
4
4
4
4
4
6
4
4
4
4
4
4
12
4
3. In a 6-axis robot operation, an object is to be picked up with a fixed gripper angle and approach.
4
4
4
How many remaining joint angles require a non-trivial calculations?
Three (finding θ1 is trivial)
How many angle set solutions should normally be available?
Infinite number
If a five axis robot is used, how many angle set solutions are there?
Two
4
4
2.5
ea
When will a workspace-interior singularity occur on remaining angles? The links stretch out to end.
2 How many solutions are possible at a singularity point?
The answer is in the question.
12
4. An object is captured by a camera mounted on the Z axis of a SCARA robot. Given the below
notations for transformation, find the “XYZR” pick up position in the robot (base) frame based on the
“xyr” object position in the camera frame. The transformation vectors of the Z-axis and the camera
frame are stripped of the Z and rotation angle values. Assume that the inversions are readily available.
B
Z
T  (BTZ) Variable XY position of the Z-axis as the vision reference point – in the robot frame.
Z
C
T  (ZTC) Calibrated XY offset of the camera (0, 0) position, calibrated - in the Z-axis frame
T  (CTO) Variable xyr position of the object - in the camera frame
C
O
T  (ZTG) Calibrated or taught-once XYZR position offset of the gripper - in the Z-axis frame.
Z
G
Find the XY pickup location in the robot frame with the gripper at the center of the Z axis.
OBJ.LOC = [
3 ea
BTZ:ZTC:CTO ] or
T  BZ T ZCT COT
B
O
Find the XYZR pickup location in the robot frame with the gripper offset from the Z axis.
PICK.LOC = [
3 ea
B
Z
9
OBJ.LOC : GTZ
] or
T  OB T GZT 1
Z
5. Complete a V+ code for extracting GT by moving the gripper to a known object position BTO.
3 ea
B
Method 1 – Decompose OT obtained by moving the gripper to the sample position
HERE BTG
DECOMPOSE V[1] = BTO
SET ZTG = BTG : TRANS(-V[1], -V[2], -V[3], , , -V[6])
5
3 ea
Method 2 – Induce ZTG to take on a position relative to BTZ at the sample location.
4
HERE BTZ:ZTG.
3 ea
Once ZTG is found, set the future pickup position equal to BTO offset by ZTG.
SET PICK.LOC=BTO:ZTG
5
4
3 ea
4
6. In Lab 3 a square object is found by testing the existence of lines at the maximum edge distance
divided by 2 . What simple method should be employed to test for a general rectangular shape
instead of a square? Note: The lab used VFEATURE( ), VRULERI, VFIND.LINE for square test.
3 ea
4
3 ea
3 ea
Collect the minimum edge distance as well as the maximum edge distance. If the minimum value is
significantly less or greater than
18
4
3 ea
4
3 ea
4
3 ea
3 ea
1
(or 70%) of the maximum value, the object is a rectangle.
2
0
7. Given a RRR robot with the kinematics shown in Fig. 2 and P4Org
c1 (l 2 c 2  l3 c 23 ) 
  s1 (l 2 c 2  l3 c 23 )
 l 2 s 2  l3 s 23 
a. Fill in the second and the third rotation matrices for Joint 2. The second matrix represents a 90°
“between-frame” rotation about X.
3 ea
4
4
3 ea
3 ea
0
3
c1  s1 0 1 0 0  c2
R   s1 c1 0 0 0  1  s2
 0 0 1 0 1 0   0
 s2
c2
0
0 c3
0  s3
1  0
 s3 0 c1c23  c1s23 s1 
c3 0   s1c23  s1s23  c1 
0 1  s23
c23
0 
4
3 ea
3 ea
3
0
b. Find - 0 R P  when [θ1, θ2, θ3] = [0°, 30°, 60°], and [l1, l2, l3] = [0, 2, 1]
 0 0 1

3
0 0
0 R   1
 0  1 0
2 ea
4
4
3 ea
3 ea
 3
 
0
P 0 
2
 
0

3 0
0 R P  0
2

0 
0  2
0
P  2 0  3 
0
3
0 
3
2
0
0

0
3 
4
3 ea
3 ea
c. Complete the derivation of a 3x3 Jacobian matrix from 0 P4Org above for velocity transformation.
1.5 ea
4
4
3 ea
4
3 ea
3 ea
3 ea
17
 s1 (l 2 c2  l3 c23 )  c1 (l 2 s 2  l3 s 23 )  l3 c1 s 23 
0
J ( )   c1 (l 2 c2  l3 c23 )  s1 (l 2 s 2  l3 s 23 )  l3 s1 s 23 

0
l 2 c 2  l3 c 23
l3 c 23 
8. In Fig. 1 below, a position vector BP is stationary in frame {B}, but the frame is rotating about an
instantaneous axis K at the magnitude ω and in the direction implied in ΩB.
6
Find
r = _P(t)sinθ_____
α = __ωΔt_________ ΔP = ___ P(t)sinθ ωΔt_____________
17
Seen from {A}, the velocity of BP due to its frame {B} rotating at velocity ΩB, is given by
4
3
17
VP  A  B ( BAR) B P  ( BAR BP) A  B
A
17
In the equivalent axis of rotation involving axis K  K x
can be expressed as
 X
Y

Ky

K z and the velocity of angle θ, Ω

 Z   _ K x K y K z _ ω
K
α
r
ΔP
P(t)
θ
P(t+Δt)
Figure 1. Positions vector
velocity due to rotating axis
State the significance of skew symmetricity in cross-multiplied vectors as in   P   P   in light
of the convenience of vector or matrix representation and the computational efficiency.
4
17
9
4
17
17
We can convert a vector representing an angle-axis rotation into a matrix form or vice versa as needed
in setting up matrix transformation equations.
 A 
 B 
9. Convert the velocity transformation in terms of frame {A},  A A  , to frame {B},  B B  , by
 A 
 B 
multiplying out the RHS of the matrix equation and rearranging the terms back to a matrix form.
3 ea
``
 A A   BA R A PBOrg  BA R  B B   BA R B  B  APBOrg  BA R B  B 
A   
 B   

A
A B
BR
B R B
 A   0
 B  

B
B A
B A
A
B
B A
A
 B   A R  A  A R PBOrg  A   A R  A R PBOrg    A 
B   

 A 
B A
B
A R A
AR
 B  
 0
  A 
Figure 2. R-R-R Robot Kinematics
Y
(x,y,z)
z
θ3
L3
R
X
Z
L2
Y
θ2
Z
R
X
L1
0
R
y
r
θ1
x
(x , y, 0)
10. Extra Credit Take-Home Problem – PLC implementation of Single button ON/OFF Switch
Individual work. No collaboration. (Due 11/1/14)
With no or minimal use of delay timers, counters, Rising Edge/Falling Edge switches, or
SET/RESET relays, develop a one-button push-On, push-Off ladder logic program. The PLC
software and its simulator may be downloaded from the link below.
http://support.automationdirect.com/products/domore.html
Points assigned
12.5
10
7.5
5
0
15
No timers, counters, RE/FE switches, or SET/RESET outputs are used.
Only provision is used.
Two provisions are used.
A “freak” PLC circuit that works, but cannot logically be explained.
The program is not tested or non-functional.
A break through with a rung count of three or less and with a switch debouncing.
Notes:
There is no limit to the number of rungs in the program.
The output may be turned on/off at the rising or falling edge of the switch or with a delay.
A single button ON/OFF switch normally requires a debouncing circuit to work reliabily.
Download