The success of robots in real-world environments is largely dependent on their ability to interact with both humans and said environment. The FP7 EU project CoDyCo focused on the latter of these two challenges by exploiting both rigid and compliant contacts dynamics in the robot control problem. Regarding the former, to properly manage interaction dynamics on the robot control side, an estimation of the human behaviours and intentions is necessary. In this paper we present the building blocks of such a human-in-the-loop controller, and validate them in both simulation and on the iCub humanoid robot using a human-robot interaction scenario. In this scenario, a human assists the robot in standing up from being seated on a bench. Index Terms-Physical Human-Robot Interaction, Humanoid Robots I. INTRODUCTION T HE ability to interact with and manipulate the environment gives robots a distinct advantage over purely software based automated agents. In the FP7 European project, CoDyCo, the focus was on how to properly exploit contact dynamics in the control of the robot. When the interaction involves humans, their intrinsic unpredictability makes the collaboration problem far more difficult. Foreseen robotic applications range from the use of robots as service and elderly assistants, to their use in industrial plants in close contact with