Hello,
I am new to this forum and hope to obtain some good ideas and suggestions here. I am currently working with a KUKA LBR iiwa and I am learning the ropes of operating and programming the robot. I already use the manual to look up information and examples .
I would like to program the following program sequence:
The robot should detect a collision (e.g. hand) and stop. Then the application should be resumed by a gesture.
This is what I have tried so far:
//Trigger
ICallbackAction ica = new ICallbackAction() {
@Override
public void onTriggerFired(IFiredTriggerInfo triggerInformation)
{
getLogger().info("TriggerTime: "+ triggerInformation.getTriggerTime().toString());
getLogger().info("TriggerCondition: "+ triggerInformation.getFiredCondition().toString());
getApplicationControl().pause();
};
}; //End ICallbackAction ica
//Condition for Cartesian force from all directions (Frame below the robot flange)
ForceCondition flangecollision = ForceCondition.createSpatialForceCondition(lbr.getFlange(), 15);
lbr.move(ptp(getApplicationData().getFrame("/Frame_Z2")).triggerWhen(flangecollision, ica));
Display More
In case of collision the method triggerWhen(...) is called and the action is programmed in onTriggerFired(…).
The problem here is that the paused motion can only be resumed via the Start key on the smartPAD. I would like to resume the application by gesture control (see Video 1). Another questions is how can the application be started in general by a gesture (see video 2)?
1) https://youtu.be/90sS-sxEZm8?t=2m45s at 2:45
2) https://youtu.be/sJBgEk96igk?t=20s at 0:20
Thanks and regards
robotneuling