An approach to adaptive control of robotic manipulators