ur/ur_communicator.py
def pre_check(self, data):
        """Checks time and completeness of packet reception.

        Args:
            data: a numpy array with sensory information received from UR5
        """

        REALTIME_COMM_PACKET = ur_utils.get_rt_packet_def(
            self._firmware_version)

        if self._recv_time > self._prev_recv_time + 1.1 / 125:
            logging.debug(
                '{}: Hiccup of {:.2f}ms overhead between UR packets)'.format(
                    self._recv_time - self._start_time,
                    (self._recv_time - self._prev_recv_time - 0.008) * 1000,
                ))
        if len(data) != REALTIME_COMM_PACKET.itemsize:
            logging.debug('Warning: incomplete packet from UR')
            return
Checks time and completeness of packet reception.

        Args:
            data: a numpy array with sensory information received from UR5
        
Checks time and completeness of packet reception.
Checks time and completeness of packet reception .
def pre_check(self, data):
        REALTIME_COMM_PACKET = ur_utils.get_rt_packet_def(
            self._firmware_version)
        if self._recv_time > self._prev_recv_time + 1.1 / 125:
            logging.debug(
                '{}: Hiccup of {:.2f}ms overhead between UR packets)'.format(
                    self._recv_time - self._start_time,
                    (self._recv_time - self._prev_recv_time - 0.008) * 1000,
                ))
        if len(data) != REALTIME_COMM_PACKET.itemsize:
            logging.debug('Warning: incomplete packet from UR')
            return
def pre_check ( self , data ) : REALTIME_COMM_PACKET = ur_utils . get_rt_packet_def ( self . _firmware_version ) if self . _recv_time > self . _prev_recv_time + 1.1 / 125 : logging . debug ( '{}: Hiccup of {:.2f}ms overhead between UR packets)' . format ( self . _recv_time - self . _start_time , ( self . _recv_time - self . _prev_recv_time - 0.008 ) * 1000 , ) ) if len ( data ) != REALTIME_COMM_PACKET . itemsize : logging . debug ( 'Warning: incomplete packet from UR' ) return
Checks time and completeness of packet reception.
Checks time and completeness of packet reception .
"""Checks time and completeness of packet reception.

        Args:
            data: a numpy array with sensory information received from UR5
        """
self
data
a numpy array with sensory information received from UR5
a numpy array with sensory information received from UR5