The Self-Tuning of Robot Program Parameters for Manipulating Flexible Parts