A method for automatically manipulating flexible primary packaging in open dimensionally stable secondary packaging, together called a package, by means of a computer-controlled robot having at least one arm, wherein the at least one arm includes a clamping gripper fixed at a tool center point monitored by a force-torque sensor, the method comprising:
- A) recording images of at least an upper segment of the primary packaging using at least two stereo cameras for recording 3-D images, wherein at least one of the stereo cameras is placed to a side of an air line between the package and the robot;
- B) providing a three-dimensional point cloud of at least the upper segment of the primary packaging by analyzing the recorded images;
- C) determining a highest point of the primary packaging from the three-dimensional point cloud as a gripping point for the clamping gripper with the aid of a computer program for reconstructing the surface of at least the primary packaging from the three-dimensional point cloud;
- D) calculating a collision-free approach path to the gripping point with the aid of the computer program and transmitting the approach path to the robot in a calculated movement sequence;
- E) moving the clamping gripper to the gripping point according to the calculated movement sequence, gripping the primary packaging at the gripping point, and further moving the clamping gripper;
- wherein, in response to further moving the clamping gripper:
- the primary packaging is opened by virtue of the clamping gripper being pulled upwards in an unscrewing manner in a movement or a rotational movement, taking into account measurements from the force-torque sensor at its tool center point, until a predefined upper limit for the stress of the primary packaging, measured by the force-torque sensor, is reached and/or predefined criteria for opening the primary packaging are achieved;
- or
- the primary packaging is closed by virtue of the clamping gripper being moved in a twisting and/or downward manner, taking into account measurements from the force-torque sensor at its tool center point, until a predefined upper limit, measured by the force-torque sensor, is reached and/or predefined criteria for closing the primary packaging are achieved;
- and
- F) opening the clamping gripper.