Design a controller for rehabilitation robot based on ROS platform