Gets the pose by direction. GetPose will go through the poses array and return the first pose that has the direction in range.