Robots in Architecture Forum

KUKA|prc - parametric robot control for Grasshopper => Support => Topic started by: kratzsci on May 05, 2021, 09:55:20 PM

Title: Tool tip orientation
Post by: kratzsci on May 05, 2021, 09:55:20 PM
Good afternoon,

I'm currently trying to get my KR 3 R540 with KR C4 compact to touch multiple sides of a cube. I'm doing this with a cylindrical tool and I need the tool to be flush with the side it's trying to reach. I've been able to get it to work with a single side by changing the tool axis rotation to -90 degrees in the custom tool block. I'm not sure how I can continue changing this without creating multiple separate programs. Does anyone have any suggestions on how I can change the angle of my tool tip throughout a single program?

Thanks for the help!
Title: Re: Tool tip orientation
Post by: Johannes @ Robots in Architecture on May 06, 2021, 09:25:51 AM
Hello,
Are you looking to do something like this?
The orientation of the tool depends on the orientation of the coordinate system (in Grasshopper: "Plane"). In my example, the orientation is set based on the parametrization of a NURBS surface.
Best,
Johannes
Title: Re: Tool tip orientation
Post by: kratzsci on May 06, 2021, 02:53:31 PM
That is precisely what I'm trying to do! How did you make this work without setting the "Orient Point" for the "Orient Plane" block. When I try to recreate your program for my own program, I get an error when I leave the "Orient Point" blank.
Title: Re: Tool tip orientation
Post by: Johannes @ Robots in Architecture on May 07, 2021, 08:36:02 AM
Hello,
If you put your mouse over the "Orient Point" input the tooltip will tell you "One locally defined value...".
I just set the point by right-clicking the input and choosing "Set one point". You then need to decide in the Rhino command line between referencing an existing point or setting a new coordinate.
You can embed referenced data in input by right-clicking and "Internalize". "Extract parameter" instead makes a separate node with your point component, in that example.
Best,
Johannes
Title: Re: Tool tip orientation
Post by: kratzsci on May 10, 2021, 03:55:27 PM
Thank you so much for all your help Johannes, I greatly appreciate it!!!