nclt2ros/visualizer/wheel_odom.py
def save_kml_line(self):
        """visualize wheel odometry data as a kml file
        """

        wheel_odom_x = self.wheel_odom[:, 1]
        wheel_odom_y = self.wheel_odom[:, 2]
        odom_list = list()

        if len(wheel_odom_x) > 200000:
            divider = 15
        else:
            divider = 5

        for row, (x_i, y_j) in enumerate(zip(wheel_odom_x, wheel_odom_y)):

            if not math.isnan(x_i) and not math.isnan(y_j):
                lat = self.odom_converter.get_lat(x=x_i)
                lng = self.odom_converter.get_lon(y=y_j)
                tup = (lng, lat)

                # minimize the elements in the kml output file
                if (row % divider) == 0:
                    odom_list.append(tup)

        ls = self.kml.newlinestring(name="wheel odometry", coords=odom_list, description="latitute and longitude from wheel odometry")
        ls.style.linestyle.width = 1
        ls.style.linestyle.color = self.magenta

        self.kml.save(self.visualization_kml_dir + self.output_file + '.kml')
visualize wheel odometry data as a kml file
        
visualize wheel odometry data as a kml file
visualize wheel odometry data as a kml file
def save_kml_line(self):
        wheel_odom_x = self.wheel_odom[:, 1]
        wheel_odom_y = self.wheel_odom[:, 2]
        odom_list = list()
        if len(wheel_odom_x) > 200000:
            divider = 15
        else:
            divider = 5
        for row, (x_i, y_j) in enumerate(zip(wheel_odom_x, wheel_odom_y)):
            if not math.isnan(x_i) and not math.isnan(y_j):
                lat = self.odom_converter.get_lat(x=x_i)
                lng = self.odom_converter.get_lon(y=y_j)
                tup = (lng, lat)
                if (row % divider) == 0:
                    odom_list.append(tup)
        ls = self.kml.newlinestring(name="wheel odometry", coords=odom_list, description="latitute and longitude from wheel odometry")
        ls.style.linestyle.width = 1
        ls.style.linestyle.color = self.magenta
        self.kml.save(self.visualization_kml_dir + self.output_file + '.kml')
def save_kml_line ( self ) : wheel_odom_x = self . wheel_odom [ : , 1 ] wheel_odom_y = self . wheel_odom [ : , 2 ] odom_list = list ( ) if len ( wheel_odom_x ) > 200000 : divider = 15 else : divider = 5 for row , ( x_i , y_j ) in enumerate ( zip ( wheel_odom_x , wheel_odom_y ) ) : if not math . isnan ( x_i ) and not math . isnan ( y_j ) : lat = self . odom_converter . get_lat ( x = x_i ) lng = self . odom_converter . get_lon ( y = y_j ) tup = ( lng , lat ) if ( row % divider ) == 0 : odom_list . append ( tup ) ls = self . kml . newlinestring ( name = "wheel odometry" , coords = odom_list , description = "latitute and longitude from wheel odometry" ) ls . style . linestyle . width = 1 ls . style . linestyle . color = self . magenta self . kml . save ( self . visualization_kml_dir + self . output_file + '.kml' )
visualize wheel odometry data as a kml file
visualize wheel odometry data as a kml file
"""visualize wheel odometry data as a kml file
        """ # minimize the elements in the kml output file
self