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

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

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

            if all_in_one is True:

                return ms25_euler

            else:

                utimes  = ms25_euler[:, 0]
                roll    = ms25_euler[:, 1]
                pitch   = ms25_euler[:, 2]
                heading = ms25_euler[:, 3]

                return utimes, roll, pitch, heading

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

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

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