def map_imu(values):
    """
    Map the values generated with the hypothesis-ros imu strategy to a rospy imu type.
    """
    if not isinstance(values, _Imu):