Joint / Cartesian On-line Optimal Control of a Robot Manipulator Without Inverse Kinematics