src/tools/benchmark_tool/benchmark_tool/time_estimator/time_estimator_topic.py
def input_topic_callback(self, msg):
        """
        Update received time.

        Callback function triggered by the reception of a message from the input topic.

        @param msg: The topic message
        @type  msg: The type can vary depending on the listened topic
        @return: None
        """
        with self.callback_lock:
            if self._time_received_input != 0:
                warn = "[TimeEstimatorTopic] Input time overwritten by another"\
                    + " input message, consider slowing down the rate of " \
                    + "the published data to let the receiving node handle it"
                warning(self.node, warn)
            self._time_received_input = self.node.get_clock().now().nanoseconds

        Update received time.

        Callback function triggered by the reception of a message from the input topic.

        @param msg: The topic message
        @type  msg: The type can vary depending on the listened topic
        @return: None
        
Update received time.
Callback function triggered by the reception of a message from the input topic.
Update received time . Callback function triggered by the reception of a message from the input topic .
def input_topic_callback(self, msg):
        with self.callback_lock:
            if self._time_received_input != 0:
                warn = "[TimeEstimatorTopic] Input time overwritten by another"\
                    + " input message, consider slowing down the rate of " \
                    + "the published data to let the receiving node handle it"
                warning(self.node, warn)
            self._time_received_input = self.node.get_clock().now().nanoseconds
def input_topic_callback ( self , msg ) : with self . callback_lock : if self . _time_received_input != 0 : warn = "[TimeEstimatorTopic] Input time overwritten by another" + " input message, consider slowing down the rate of " + "the published data to let the receiving node handle it" warning ( self . node , warn ) self . _time_received_input = self . node . get_clock ( ) . now ( ) . nanoseconds
Update received time.
Update received time .
"""
        Update received time.

        Callback function triggered by the reception of a message from the input topic.

        @param msg: The topic message
        @type  msg: The type can vary depending on the listened topic
        @return: None
        """
None
self
msg
The topic message
The topic message