To estimate 3D pose of a robot