Ejemplo n.º 1
0
        if 'plot' in subkey:
            sub_plot_list.append(sorted(any_KRs[key][subkey].items()))
            # sub_plot_list = value
            print sub_plot_list
            # print sub_plot_list[0]
            # print sub_plot_list[0][0]
            # if not -1 in sub_plot_list[0][0]:
            #     sub_plot_list = sorted(sub_plot_list)
            # print sorted(sub_plot_list[0])
            # print sub_plot_list.sort()
            plt6 = Plotter(reader, key, subkeys=sub_plot_list)

#plt1 = Plotter(reader, 'agent.0.location', subkeys=[((0, 'x'), (1, 'y')), ((0, 'x'), (2, 'z')),
#                                ((1, 'y'), (2, 'z')), ((-1, 'time'), (2, 'z'))], points_per_plot=50)
# plt2 = Plotter(reader, '.gams.frames.'+ knowledge_record)
# plt3 = Plotter(reader, '.gams.frames.p1_laser_stabilized', subkeys=[((0, 'x'), (1, 'y'))], points_per_plot=10)
# plt4 = Plotter(reader, '.gams.frames', frames_of_choice=['geo','p1_base_footprint'])

# plt5 = Plotter(reader, '.sensors.px4.location.2', subkeys=[(('pose.position.x', 'x'), ('pose.position.y', 'y'))])
# plt6 = Plotter(reader, 'sensors.baro', subkeys=[((-1, 'time'), ('fluidPressure', 'pp'))])

while True:
    # #   # plt1.visualize()
    plt2.visualize()
    plt3.visualize()
    plt4.visualize()
    # # # #   plt5.visualize()
    plt6.visualize()
    plt7.visualize()

plt.plot.show()