nclt2ros/extractor/read_sensor_data.py
def read_wheels_csv(self, all_in_one=None):
        """reads the data in the wheels csv file

        :param all_in_one: Boolean
        :return: ndarray: containing all data, if all_in_one is True
                 else
                 each column seperated as utimes, vl, vr
        """
        if self.sensor_data_flag:

            wheels = np.loadtxt(self.sensor_data_dir + '/%s/wheels.csv' % self.date, delimiter=",")

            if all_in_one is True:

                return wheels

            else:

                utimes = wheels[:, 0]
                vl     = wheels[:, 1]
                vr     = wheels[:, 2]

                return utimes, vl, vr

        else:
            raise ValueError('no sensor_data directory available')
reads the data in the wheels csv file

        :param all_in_one: Boolean
        :return: ndarray: containing all data, if all_in_one is True
                 else
                 each column seperated as utimes, vl, vr
        
reads the data in the wheels csv file
reads the data in the wheels csv file
def read_wheels_csv(self, all_in_one=None):
        if self.sensor_data_flag:
            wheels = np.loadtxt(self.sensor_data_dir + '/%s/wheels.csv' % self.date, delimiter=",")
            if all_in_one is True:
                return wheels
            else:
                utimes = wheels[:, 0]
                vl     = wheels[:, 1]
                vr     = wheels[:, 2]
                return utimes, vl, vr
        else:
            raise ValueError('no sensor_data directory available')
def read_wheels_csv ( self , all_in_one = None ) : if self . sensor_data_flag : wheels = np . loadtxt ( self . sensor_data_dir + '/%s/wheels.csv' % self . date , delimiter = "," ) if all_in_one is True : return wheels else : utimes = wheels [ : , 0 ] vl = wheels [ : , 1 ] vr = wheels [ : , 2 ] return utimes , vl , vr else : raise ValueError ( 'no sensor_data directory available' )
reads the data in the wheels csv file
reads the data in the wheels csv file
"""reads the data in the wheels csv file

        :param all_in_one: Boolean
        :return: ndarray: containing all data, if all_in_one is True
                 else
                 each column seperated as utimes, vl, vr
        """
containing all data, if all_in_one is True
else
each column seperated as utimes, vl, vr
containing all data if all_in_one is True else each column seperated as utimes vl vr
self
all_in_one
None