Design and dynamic analysis of a multi-function movable rehabilitation robot