- 04/03/2019 at 09:37 #12524
I’m trying to model some kind of Stewart platform. The closest I could find in the eCatalog were delta robots, for example Fanuc M-2iA_6HL and I’m trying to understand how the joints are defined for its moving platform which has 3DOF.
This robot has a moving platform that can jog in X, Y and Z direction, expressed by the component properties PX, PY and PZ. The Link element for the moving platform has a joint with JointType ‘Custom’. The joint property is set to ‘Tx(PX).Ty(PY).Tz(PZ)’. However, the only property that is defined here is PX and I have no idea, where PY and PZ are defined. In the Robot Controller settings of M-2iA_6HL it is possible to select as PX, PY, PZ (and J4) as joints, but I can’t find them anywhere in the geometry.
Can someone tell me how it is possible to create a single Joint that can move freely in 3DOF (or more) with one controller?004/03/2019 at 09:40 #12531
Try making a custom joint type and then write an expression to define its DOF.011/03/2019 at 12:34 #12772
Well, I can define the expression for the custom joints to be Tx(VALUE), Ty(VALUE) and Tz(VALUE). However, this requires me to create independent link elements for each of them and then cascade them in the Component Graph, because I can not assign more than one DOF to a link element. This won’t let me jog in all 3 directions like in the example though.
What I was referring to in the example is that there is a single link element with a joint named ‘PX’ which has the expression ‘Tx(PX).Ty(PY).Tz(PZ)’ and can jog in all 3 directions.
If I use the same expression, the following happens:
- First I get an error that the variables PY and PZ are not defined. To work around this, I can create the component properties PX, PY and PZ. What’s confusing is that these properties seem to exist in the M-2iA_6HL example as well, but are not visible and seemingly defined nowhere.
- It’s not possible to jog in any direction at all (It only works when I use the ‘VALUE’ parameter instead of fixed values like ‘PX’ in the expression).
- It is not possible to add PY and PZ joints to the robot controller as opposed to the example component.
And one more question: In PythonKinematics, how can I assign kinobj.Target to a specific frame?011/03/2019 at 16:29 #12821
Attached is an example of using jacobian object with Python Kinematics.
If you look under the hood of one of the scara type robots in eCat, you might see something like this where a matrix object is created, modified and then assigned to the kinobj.Target.Python123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960def OnInverse(kinobj):if FirstCall:OnFinalize()solutions = warning = VC_SOLUTION_REACHABLEpx = kinobj.Target.P.Xpy = kinobj.Target.P.Ypz = kinobj.Target.P.Zox = kinobj.Target.O.Xoy = kinobj.Target.O.Y# First we calculate the direction to the wrist centera13= atan2( py, px )*RAD_TO_DEGd13 = sqrt( px*px + py*py )if( d13 > LL1 + LL2 ):t1 = 0.0t2 = 180.0warning = VC_SOLUTION_UNREACHABLEelse:if( d13 < abs(LL1 - LL2) ):t1 = 180.0t2 = 0.0warning = VC_SOLUTION_UNREACHABLEelse:t1 = sssa( LL2, LL1, d13 )*RAD_TO_DEGt2 = sssa( d13, LL1, LL2 )*RAD_TO_DEG#end if#endifj3 = pz - ZeroHeightt4 = atan2(-ox, oy)*RAD_TO_DEGfor iconf in range(CONFIG_COUNT):if iconf == 1:sgn1 = -1else:sgn1 = 1#endifj1 = a13 + sgn1*t1j2 = sgn1*(t2-180.0)j4 = t4 - j1 - j2solutions.append( [ warning, GetMappedJoints( [j1,j2,j3,j4] ) ] )# end for NUM_CONFIGSkinobj.Solutions = solutionsreturn Truedef OnForward(kinobj):if FirstCall:OnFinalize()nominal = GetNominalJoints( kinobj.JointValues )m04 = vcMatrix.new()m04.rotateRelZ( nominal )m04.translateRel( LL1, 0.0, 0.0 )m04.rotateRelZ( nominal )m04.translateRel( LL2, 0.0, nominal+ZeroHeight )m04.rotateRelZ( nominal )#m04.rotateRelY( 180.0 )kinobj.Target = m04if kinobj.JointValues <= 0.0:kinobj.Configuration = GetConfigName(0)else:kinobj.Configuration = GetConfigName(1)return True
Attachments:You must be logged in to view attached files.1+11/03/2019 at 16:42 #12824
As for the expression, I don’t have a mechanics background, so best if someone else answers and has a good, clean equation.012/04/2019 at 09:52 #13547
Are you talking about this in the forward kinematics method?Python1kinobj.Target = m04
I was referring to the OnInverse(kinobj) method, where the target is given, and I want to calculate the joint values. However, when I try to extract coordinates from kinobj.Target like in the following, there are only empty values.Python12345px = kinobj.Target.P.Xpy = kinobj.Target.P.Ypz = kinobj.Target.P.Zox = kinobj.Target.O.Xoy = kinobj.Target.O.Y029/04/2019 at 08:16 #14008
Ok, I suppose that the OnForward() method is needed to provide kinobj.Target for OnInverse().
And I solved the joint problem by cascading 6 x 1 DOF joints like it is done in the Visual Components delta robot. I still don’t understand how the Fanuc robot works, but at least my application is working now.0
You must be logged in to reply to this topic.