Detecting Biological Motion for Human-Robot Interaction: A Link between Perception and Action