src/tools/benchmark_tool/benchmark_tool/player/generic_player.py
def add_track(self, track_idx, publish_topic, publish_topic_type,
                  min_subscribers, rate_hz):
        """
        Add a track to the player object.

        @param track_idx: The index of the data source in the Dataset
        @type  track_idx: int
        @param publish_topic: The name of the topic where publish the data
        @type  publish_topic: str
        @param publish_topic_type: The data type of the published data
        @type  publish_topic_type: Depends on the published data
        @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
        @return: True on success, False on failure
        """
        track = None
        try:
            # Create the track
            track = self.Track(self.node, track_idx, publish_topic,
                               publish_topic_type, min_subscribers, rate_hz)

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

        if not self._append_track(track, track_idx):
            error(self.node,
                  "Error initializing track index: %d" % track_idx)
            error(self.node,
                  "player type : {}".format(track.track_type_str))
            return False

        return True

        Add a track to the player object.

        @param track_idx: The index of the data source in the Dataset
        @type  track_idx: int
        @param publish_topic: The name of the topic where publish the data
        @type  publish_topic: str
        @param publish_topic_type: The data type of the published data
        @type  publish_topic_type: Depends on the published data
        @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
        @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, track_idx, publish_topic, publish_topic_type,
                  min_subscribers, rate_hz):
        track = None
        try:
            track = self.Track(self.node, track_idx, publish_topic,
                               publish_topic_type, min_subscribers, rate_hz)
        except Exception as e:
            error(self.node, "%s" % str(e))
            return False
        if not self._append_track(track, track_idx):
            error(self.node,
                  "Error initializing track index: %d" % track_idx)
            error(self.node,
                  "player type : {}".format(track.track_type_str))
            return False
        return True
def add_track ( self , track_idx , publish_topic , publish_topic_type , min_subscribers , rate_hz ) : track = None try : track = self . Track ( self . node , track_idx , publish_topic , publish_topic_type , min_subscribers , rate_hz ) except Exception as e : error ( self . node , "%s" % str ( e ) ) return False if not self . _append_track ( track , track_idx ) : error ( self . node , "Error initializing track index: %d" % track_idx ) error ( self . node , "player type : {}" . format ( track . track_type_str ) ) 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 track_idx: The index of the data source in the Dataset
        @type  track_idx: int
        @param publish_topic: The name of the topic where publish the data
        @type  publish_topic: str
        @param publish_topic_type: The data type of the published data
        @type  publish_topic_type: Depends on the published data
        @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
        @return: True on success, False on failure
        """ # Create the track
True on success, False on failure
True on success False on failure
self
track_idx
The index of the data source in the Dataset
The index of the data source in the Dataset
publish_topic
The name of the topic where publish the data
The name of the topic where publish the data
publish_topic_type
The data type of the published data
The data type of the published 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