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

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

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

            if all_in_one is True:

                return odom

            else:

                utimes  = odom[:, 0]
                x       = odom[:, 1]
                y       = odom[:, 2]
                z       = odom[:, 3]
                roll    = odom[:, 4]
                pitch   = odom[:, 5]
                heading = odom[:, 6]

                return utimes, x, y, z, roll, pitch, heading
        else:
            raise ValueError('no sensor_data directory available')
reads the data in the odometry_mu_100hz csv file

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

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