Modeling Human-Robot Interaction Based on Generic Interaction Patterns