-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'bruno' of github.com:lardemua/atom into bruno
- Loading branch information
Showing
3 changed files
with
84 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
77 changes: 77 additions & 0 deletions
77
atom_batch_execution/experiments/softbot_example/template.yml.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
# | ||
# █████╗ ████████╗ ██████╗ ███╗ ███╗ | ||
# ██╔══██╗╚══██╔══╝██╔═══██╗████╗ ████║ | ||
# ███████║ ██║ ██║ ██║██╔████╔██║ | ||
# ██╔══██║ ██║ ██║ ██║██║╚██╔╝██║ | ||
# __ ██║ ██║ ██║ ╚██████╔╝██║ ╚═╝ ██║ _ | ||
# / _| ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ | | | ||
# | |_ _ __ __ _ _ __ ___ _____ _____ _ __| | __ | ||
# | _| '__/ _` | '_ ` _ \ / _ \ \ /\ / / _ \| '__| |/ / | ||
# | | | | | (_| | | | | | | __/\ v v / (_) | | | < | ||
# |_| |_| \__,_|_| |_| |_|\___| \_/\_/ \___/|_| |_|\_\ | ||
# https://github.com/lardemua/atom | ||
|
||
# this yml file contains a set of commands to be run in batch. | ||
# use jinja2 syntax for referencing variables | ||
|
||
# Preprocessing will run only once before all experiments. | ||
preprocessing: | ||
cmd: | | ||
ls /tmp | ||
|
||
# Define batches to run | ||
experiments: | ||
{%- for e in experiments %} | ||
{% for run in runs %} | ||
{% set run_index = loop.index %} | ||
{% for fold in folds %} | ||
{{ e.name }}_run{{ '%03d' % run_index }}_fold{{ '%03d' % loop.index }}: | ||
cmd: | | ||
rosrun atom_calibration calibrate -json {{ dataset_path }}/dataset_corrected.json \ | ||
-v -ss {{ run }} \ | ||
-nig {{ e.nig_value }} {{ e.nig_value }} \ | ||
-csf 'lambda x: x in {{ fold[0] }}' \ | ||
-ntfv {{ e.ntfv_value }} {{ e.ntfv_value }} \ | ||
-ntfl "world:base_footprint" \ | ||
-sce \ | ||
{%- if not e.calibrate_odom -%} | ||
-atsf 'lambda name : name in []' \ | ||
{%- endif %} | ||
&& \ | ||
|
||
# front_left_camera to front_right_camera evaluation | ||
rosrun atom_evaluation rgb_to_rgb_evaluation \ | ||
-train_json {{ dataset_path }}/atom_calibration.json \ | ||
-test_json {{ dataset_path }}/dataset_corrected.json \ | ||
-ss front_left_camera -st front_right_camera \ | ||
-sfr -sfrn /tmp/rgb_rgb_evaluation.csv \ | ||
-csf 'lambda x: x in {{ fold[1] }}' \ | ||
&& \ | ||
|
||
# front_left_camera to lidar3d evaluation | ||
rosrun atom_evaluation lidar_to_rgb_evaluation -rs lidar3d -cs front_left_camera \ | ||
-train_json {{ dataset_path }}/atom_calibration.json \ | ||
-test_json {{ dataset_path }}/dataset_corrected.json \ | ||
-csf 'lambda x: x in {{ fold[1] }}' \ | ||
-sfr -sfrn /tmp/lidar3d_rgb_front_left_evaluation.csv \ | ||
&& \ | ||
|
||
# front_right_camera to lidar3d evaluation | ||
rosrun atom_evaluation lidar_to_rgb_evaluation -rs lidar3d -cs front_right_camera \ | ||
-train_json {{ dataset_path }}/atom_calibration.json \ | ||
-test_json {{ dataset_path }}/dataset_corrected.json \ | ||
-csf 'lambda x: x in {{ fold[1] }}' \ | ||
-sfr -sfrn /tmp/lidar3d_rgb_front_right_evaluation.csv | ||
|
||
files_to_collect: | ||
- '{{ dataset_path }}/atom_calibration.json' | ||
- '{{ dataset_path }}/atom_calibration_params.yml' | ||
- '{{ dataset_path }}/command_line_args.yml' | ||
- '{{ dataset_path }}/calibration_errors.csv' | ||
- '/tmp/rgb_rgb_evaluation.csv' | ||
- '/tmp/lidar3d_rgb_front_left_evaluation.csv' | ||
- '/tmp/lidar3d_rgb_front_right_evaluation.csv' | ||
{%- endfor %} | ||
{%- endfor %} | ||
{%- endfor %} | ||
# End the loop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters