src/tools/benchmark_tool/benchmark_tool/player/synced_external_player.py
def add_track(self, listen_topic, publish_topic, sync_topic,
                  min_subscribers, rate_hz, frame_number, timeout_ms=10000):
        """
        Add a track to the player object.

        @param listen_topic: The topic where to listen for data to be replayed
        @type  listen_topic: str
        @param publish_topic: The name of the topic where publish the data
        @type  publish_topic: str
        @param sync_topic: The name of the topic on which sync the transmission of the data
        @type  sync_topic: str
        @param min_subscribers: Minumum number of subscriber before publishing the data
        @type  min_subscribers: int
        @param rate_hz: Frequency for the transmission
        @type  rate_hz: int
        @param frame_number: Frame number expected
        @type  frame_number: int
        @param timeout_ms: Timeout to retrigger a retransmission
        @type  timeout_ms: int
        @return: True on success, False on failure
        """
        track = None
        try:
            # Create the track
            track = self.SyncedReplayTrack(
                self.node, listen_topic, publish_topic, sync_topic,
                min_subscribers, rate_hz, frame_number, timeout_ms
            )

        except Exception as e:
            error(self.node, "[add_track] %s" % str(e))
            return False

        if not self._append_track(track):
            error(self.node, "Error adding track")
            return False

        return True

        Add a track to the player object.

        @param listen_topic: The topic where to listen for data to be replayed
        @type  listen_topic: str
        @param publish_topic: The name of the topic where publish the data
        @type  publish_topic: str
        @param sync_topic: The name of the topic on which sync the transmission of the data
        @type  sync_topic: str
        @param min_subscribers: Minumum number of subscriber before publishing the data
        @type  min_subscribers: int
        @param rate_hz: Frequency for the transmission
        @type  rate_hz: int
        @param frame_number: Frame number expected
        @type  frame_number: int
        @param timeout_ms: Timeout to retrigger a retransmission
        @type  timeout_ms: int
        @return: True on success, False on failure
        
Add a track to the player object.
Add a track to the player object .
def add_track(self, listen_topic, publish_topic, sync_topic,
                  min_subscribers, rate_hz, frame_number, timeout_ms=10000):
        track = None
        try:
            track = self.SyncedReplayTrack(
                self.node, listen_topic, publish_topic, sync_topic,
                min_subscribers, rate_hz, frame_number, timeout_ms
            )
        except Exception as e:
            error(self.node, "[add_track] %s" % str(e))
            return False
        if not self._append_track(track):
            error(self.node, "Error adding track")
            return False
        return True
def add_track ( self , listen_topic , publish_topic , sync_topic , min_subscribers , rate_hz , frame_number , timeout_ms = 10000 ) : track = None try : track = self . SyncedReplayTrack ( self . node , listen_topic , publish_topic , sync_topic , min_subscribers , rate_hz , frame_number , timeout_ms ) except Exception as e : error ( self . node , "[add_track] %s" % str ( e ) ) return False if not self . _append_track ( track ) : error ( self . node , "Error adding track" ) return False return True
Add a track to the player object.
Add a track to the player object .
"""
        Add a track to the player object.

        @param listen_topic: The topic where to listen for data to be replayed
        @type  listen_topic: str
        @param publish_topic: The name of the topic where publish the data
        @type  publish_topic: str
        @param sync_topic: The name of the topic on which sync the transmission of the data
        @type  sync_topic: str
        @param min_subscribers: Minumum number of subscriber before publishing the data
        @type  min_subscribers: int
        @param rate_hz: Frequency for the transmission
        @type  rate_hz: int
        @param frame_number: Frame number expected
        @type  frame_number: int
        @param timeout_ms: Timeout to retrigger a retransmission
        @type  timeout_ms: int
        @return: True on success, False on failure
        """ # Create the track
True on success, False on failure
True on success False on failure
self
listen_topic
The topic where to listen for data to be replayed
The topic where to listen for data to be replayed
publish_topic
The name of the topic where publish the data
The name of the topic where publish the data
sync_topic
The name of the topic on which sync the transmission of the data
The name of the topic on which sync the transmission of the data
min_subscribers
Minumum number of subscriber before publishing the data
Minumum number of subscriber before publishing the data
rate_hz
Frequency for the transmission
Frequency for the transmission
frame_number
Frame number expected
Frame number expected
timeout_ms
Timeout to retrigger a retransmission
Timeout to retrigger a retransmission