A deep learning framework to estimate the pose of robotic arms and predict their movements