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

        :param   all_in_one: Boolean
        :return: ndarray: containing all data, if all_in_one is True
                 else
                 each column seperated as utimes, modes, num_satss, lat, lng, alts, tracks, speeds
        """
        if self.sensor_data_flag:

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

            if all_in_one is True:

                return gps_rtk

            else:

                utimes    = gps_rtk[:, 0]
                modes     = gps_rtk[:, 1]
                num_satss = gps_rtk[:, 2]
                lat       = gps_rtk[:, 3]
                lng       = gps_rtk[:, 4]
                alts      = gps_rtk[:, 5]
                tracks    = gps_rtk[:, 6]
                speeds    = gps_rtk[:, 7]

                return utimes, modes, num_satss, lat, lng, alts, tracks, speeds

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

        :param   all_in_one: Boolean
        :return: ndarray: containing all data, if all_in_one is True
                 else
                 each column seperated as utimes, modes, num_satss, lat, lng, alts, tracks, speeds
        
reads the data in the gps_rtk csv file
reads the data in the gps_rtk csv file
def read_gps_rtk_csv(self, all_in_one=None):
        if self.sensor_data_flag:
            gps_rtk = np.loadtxt(self.sensor_data_dir + '/%s/gps_rtk.csv' % self.date, delimiter=",")
            if all_in_one is True:
                return gps_rtk
            else:
                utimes    = gps_rtk[:, 0]
                modes     = gps_rtk[:, 1]
                num_satss = gps_rtk[:, 2]
                lat       = gps_rtk[:, 3]
                lng       = gps_rtk[:, 4]
                alts      = gps_rtk[:, 5]
                tracks    = gps_rtk[:, 6]
                speeds    = gps_rtk[:, 7]
                return utimes, modes, num_satss, lat, lng, alts, tracks, speeds
        else:
            raise ValueError('no sensor_data directory available')
def read_gps_rtk_csv ( self , all_in_one = None ) : if self . sensor_data_flag : gps_rtk = np . loadtxt ( self . sensor_data_dir + '/%s/gps_rtk.csv' % self . date , delimiter = "," ) if all_in_one is True : return gps_rtk else : utimes = gps_rtk [ : , 0 ] modes = gps_rtk [ : , 1 ] num_satss = gps_rtk [ : , 2 ] lat = gps_rtk [ : , 3 ] lng = gps_rtk [ : , 4 ] alts = gps_rtk [ : , 5 ] tracks = gps_rtk [ : , 6 ] speeds = gps_rtk [ : , 7 ] return utimes , modes , num_satss , lat , lng , alts , tracks , speeds else : raise ValueError ( 'no sensor_data directory available' )
reads the data in the gps_rtk csv file
reads the data in the gps_rtk csv file
"""reads the data in the gps_rtk csv file

        :param   all_in_one: Boolean
        :return: ndarray: containing all data, if all_in_one is True
                 else
                 each column seperated as utimes, modes, num_satss, lat, lng, alts, tracks, speeds
        """
containing all data, if all_in_one is True
else
each column seperated as utimes, modes, num_satss, lat, lng, alts, tracks, speeds
containing all data if all_in_one is True else each column seperated as utimes modes num_satss lat lng alts tracks speeds
self
all_in_one
None