Adaptive control for robot manipulators in joint and cartesian coordinates | Synapse