A robot, such an industrial robot, has an arm. The wave energy recovery system comprises at least a control means to instruct the PTO means to resist the reciprocating movement of the wing by a counter moment. The first and second profiles are moved immediately before reaching the connecting position in the direction of the predetermined degree of freedom.