Code for head_pose