nclt2ros/visualizer/all.py
def plot(self):
        """visualize all data in one plot
        """

        gt_x, gt_y = self.get_gt_data()
        gps_rtk_x, gps_rtk_y = self.get_gps_rtk_data()
        gps_x, gps_y = self.get_gps_data()
        wheel_odom_x, wheel_odom_y = self.get_wheel_odom_data()
        print(self.plt_show)
        gt = plt.plot(gt_y, gt_x, color="lime", label='ground truth')                # swap x,y coordinate axes!
        gps_rtk = plt.plot(gps_rtk_y, gps_rtk_x, 'r-', label='gps rtk')              # swap x,y coordinate axes!
        gps = plt.plot(gps_y, gps_x, 'y-', label='gps')                              # swap x,y coordinate axes!
        wheel_odom = plt.plot(wheel_odom_y, wheel_odom_x, 'm-', label='wheel odom')  # swap x,y coordinate axes!

        plt.title('All Sensors')
        plt.xlabel('x in meter')
        plt.ylabel('y in meter')
        plt.legend(loc='upper left')

        plt.grid()
        plt.savefig(self.visualization_png_all_dir + 'raw_data_all.png')

        if self.plt_show:
            plt.show()
visualize all data in one plot
        
visualize all data in one plot
visualize all data in one plot
def plot(self):
        gt_x, gt_y = self.get_gt_data()
        gps_rtk_x, gps_rtk_y = self.get_gps_rtk_data()
        gps_x, gps_y = self.get_gps_data()
        wheel_odom_x, wheel_odom_y = self.get_wheel_odom_data()
        print(self.plt_show)
        gt = plt.plot(gt_y, gt_x, color="lime", label='ground truth')                
        gps_rtk = plt.plot(gps_rtk_y, gps_rtk_x, 'r-', label='gps rtk')              
        gps = plt.plot(gps_y, gps_x, 'y-', label='gps')                              
        wheel_odom = plt.plot(wheel_odom_y, wheel_odom_x, 'm-', label='wheel odom')  
        plt.title('All Sensors')
        plt.xlabel('x in meter')
        plt.ylabel('y in meter')
        plt.legend(loc='upper left')
        plt.grid()
        plt.savefig(self.visualization_png_all_dir + 'raw_data_all.png')
        if self.plt_show:
            plt.show()
def plot ( self ) : gt_x , gt_y = self . get_gt_data ( ) gps_rtk_x , gps_rtk_y = self . get_gps_rtk_data ( ) gps_x , gps_y = self . get_gps_data ( ) wheel_odom_x , wheel_odom_y = self . get_wheel_odom_data ( ) print ( self . plt_show ) gt = plt . plot ( gt_y , gt_x , color = "lime" , label = 'ground truth' ) gps_rtk = plt . plot ( gps_rtk_y , gps_rtk_x , 'r-' , label = 'gps rtk' ) gps = plt . plot ( gps_y , gps_x , 'y-' , label = 'gps' ) wheel_odom = plt . plot ( wheel_odom_y , wheel_odom_x , 'm-' , label = 'wheel odom' ) plt . title ( 'All Sensors' ) plt . xlabel ( 'x in meter' ) plt . ylabel ( 'y in meter' ) plt . legend ( loc = 'upper left' ) plt . grid ( ) plt . savefig ( self . visualization_png_all_dir + 'raw_data_all.png' ) if self . plt_show : plt . show ( )
visualize all data in one plot
visualize all data in one plot
"""visualize all data in one plot
        """ # swap x,y coordinate axes! # swap x,y coordinate axes! # swap x,y coordinate axes! # swap x,y coordinate axes!
self