Grasp Action Wizard (Professional)

With the following wizard it is possible to add grasping and releasing functionality (like in robots) to any component. Useful when grasping of components is needed with very simple actuators or devices e.g. ones made by utilizing IO Wizard without connecting to a robot.

Same properties as in a robot (+ TCP/Detection Frame location) are added to the component on a GraspAction tab.

Requires access to Modelling tab (Professional or Premium)

Usage

Connect and send True signal to GraspSignal for grasping and False for releasing. Check TCPFrameLocation and DetectionVolumeSize if components are not picked up. Grasped components are attached (and following) the Node/Link given when applying the wizard.

Installation

Like usual: Just unzip the file to your “My Commands” and re-launch. E.g C:\Users%username%\Documents\Visual Components\4.1\My Commands

Enjoy!

 

EDIT (9/8/2022): Fixed release to world bug in 4.5
EDIT (10/8/2020): Fixed release with multigrasping
EDIT (27/1/2020): Fixed releasing to physics

GraspActionWizard_220809.zip (4.5 KB)

5 Likes

这个附加组件非常有用,感谢分享

Hallo jouha

I have some probelm to grasp by using grasp action wizard.

can you have some explain the TCPFrameLocation how to choose it?

I uploaded file to the forum , could you help me to find mistake?

thanks a lot

problem-to-realise-Grasp-Action-Wizard-527-.vcmx (3.63 MB)

Hi Frank,

It is used for detecting components while grasping and is working exactly the same as robot Grasp/Release Action Signals. When GraspSignal is sent, an invisible “DetectionVolume” is created around the TCPframe and is used for detecting collisions with other components. Collision test results are used to identify component(s) (if any) for grasping.

In this case the orientation of the frame is usually not so interesting, only the location.

Hopefully this clarifies the operation!

That’s helps me a lot. Thanks.

Nice, thanks!

I think you have missed to define the setPhysics function in the GraspActionScript, atleast for me the function was missing, it is easy to fix, but I just thought you should know.

Thanks for a great wizard!! :slight_smile:

 

Hi @autohenrik

Thanks for the tip!

It’s now fixed :slight_smile:

Sweet addon jouha!

-Este

1 Like

Hello @jouha ,

thanks a lot for the add-on. It was really helpful.

I have one short issue. I am working with Works Process and I have found that your grasp action wizard is not working when I “Attach” the Works Process to other component. It works only when I “Detach” it.

Could you please let me know if I am doing any mistake here? I have to make the Works Process attached to another link to have clear movements for the entire process in a work station.

Regards.

Hi @davinci ,

How is it not working? It doesn’t grasp or doesn’t release?
Is the grasped component released (attached) to a wrong node?
Something else?

Hello @jouha ,

when the Works Process is attached, both grasping and releasing is not working. I tried the same setup but with ‘Detach’ the Works Process, then both grasp and release is working as usual.

Here you can see my small demo layout. Initially it is attached to Block Geo, so grasp is not working. If you detach the workprocess, then it will work.

Grasping Product with own Geometry.vcmx (575.2 KB)

Hi @davinci ,

This happens because the component (and all in its hierarchy) where the graspaction is, are excluded from the grasping/releasing detection. The intention is to prevent it from picking/detecting itself.

You can fix this by replacing VC_NODELIST_TREE with VC_NODELIST_COMPONENT on lines 213 and 220 in the GraspActionScript, see below:

1 Like

Hello @jouha ,

it works. Thanks a lot! :smiley:

Hi johua, Nice! I have played with this script a bit and I am trying to control the “GraspSignal” by using the “Write Signal” Works Process task instead of the WP “SensorBooleanSignal”. Is this possible somehow? I am already using the SensorBooleanSignal elsewhere. Thanks!

You can send a signal directly to your “gripper” by:
WriteSignal:GripperComponent:GraspSignal:True

Where “GripperComponent” is the name of the component that has the “GraspSignal”.

To learn more see:
https://forum.visualcomponents.com/t/works-library-tasks-reference-guide/

1 Like

Thanks for sharing such add-on! But I’m meeting trouble using it for modeling a gripper.
I need a gripper attached to a 3 axies moving feeder, and I just finished the feeder moving part. Before using this add-on, I tried End Effector Wizard, similar to modeling a basic gripper for a robot just like in the official tutorial. But it works only when plug the gripper onto a robot.
Then I tried this add-on, as in the screenshot, MyGripper: Action ‘Grasp’ executed (Ok), but gripper does not move close to grasp.
Am I using the wizard wrong? How can I make it work correctly? Thanks!


Grasp Action Wizard doesnt make gripper grasp.vcmx (2.5 MB)

Grasp Action Wizard doesnt make gripper grasp.vcmx (2.4 MB)

Thanks for helping! But I opened the vcmx file you provided, the program in robot is empty, and I can’t find any program. Clicking play button does not make those parts move like in the video you mentioned.
What’s wrong? Looking forward your reply.
PS I’m using Premium version 4.1.

*Just program it like a normal robot