$ source env.sh
$ export MAX_PUBLISHERS=1
$ export MAX_SUBSCRIBERS=1
$ export MSG_TYPES="10b 100b 250b 1kb 10kb 100kb 250kb 1mb"
$ export PUBLISH_FREQUENCY="10 100 500 1000"
$ export DURATION=30
$ export NUM_EXPERIMENTS=10
$ export MON_CPU_RAM=true
$ bash scripts/pub_sub_ros2.sh
$ python scripts/plot_scripts/cpu_ram_plot.py <path_to_experiments> --x msg_type --y cpu --separator send_frequency --skip 5
Traceback (most recent call last):
File "scripts/plot_scripts/cpu_ram_plot.py", line 209, in <module>
main(sys.argv[1:])
File "scripts/plot_scripts/cpu_ram_plot.py", line 182, in main
parsed_csv = parse_csv(file_path, skip)
File "scripts/plot_scripts/cpu_ram_plot.py", line 56, in parse_csv
time = int(row_dict['time[ms]'])
KeyError: 'time[ms]'
I use this command to generate csv files: