Robots in Architecture Forum

Robots in Architecture, Art, and Design => General Discussion => Topic started by: happytriger2000 on September 14, 2014, 05:36:30 PM

Title: Brick laying
Post by: happytriger2000 on September 14, 2014, 05:36:30 PM
Hello Johannes,
                          Can I use Kuka PRC for Brick laying? I might try this first with Fablab Taiwan sometime soon.
If so, I will join member asap.



Title: Re: Brick laying
Post by: Johannes @ Robots in Architecture on September 14, 2014, 07:45:12 PM
Hello,

Well, brick-laying is basically just pick-and-place, an example for pick-and-placing is here: http://forum.robotsinarchitecture.org/index.php/topic,3.0.html
The member versions contain separate components to actuate the digital outputs, though you can just enter the relevant code into the Generic KRL component of the free version (e.g. $OUT[4]=TRUE to set the gripper that is connect to output 4 to true).
Of course, you still have to define the position of the bricks, which can be quite elaborate, e.g. if you want to ensure that it's as stable as possible.

So from the robot side no problem at all once you've defined where you actually want to place your bricks!
Best,
Johannes @ Robots in Architecture
Title: Re: Brick laying
Post by: happytriger2000 on September 15, 2014, 04:38:38 AM
I'll go ahead with the membership.
Title: Re: Brick laying
Post by: Johannes @ Robots in Architecture on September 15, 2014, 10:35:25 AM
Hello,

You can also prototype it with the free version, the member version is quite a bit faster and supports external axes, among other "member" features. But a proof of concept can definitely be done with the free version as well.
Of course we'd like to have you as a member of the Association, though - there just shouldn't be any pressure ;)

Best,
Johannes @ Robots in Architecture
Title: Re: Brick laying
Post by: happytriger2000 on October 13, 2014, 04:18:59 PM
I have changed the robot from Agilus to KR-125-2 in "pickandplace.zip",  how do I change the current tool to my own tool? see pickandplace-gripper.jpg.
Title: Re: Brick laying
Post by: Johannes @ Robots in Architecture on October 13, 2014, 04:28:20 PM
I believe the pick and place example already uses the Custom Tool component, so just plug in your tool geometry as a single mesh (i.e. mesh it, join it, and ideally use ReduceMesh to reduce its size = increase the performance). Then double-click (or right-click) the component to get into the settings and enter the according XYZABC values. If you've already calibrated the tool at the robot then you can take these values, otherwise take a look at the explanatory graphic near the XYZABC values, i.e. with Z+ direction being the normal of the flange, and X+ pointing downwards.

Best,
Johannes @ Robots in Architecture
Title: Re: Brick laying
Post by: happytriger2000 on October 14, 2014, 06:29:50 AM
Instead of "pickandplace" I  went for "02_PRCIntro_AxisMovement in TutorialIntro" is much easier.
I imported a gripper:
(http://i1220.photobucket.com/albums/dd459/happytriger2000/Forum/PRC/importgripper.jpg) (http://s1220.photobucket.com/user/happytriger2000/media/Forum/PRC/importgripper.jpg.html)

After importing the gripper select all gripper-->type "join" so the gripper is one piece mesh---> then on Gh--->right click "mesh" -->set one mesh:
(http://i1220.photobucket.com/albums/dd459/happytriger2000/Forum/PRC/importgripper-2.jpg) (http://s1220.photobucket.com/user/happytriger2000/media/Forum/PRC/importgripper-2.jpg.html)

The gripper at this point is still not joined to the robot, how do I join them?

thx,
Title: Re: Brick laying
Post by: happytriger2000 on October 14, 2014, 08:02:08 AM
Ok, by entering the values of XYZABC I can see the grey gripper movement.
Currently the X =1800, Z-1500 showing in the 1st picture below:
(http://i1220.photobucket.com/albums/dd459/happytriger2000/Forum/PRC/importgripper-3.jpg) (http://s1220.photobucket.com/user/happytriger2000/media/Forum/PRC/importgripper-3.jpg.html)


at 1st when X=0 y=0 z=0 a=0 B=0 c=0 the gripper is located somewhere far from the robot with the gripper tips pointing upwards see picture :
(http://i1220.photobucket.com/albums/dd459/happytriger2000/Forum/PRC/importgripper-4.jpg) (http://s1220.photobucket.com/user/happytriger2000/media/Forum/PRC/importgripper-4.jpg.html)


Title: Re: Brick laying
Post by: happytriger2000 on October 14, 2014, 08:11:45 AM
Ok, figured it out:
X=-1910 and Z=-1620, B=90
(http://i1220.photobucket.com/albums/dd459/happytriger2000/Forum/PRC/importgripper-5.jpg) (http://s1220.photobucket.com/user/happytriger2000/media/Forum/PRC/importgripper-5.jpg.html)
Title: Re: Brick laying
Post by: Johannes @ Robots in Architecture on October 14, 2014, 09:16:13 AM
Hello,

Glad you figured it out! When you posted it was very early morning here, so I didn't see the posts until now.
I'll get back to your eMail in a few minutes!

Best,
Johannes @ Robots in Architecture
Title: Re: Brick laying
Post by: happytriger2000 on October 14, 2014, 09:46:08 AM
Hello Johannes,
                          I have filled the form for membership, I need to test external axis soon.
Title: Re: Brick laying
Post by: happytriger2000 on October 17, 2014, 11:59:12 AM
For the "pickandplace" I'm using KRC1 for this test, do I need a post for KRC1?
Title: Re: Brick laying
Post by: Johannes @ Robots in Architecture on October 17, 2014, 12:51:49 PM
Hello,

No special postprocessor is needed, as KUKA didn't change the basic functionality much. You will most likely have to enable the "KRC2 compatibility" option in the output settings. Depending how old the KRC1 is it may require more changes to the header, please get back to us in the forum if it worked.
Ah, and advanced functions such as Spline movements won't work - I'd stay with LINear and PTP movements.

Best,
Johannes @ Robots in Architecture
Title: Re: Brick laying
Post by: happytriger2000 on October 18, 2014, 05:22:53 AM
1st: I move the robot 50mm above the brick then check the XYZ in KCP:
(http://i1220.photobucket.com/albums/dd459/happytriger2000/Forum/PRC/bricks/IMG_7520.jpg) (http://s1220.photobucket.com/user/happytriger2000/media/Forum/PRC/bricks/IMG_7520.jpg.html)
X=1557.73
Y=-451.537
Z=600.46
(http://i1220.photobucket.com/albums/dd459/happytriger2000/Forum/PRC/bricks/IMG_7521.jpg) (http://s1220.photobucket.com/user/happytriger2000/media/Forum/PRC/bricks/IMG_7521.jpg.html)
then enter those number in to PRC's setting in BASE.
Generate SRC, then load it to KRC1.



The result was "software limit A5 out of range"
(http://i1220.photobucket.com/albums/dd459/happytriger2000/Forum/PRC/bricks/213b3954-920e-454a-91fc-9f74b97e9418.jpg) (http://s1220.photobucket.com/user/happytriger2000/media/Forum/PRC/bricks/213b3954-920e-454a-91fc-9f74b97e9418.jpg.html)
Title: Re: Brick laying
Post by: Johannes @ Robots in Architecture on October 18, 2014, 08:41:18 AM
Hello Freddy,

In that case I'm 99.9% sure that the problem is with the tool and/or base calibration.
Do not just read the tool position of the robot and use its XYZABC values for the base, but do it the regular way via Calibrate/Base/3 Points, where you define the base with one point in the origin, one point in X-direction, and one point on the resulting XY plane.
Another thing to take care is the tool orientation, in your case it will be something like X = 350 (the length of the gripper), Y=0, Z=0, A=0, B=-90 (as it is oriented normal to the flange), C=0.
Again I have to emphasis that the XYZABC values have to be the same on the robot and in the simulation in order to get a meaningful simulation out of it. An even more important the base and tool numbers!

Best,
Johannes @ Robots in Architecture
Title: Re: Brick laying
Post by: happytriger2000 on October 18, 2014, 09:50:30 AM
I think I'm used to Mastercam Tool and base setups which is quite easy to do, no need for physical calibration.
Ok, so I have just created a base 2 in KRC1, using tool 2 (gripper).
(http://i1220.photobucket.com/albums/dd459/happytriger2000/Forum/PRC/bricks/c95ac7f9-e45e-43e4-969d-bb01d0f542c7.jpg) (http://s1220.photobucket.com/user/happytriger2000/media/Forum/PRC/bricks/c95ac7f9-e45e-43e4-969d-bb01d0f542c7.jpg.html)

Here is the problem when I enter those numbers of Base 2, X=1298.01, Y=2.73, Z=593.19, I get this:

(http://i1220.photobucket.com/albums/dd459/happytriger2000/Forum/PRC/bricks/Robotmovedbackwardawayfromtheorigin.jpg) (http://s1220.photobucket.com/user/happytriger2000/media/Forum/PRC/bricks/Robotmovedbackwardawayfromtheorigin.jpg.html)

A little note on how the Tool 2 was done:
(http://i1220.photobucket.com/albums/dd459/happytriger2000/Forum/PRC/bricks/IMG_7534.jpg) (http://s1220.photobucket.com/user/happytriger2000/media/Forum/PRC/bricks/IMG_7534.jpg.html)

(http://i1220.photobucket.com/albums/dd459/happytriger2000/Forum/PRC/bricks/IMG_7536.jpg) (http://s1220.photobucket.com/user/happytriger2000/media/Forum/PRC/bricks/IMG_7536.jpg.html)

Tool 2 was created  as shown above, my question is does the reference point has to be somewhere near the brick or near where the Base was created when creating tool 2??
Title: Re: Brick laying
Post by: happytriger2000 on October 19, 2014, 08:43:22 AM
After sending you an email I got it working  :)

will upload the video soon.


Title: Re: Brick laying
Post by: happytriger2000 on October 19, 2014, 03:35:17 PM
http://youtu.be/XQnhsgCrJmk
Title: Re: Brick laying
Post by: Johannes @ Robots in Architecture on October 19, 2014, 03:58:27 PM
Excellent, glad to hear that it's working!

Best,
Johannes @ Robots in Architecture