
Mickey666Maus
Germany
Asked
— Edited

Hey there, I just got my ez-robot developers kit today and would to like starting on my project which involves building a robot in a 3d application, printing it and transferring the robots movement out for the 3d application directly!
So my question would be if there is anyone out here in the forum who ever did this, or someone having used max script and could help me to send rotation values in the right form out of 3ds max to the ARC s http server!
It would be supercool if there is someone knowing how to do this, I am kind of lost when it comes to scripting!
XXXSwann
The benefit to talking directly to the ezb bypasses the software etc but doesn't sound like what you need.
I'm not sure yet how we can make the movements recorded in ARC just yet.
So what I would like to do is to build a rig in 3ds max that will control the robot model and by directly sending all the changes out of 3ds max to the servos you would instantly get a result in real time!
After the animation is done it could be exported in a proper file format to be imported into the Auto Position in ARC and the different animations created could be used for Actions which then would work inside of the ARC!
Autodesk offers a free three years student licence to anyone wanting to learn the application, which makes it sort of interesting for the community too!
To do this, I would suspect that you would have to
Use a 3DS api to output the data from 3DS to a custom developed app which uses the ezb sdk to then move the robot via the ezb. From there, you would transform these commands to ARC compatible commands to populate the auto movement control.
Nobody has developed this but you can add plugins to ARC.
Universal bot may be the better tool to use instead of the sdk, but IDK.
If you dont write code, IDK for sure how you would accomplish this. It looks like DJ is providing help to you on that front.
The code the DJ Sures found works fine so far, but as I am so bad at scripting I would need help on how incorporate a changing value into this line of code!
So if I had a changing rotation value which might also be something like 20.123 how would I make this an even number and fuse it into the fixed number within this line of code!
httpSock.port.open"GET""http://192.168.0.1/Execpassword=admin&script=Servo(D6, 20)" false;
So the angle of the servo should be replaced by a variable!
This might be a very NOOB question, but any help on this would be appreciated!
;)
Hmm, well the decimal number is okay to pass to ARC. ARC.servo position will take decimal values.
As for the the variable... What do variables look like it 3dmax? Do they start with a $dollarsign and look like that?
No they dont...here is something about assigning variables in maxscript, does that help?
http://docs.autodesk.com/3DSMAX/14/ENU/MAXScript%20Help%202012/index.html?url=files/GUID-308EA213-59FA-4F1B-AF40-FC7E658F5DD-150.htm,topicNumber=d28e63734
Got it working...
a = "http://192.168.178.94/Exec?password=admin&script=Servo(D0, " b = $.rotation.z_rotation as string c = ")" d = a+b+c
/* Http socket open */ rollout httpSock "httpSock" width:0 height:0 ( activeXControl port "Microsoft.XMLHTTP" setupEvents:false releaseOnClose:false ); createDialog httpSock pos:[-100,-100]; destroyDialog httpSock;
/* HTTP socket connect */ httpSock.port.open "GET" d false;
httpSock.port.setrequestheader "If-Modified-Since" "Sat, 1 Jan 1900 00:00:00 GMT"; httpSock.port.send();
/* HTTP socket return */ print (httpSock.port.responsetext);
Hey guys....just got a reminder to check this as resolved which I will do now, thanks for helping me out on this on DJ Sures! I am still working on this, had some problems with local rotation values, I will post my script that I am working with right now which updates the rotation of two servos linked to an IK chain in 3dsmax real time! Next step will be to 3d print my robot and rig it in 3dsmax for the animation, once this is done it could be fun to see how to save those animations in ARC!
But that would be another thing, so this question seems to be solved...