o
    exg                     @   s.   d Z 	 ddlmZ ddlZG dd deZdS )zYLCM type definitions
This file automatically generated by lcm.
DO NOT MODIFY BY HAND!!!!
    )BytesIONc                   @   s~   e Zd ZddgZddgZddgZdd Zdd	 Zd
d Ze	de
fddZe	dd Ze	dd ZdZe	dd Zdd ZdS )double_tnamevaluestringdoubleNc                 C   s   d| _ 	 d| _d S )N g        )r   r   self r   f/mbari/ProjectLibrary/901101_OceanImaging/2025 Scoping Study/2 Studies/LCM_DataAnalysis/oi/double_t.py__init__   s   zdouble_t.__init__c                 C   s&   t  }|t  | | | S )N)r   writer   _get_packed_fingerprint_encode_onegetvalue)r
   bufr   r   r   encode   s   
zdouble_t.encodec                 C   sR   | j d}|tdt|d  || |d |td| j d S )Nutf-8>I       >d)r   r   r   structpacklenr   )r
   r   Z_double_t__name_encodedr   r   r   r   %   s
   

zdouble_t._encode_onedatac                 C   s<   t | dr| }nt| }|dt krtdt|S )Nread   zDecode error)hasattrr   r   r   r   
ValueError_decode_one)r   r   r   r   r   decode,   s   

zdouble_t.decodec                 C   sT   t  }td| dd }| |d d dd|_td| dd |_|S )	Nr      r   r   replacer   r   )r   r   unpackr   r"   r   r   )r   r
   Z_double_t__name_lenr   r   r   r!   6   s
   zdouble_t._decode_onec                 C   s,   t | v rdS d}|d> d@ |d?  d@ }|S )Nr   l   c{) r   l    ?   )r   )parentstmphashr   r   r   _get_hash_recursive>   s   zdouble_t._get_hash_recursivec                   C   s$   t jd u rtdt g t _t jS )N>Q)r   _packed_fingerprintr   r   r*   r   r   r   r   r   F   s   
z double_t._get_packed_fingerprintc                 C   s   t dt d S )zGet the LCM hash of the structr+   r   )r   r&   r   r   r	   r   r   r   get_hashL   s   zdouble_t.get_hash)__name__
__module____qualname__	__slots____typenames____dimensions__r   r   r   staticmethodbytesr"   r!   r*   r,   r   r-   r   r   r   r   r      s"    	


r   )__doc__ior   r   objectr   r   r   r   r   <module>   s
    