KinematicGripper
Turns a selectable 3D object into a gripper, which fixes any dynamic object which touches the gripper and changes its Rigid Body Behavior
to kinematic and back to dynamic after release. These objects can then be moved by moving the gripper.
When to use
Use this simulation component if you want to turn a 3D object into a gripper. With a gripper you can fix any dynamic object which touches the 3D object.
These objects can then be moved by moving the gripper. While being gripped the Rigid Body Behavior
of the gripped objects changes to kinematic
.
Use this component if the gripped object tends to be unstable or to safe computing power.
How to use
Add this simulation component from the simulation component library. Define the 3D object, which acts as the gripper by selecting a 3D object either in the 3D View
window or in the Assembly Structure
window using the select button in the Object3D
property.
The dynamic objects, which are touching the gripper, will be moved if the gripper object moves and the gripper is enabled.
Note
The rigid body behavior of the 3D object, which should act as a gripper, must be static or kinematic. If the gripper object moves, the rigid body behavior must be kinematic.
Parameters
Object3D
The 3D object which acts as a gripper. The rigid body behavior of the object must be static or kinematic.
Inputs
EnableGripper
An input indicating whether other dynamic 3D objects are gripped or not.
Outputs
NumberGrippedObjects
An output indicating the number of objects which are currently fixed by the gripper.
Example
In this example, a robot has the job to pick up and handle different types of tubes, which are dynamic rigid body's in the simulation environment.
Therefore, the 3D object of the robot gripper is selected as template. The rigid body behavior of the gripper object is defined as kinematic
.
A ScriptComponent simulation component enables and disables the gripper. To move the different axis of the robot, a KinematicRotationMover simulation component is used.