def is_lcm_message(obj):
    """
    Check if an object is an instance of an LCM type

    LCM offers no official way to do this, so test for a uniquely-named method
    that is present in all LCM types
    """
    return '_get_packed_fingerprint' in dir(obj)