Robot Surface Normals Rotation

Hello All!

I am working on a weaving operation with a robotic arm.

I am trying to make the tool follow a path perpendicular to the normals of the curve. But for some reason I am having some trouble rotating the normal which I think is my issue. If I am not wrong the normals projected from the surface to the crv should follow a similar logic as the highlighted in green from the screen shot. and rotate on their x axis.

If there is anymore out there that would take a look and share some thoughts I will appreciate.


MainRoomSetup_ABB2600-WeavingTool.3dm (8.9 MB)

The Rotate Plane component rotates around the plane z-axis:

Also note that you are inputting a plane to the Angle (A) input. It expects an an angle in radians. You can use degrees by right-clicking on the input and selecting degrees.

If you want to rotate your plane on it’s x-axis, here’s one way:

-Kevin

1 Like

Hi Kevin!

Thank you!
I tried rotating but it does not do the trick just yet (all planes rotate to different angles based on the curve direction). It could be that the crv is running in two directions?
So the robot simulation spits an error and I believe part of it is that it does not reach the angles.
I had an earlier version that was based on projected normals but would give me the same error. Its probably an easy fix I just can’t see it.


Surface normals Test 2.gh (47.5 KB)
MainRoomSetup_ABB2600-WeavingTool.3dm (8.9 MB)

Update !
So got a way to properly align the planes to what it seems the right direction. However, the robot arm keeps giving an error and is not following the proper path.

Anyone out there with digital fabrication experience that printed on top of a complex surface?

2022-04-06_MainRoomSetup_ABB2600-WeavingTool.3dm (9.1 MB)
2022-04-06_MainRoomSetup_PiLab_ABB2600-WeavingTool-Updated.gh (51.8 KB)

you need to also share your robot configuration files (xml and 3dm), or tell us which library to use (pi-fab = pratt??), otherwise no one else can simulate and see your issue

1 Like

Hi, sorry I didnt share this before.

Please see them attached here.

image
PiFAB.3dm (6.4 MB)
PiFAB.xml (2.2 KB)

you need to change the orientations of the bottom planes, looking at the simulation, you’re telling the robot to reach that target from bottom, but what you want is probably to reach that target from the side?
also your file name is an invalid format . is not a good character to use in the file name

@aroncal
moved your targets 20cm closer to the robot and made some changes to the target and tool orientations, working now
changes grouped in red


2022-04-06_MainRoomSetup_PiLab_ABB2600-WeavingTool-Updated.gh (43.9 KB)

1 Like

This is very helpful,
Thank you for taking the time, I really appreciate it!
Ill more digging on planes and normals. lots to learn.
Thank you again!