Continuous gesture recognition for flexible human-robot interaction