(self,filepath)
return data
Read in a calibration file and parse into a dictionary.
Read in a calibration file and parse into a dictionary.
Read in a calibration file and parse into a dictionary .
def read_raw_calib_file(self,filepath):
        # From https://github.com/utiasSTARS/pykitti/blob/master/pykitti/utils.py
        """Read in a calibration file and parse into a dictionary."""
        data = {}

        with open(filepath, 'r') as f:
            for line in f.readlines():
                key, value = line.split(':', 1)
                # The only non-float values in these files are dates, which
                # we don't care about anyway
                try:
                        data[key] = np.array([float(x) for x in value.split()])
                except ValueError:
                        pass
        return data
def read_raw_calib_file ( self , filepath ) : # From https://github.com/utiasSTARS/pykitti/blob/master/pykitti/utils.py data = { } with open ( filepath , 'r' ) as f : for line in f . readlines ( ) : key , value = line . split ( ':' , 1 ) # The only non-float values in these files are dates, which # we don't care about anyway try : data [ key ] = np . array ( [ float ( x ) for x in value . split ( ) ] ) except ValueError : pass return data