nclt2ros/visualizer/gps_rtk.py
def save_kml_line(self):
        """visualize the gps rtk data as a kml file
        """

        lat = self.gps_rtk[:, 3]
        lng = self.gps_rtk[:, 4]
        gps_rtk_list = list()

        for (i_lat, j_lng) in zip(lat, lng):

            if not math.isnan(i_lat) and not math.isnan(j_lng):
                tup = (np.rad2deg(j_lng), np.rad2deg(i_lat))  # swap and convert lat long to deg
                gps_rtk_list.append(tup)

        ls = self.kml.newlinestring(name="gps rtk", coords=gps_rtk_list, description="latitude and longitude from gps rtk")
        ls.style.linestyle.width = 1
        ls.style.linestyle.color = self.red

        self.kml.save(self.visualization_kml_dir + self.output_file + '.kml')
visualize the gps rtk data as a kml file
        
visualize the gps rtk data as a kml file
visualize the gps rtk data as a kml file
def save_kml_line(self):
        lat = self.gps_rtk[:, 3]
        lng = self.gps_rtk[:, 4]
        gps_rtk_list = list()
        for (i_lat, j_lng) in zip(lat, lng):
            if not math.isnan(i_lat) and not math.isnan(j_lng):
                tup = (np.rad2deg(j_lng), np.rad2deg(i_lat))  
                gps_rtk_list.append(tup)
        ls = self.kml.newlinestring(name="gps rtk", coords=gps_rtk_list, description="latitude and longitude from gps rtk")
        ls.style.linestyle.width = 1
        ls.style.linestyle.color = self.red
        self.kml.save(self.visualization_kml_dir + self.output_file + '.kml')
def save_kml_line ( self ) : lat = self . gps_rtk [ : , 3 ] lng = self . gps_rtk [ : , 4 ] gps_rtk_list = list ( ) for ( i_lat , j_lng ) in zip ( lat , lng ) : if not math . isnan ( i_lat ) and not math . isnan ( j_lng ) : tup = ( np . rad2deg ( j_lng ) , np . rad2deg ( i_lat ) ) gps_rtk_list . append ( tup ) ls = self . kml . newlinestring ( name = "gps rtk" , coords = gps_rtk_list , description = "latitude and longitude from gps rtk" ) ls . style . linestyle . width = 1 ls . style . linestyle . color = self . red self . kml . save ( self . visualization_kml_dir + self . output_file + '.kml' )
visualize the gps rtk data as a kml file
visualize the gps rtk data as a kml file
"""visualize the gps rtk data as a kml file
        """ # swap and convert lat long to deg
self