Robots in Architecture Forum

KUKA|prc - parametric robot control for Grasshopper => Support => Topic started by: GammaNYC on September 10, 2018, 09:17:52 PM

Title: Collision and Unreachable Position Detection
Post by: GammaNYC on September 10, 2018, 09:17:52 PM
Hello,

I am attempting to extract the collision/unreachability state of my simulation by looking at the analysis values under the "COLLISION" and "REACHABILITY" outputs, however, there seem to be moments where the path created is unreachable and those outputs still give me a value of 0 on all positions (when they are supposed to give me a value of 1 when a problem is detected).

The simulation still changes the axis to a red color during those moments, but the PRC engine stays gray (meaning everything is fine).

What am I missing?
Is there another output I can monitor to catch these exceptions?

Thanks
Title: Re: Collision and Unreachable Position Detection
Post by: singline on September 11, 2018, 09:55:19 AM
Can you post the gh file?
Title: Re: Collision and Unreachable Position Detection
Post by: Johannes @ Robots in Architecture on September 11, 2018, 04:27:58 PM
Hello,

My guess would be that the unreachable collision occurs in-between two movements. If you disabled it, make sure to enable the Interpolate Toolpath option in the Advanced Settings, and if it's on, try changing it to a lower value like 1mm.

Also, you get the collision value for each joint, so consider using Mass Addition to sum them up!

Hope that helps!
Best,
Johannes
Title: Re: Collision and Unreachable Position Detection
Post by: GammaNYC on September 11, 2018, 06:31:00 PM
I have interpolation enabled at 1mm resolution (which slows GH wayyyy down), but even then I can't get it to output the correct numbers.
Here's a screenshot of the unreachable path. Even though the simulation shows that one of the axis is unable to reach (hence it turns red) the analysis output does not reflect it.

@singline: cant post the gh file because it uses a lot of custom coded component for which i cant provide the DLLs for.

Title: Re: Collision and Unreachable Position Detection
Post by: Johannes @ Robots in Architecture on September 13, 2018, 12:00:55 PM
Hello,

Can you maybe internalize the plane input? That way it's static geometry and we don't need the custom DLLs.

Best,
Johannes