SimplyMaya Forums

Welcome to the forum, feel free to ask questions here.

Home / forum / Lounges / Maya Basics & Newbie Lounge / Rigging a robot arm
Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 27-12-2008, 11:55 AM   #1
bobsquish
Registered User
 
Join Date: Apr 2006
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default Rigging a robot arm

Im trying to rig a robotic arm and i want it to do a nukber of things.

1. Rotate around a pivot at the shoulder

2. Move away and towards the body using a telescopic-like joint.

3 use the same sort of joint to extend its arm forwards

Any help with this would be appreciated and also how i would easily return it to a default pose also.

I have included a diagram to show you what i want it to do.

Thanks, Ben
Attached Thumbnails
Click image for larger version

Name:	arm.jpg
Views:	852
Size:	28.7 KB
ID:	41116  
bobsquish is offline   Reply With Quote
Old 28-12-2008, 02:11 AM   #2
Chirone
Subscriber
 
Chirone's Avatar
 
Join Date: Dec 2007
Location: NZ
Posts: 3,125
Thanks: 11
Thanked 147 Times in 143 Posts
Default

make a skeleton, and parent the parts to the joints.
maybe you can do it in two joints

the first has the shoulder parented to it, that takes care of rotation
the second has some end of the extending part, that takes care of the extending

or you could do the extending part by set driven keys
__________________


that's a "Ch" pronounced as a "K"

Computer skills I should have:
Objective C, C#, Java, MEL. Python, C++, XML, JavaScript, XSLT, HTML, SQL, CSS, FXScript, Clips, SOAR, ActionScript, OpenGL, DirectX
Maya, XSI, Photoshop, AfterEffects, Motion, Illustrator, Flash, Swift3D

Last edited by Chirone : 28-12-2008 at 02:15 AM.
Chirone is offline   Reply With Quote
Old 28-12-2008, 09:44 AM   #3
bobsquish
Registered User
 
Join Date: Apr 2006
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I understand using joints for extending one part but how would i make the arm parts extend in a telescopic way?

if its using set driven keys can you please explain this?

Thanks,
Ben
bobsquish is offline   Reply With Quote
Old 28-12-2008, 01:45 PM   #4
halfloaf
Lifetime Member
 
halfloaf's Avatar
 
Join Date: Mar 2008
Location: Bristol, UK.
Posts: 187
Thanks: 3
Thanked 11 Times in 10 Posts
Post SDK

Check out these two 'Set driven Keys' tutorials by Kevin.

SDK1

SDK2

They should provide a good start!

-Jacques

EDIT

This is what I'd do for the extensions...

Parent the bits:

Parent the hand to the forearm, the forearm to the upper arm, the upper arm to the shoulder.

Add attribute:

Depends how much flexibility you want here, but I'll keep it simple'ish.

Select the shoulder, go to "Modify->Add attribute"

In the window, name the attribute something like 'Extension', start value 0, end value 20...You'll see where I'm going with this...'Data type' ->Float

You'll see that the shoulder now has an added attribute on the bottom of the list in Channel Box.

Now, make sure the arm is in the closed position (non-extended), make sure your Extension value is set to '0'.

Go to Animate->Set Driven Key->Set [] (click on the box or tear off the menu)

Load the shoulder as the driver and the upper arm as the driven. In the driver keyable attribute window you will see the 'Extension' attribute, click on it. Highlight all the translate attributes in the driven menu. Click on 'Key'

This tells the Expression attribute that at value 0 those translate attributes values are as you intend for the upper arm to be...

Next, move the upper to the extents of it's extension, and set the Extension value to 10. Click on 'Key' in the Set driven Keys window.

Now do the same for the lower arm, you're value at the end of extension should be 20. Now as you change the value of 'Extension in the Channel Box your arm should extend...!

(Hopefully I got all this right...Doing it from memory!)

You could add an attribute to each arm section say; Upper_Ext, start 0 - End 10. Lower_Ext...etc.

-Jacques.

Last edited by halfloaf : 28-12-2008 at 02:06 PM.
halfloaf is offline   Reply With Quote
Old 28-12-2008, 05:55 PM   #5
bobsquish
Registered User
 
Join Date: Apr 2006
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default

okay, so ive used the set driven key to do the extension and that works brilliantly, however, when i rotate the shoulder the arm parts dont follow but instead move to wierd angles. Any idea?

thanks,
Ben
bobsquish is offline   Reply With Quote
Old 28-12-2008, 06:11 PM   #6
halfloaf
Lifetime Member
 
halfloaf's Avatar
 
Join Date: Mar 2008
Location: Bristol, UK.
Posts: 187
Thanks: 3
Thanked 11 Times in 10 Posts
Default Parenting...

Did you parent the parts as suggested toward the beginning of my reply? If yes, you shouldn't have a problem.

-Jacques
halfloaf is offline   Reply With Quote
Old 28-12-2008, 06:13 PM   #7
Chirone
Subscriber
 
Chirone's Avatar
 
Join Date: Dec 2007
Location: NZ
Posts: 3,125
Thanks: 11
Thanked 147 Times in 143 Posts
Default

this is most likely to do with the heirarchy that's attached to the shoulder joint

how are the other parts (the telescoping parts) joints to the shoulder?
if they are parented to the shoulder it should be no problem

you may have to do a freeze transformations on them as well

Modify > Freeze Transformations
__________________


that's a "Ch" pronounced as a "K"

Computer skills I should have:
Objective C, C#, Java, MEL. Python, C++, XML, JavaScript, XSLT, HTML, SQL, CSS, FXScript, Clips, SOAR, ActionScript, OpenGL, DirectX
Maya, XSI, Photoshop, AfterEffects, Motion, Illustrator, Flash, Swift3D
Chirone is offline   Reply With Quote
Old 28-12-2008, 06:26 PM   #8
bobsquish
Registered User
 
Join Date: Apr 2006
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have parented them, do i need to freeze tramsformations before i set driven keys?
bobsquish is offline   Reply With Quote
Old 28-12-2008, 06:29 PM   #9
Chirone
Subscriber
 
Chirone's Avatar
 
Join Date: Dec 2007
Location: NZ
Posts: 3,125
Thanks: 11
Thanked 147 Times in 143 Posts
Default

probably,
do a freeze transformations on the parts now anyway

if it still doesn't fix the problem you'll have to kill the set driven keys and do it again after you've done freeze transformations
__________________


that's a "Ch" pronounced as a "K"

Computer skills I should have:
Objective C, C#, Java, MEL. Python, C++, XML, JavaScript, XSLT, HTML, SQL, CSS, FXScript, Clips, SOAR, ActionScript, OpenGL, DirectX
Maya, XSI, Photoshop, AfterEffects, Motion, Illustrator, Flash, Swift3D
Chirone is offline   Reply With Quote
Old 28-12-2008, 06:34 PM   #10
bobsquish
Registered User
 
Join Date: Apr 2006
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default

ok - it wont let me do one now - to kill the set driven keys do i just delete the attribute in the channel box?
bobsquish is offline   Reply With Quote
Old 28-12-2008, 07:58 PM   #11
bobsquish
Registered User
 
Join Date: Apr 2006
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default

okay the extension works fine and i can rotate the arm but when i extend it when the arm is rotated say, pointing to the ground the extension still moves the parts along the x axis.

any way to make them extend downwards?
bobsquish is offline   Reply With Quote
Old 30-12-2008, 08:00 AM   #12
halfloaf
Lifetime Member
 
halfloaf's Avatar
 
Join Date: Mar 2008
Location: Bristol, UK.
Posts: 187
Thanks: 3
Thanked 11 Times in 10 Posts
Post

If you parented the parts together and set driven keys for all the translate values you shouldn't have a problem. The parenting takes care of the rotation as well. Remember when you parent to make sure you select the 'child' first, then the 'parent'.

If you want to you could attach the .ma file.

-Jacques
halfloaf is offline   Reply With Quote
Old 30-12-2008, 09:29 AM   #13
bobsquish
Registered User
 
Join Date: Apr 2006
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I think im probably going wrong with the parenting- i tried prenting in two ways, firstly by selecting the shoulder then the upper arm and parenting then the upper arm then the lower arm then parenting ect.

I also tried selecting the hand then the lower arm then parenting and then selecting the lower arm then the upper arm and arenting. But neither worked.

What am i doing wrong?
bobsquish is offline   Reply With Quote
Old 30-12-2008, 10:04 AM   #14
Chirone
Subscriber
 
Chirone's Avatar
 
Join Date: Dec 2007
Location: NZ
Posts: 3,125
Thanks: 11
Thanked 147 Times in 143 Posts
Default

maybe it's your parenting? show us a screen shot of your hypergraph or outliner (although i dont think this would have an effect?)

did you try starting again?
parenting before you use set driven keys?
to delete them
select the arm and from the hypergraph click the Input and output connections button
it's the little button at the top that has a little yellow box connected to two grey boxes
it will bring up your set driven keys (i think that's what they are that you see)

it may or may not help but hit Ctrl+Shift+D, go Edit > Delete by type > History on all the blocks that make up the arm
and remember to use freeze transformations too
__________________


that's a "Ch" pronounced as a "K"

Computer skills I should have:
Objective C, C#, Java, MEL. Python, C++, XML, JavaScript, XSLT, HTML, SQL, CSS, FXScript, Clips, SOAR, ActionScript, OpenGL, DirectX
Maya, XSI, Photoshop, AfterEffects, Motion, Illustrator, Flash, Swift3D
Chirone is offline   Reply With Quote
Old 03-01-2009, 02:40 AM   #15
bobsquish
Registered User
 
Join Date: Apr 2006
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ive tried the set driven keys process on other objects and i still have the same problem so i think its probably me doing something wrong with the parenting or something - can someone please run me through the process please? thanks for all your help,
Ben
bobsquish is offline   Reply With Quote
New Thread

« Previous Thread | Next Thread »

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

1 Month

$34

Month-to-month billing
$34/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
 
 

3 months

$87

Billing every 3 months
$29/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $5 per month or $15 in total compared to monthly billing with this package.

12 months

$288

Billing every 12 months
$24/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $10 per month or $120 in total compared to monthly billing with this package.

Your plan will automatically renew. You can cancel at any time via your PayPal account to avoid being charged again.

You can view the FAQ on our video plans here. You can contact us directly here. By clicking one of the buttons above, you agree to our Terms and Privacy Policy.