Dynamics and Control of robot arm