Real-time (self)-collision avoidance task on a HRP-2 humanoid robot