From fe8afb07f8bd60cba415694c9fae84abdbcefcb5 Mon Sep 17 00:00:00 2001 From: Johannes Ringler Date: Sat, 23 Sep 2023 16:13:07 +0200 Subject: [PATCH] 4 trains --- .../brickrail-layouts/ro_4trains.brl | 2109 +++++++++++++++++ 1 file changed, 2109 insertions(+) create mode 100644 brickrail-gui/brickrail-layouts/ro_4trains.brl diff --git a/brickrail-gui/brickrail-layouts/ro_4trains.brl b/brickrail-gui/brickrail-layouts/ro_4trains.brl new file mode 100644 index 0000000..eebcedb --- /dev/null +++ b/brickrail-gui/brickrail-layouts/ro_4trains.brl @@ -0,0 +1,2109 @@ +{ + "version": "1.0.0", + "devices": { + "trains": [ + { + "name": "city-green", + "storage": { + "0": 3500, + "1": 40, + "2": 90, + "4": 40, + "5": 75, + "3": 100, + "6": 0 + } + }, + { + "name": "city-red", + "storage": { + "0": 3500, + "1": 40, + "2": 90, + "4": 40, + "5": 75, + "3": 100, + "6": 0 + } + }, + { + "name": "city-orange", + "storage": { + "0": 3500, + "1": 40, + "2": 90, + "4": 40, + "5": 75, + "3": 100, + "6": 0 + } + }, + { + "name": "city-yellow", + "storage": { + "0": 3500, + "1": 40, + "2": 90, + "4": 40, + "5": 75, + "3": 100, + "6": 0 + } + } + ], + "controllers": [ + { + "name": "technic-red", + "devices": { + "0": "switch_motor", + "1": "switch_motor", + "2": "switch_motor", + "3": "switch_motor" + } + }, + { + "name": "technic-yellow", + "devices": { + "0": "switch_motor", + "1": "switch_motor", + "2": "switch_motor", + "3": "switch_motor" + } + }, + { + "name": "technic-lime", + "devices": { + "0": "switch_motor", + "1": "switch_motor", + "2": "crossing_motor", + "3": null + } + } + ] + }, + "layout": { + "tracks": [ + { + "l_idx": 0, + "x_idx": 2, + "y_idx": 2, + "connections": { + "S": [ + "center" + ], + "E": [ + "center" + ] + } + }, + { + "l_idx": 0, + "x_idx": 2, + "y_idx": 3, + "connections": { + "N": [ + "right" + ], + "S": [ + "center" + ] + } + }, + { + "l_idx": 0, + "x_idx": 2, + "y_idx": 4, + "connections": { + "N": [ + "center" + ], + "S": [ + "center" + ] + } + }, + { + "l_idx": 0, + "x_idx": 2, + "y_idx": 5, + "connections": { + "N": [ + "center" + ], + "S": [ + "left" + ] + } + }, + { + "l_idx": 0, + "x_idx": 2, + "y_idx": 6, + "connections": { + "N": [ + "center" + ], + "E": [ + "center" + ] + } + }, + { + "l_idx": 0, + "x_idx": 2, + "y_idx": 7, + "portals": { + "N": { + "l_idx": 1, + "x_idx": 2, + "y_idx": 6, + "next_slot": "N", + "orientation": "NS" + } + }, + "connections": { + "N": [ + + ], + "E": [ + "center" + ] + } + }, + { + "l_idx": 0, + "x_idx": 2, + "y_idx": 1, + "portals": { + "S": { + "l_idx": 1, + "x_idx": 2, + "y_idx": 2, + "next_slot": "S", + "orientation": "NS" + } + }, + "connections": { + "S": [ + + ], + "E": [ + "center" + ] + } + }, + { + "l_idx": 0, + "x_idx": 3, + "y_idx": 2, + "connections": { + "E": [ + "center" + ], + "W": [ + "left" + ] + } + }, + { + "l_idx": 0, + "x_idx": 3, + "y_idx": 2, + "connections": { + "S": [ + "center" + ], + "E": [ + "center" + ] + } + }, + { + "l_idx": 0, + "x_idx": 3, + "y_idx": 3, + "connections": { + "N": [ + "right" + ], + "S": [ + "left", + "center" + ] + }, + "switches": { + "S": { + "motor1": { + "controller": "technic-yellow", + "port": 3, + "storage": { + "0": 100, + "1": 600, + "2": 0 + } + } + } + } + }, + { + "l_idx": 0, + "x_idx": 3, + "y_idx": 4, + "connections": { + "N": [ + "center" + ], + "E": [ + "center" + ] + } + }, + { + "l_idx": 0, + "x_idx": 3, + "y_idx": 4, + "connections": { + "N": [ + "center" + ], + "S": [ + "left" + ] + } + }, + { + "l_idx": 0, + "x_idx": 3, + "y_idx": 5, + "connections": { + "N": [ + "center" + ], + "E": [ + "center" + ] + } + }, + { + "l_idx": 0, + "x_idx": 3, + "y_idx": 6, + "connections": { + "E": [ + "center" + ], + "W": [ + "right" + ] + } + }, + { + "l_idx": 0, + "x_idx": 3, + "y_idx": 7, + "connections": { + "E": [ + "center" + ], + "W": [ + "right" + ] + } + }, + { + "l_idx": 0, + "x_idx": 3, + "y_idx": 1, + "connections": { + "E": [ + "center" + ], + "W": [ + "left" + ] + } + }, + { + "l_idx": 0, + "x_idx": 4, + "y_idx": 1, + "connections": { + "E": [ + "center" + ], + "W": [ + "center" + ] + } + }, + { + "l_idx": 0, + "x_idx": 4, + "y_idx": 2, + "connections": { + "E": [ + "center" + ], + "W": [ + "center", + "left" + ] + }, + "switches": { + "W": { + "motor1": { + "controller": "technic-yellow", + "port": 2, + "storage": { + "0": 100, + "1": 600, + "2": 1 + } + } + } + } + }, + { + "l_idx": 0, + "x_idx": 4, + "y_idx": 4, + "connections": { + "E": [ + "center" + ], + "W": [ + "right" + ] + } + }, + { + "l_idx": 0, + "x_idx": 4, + "y_idx": 5, + "connections": { + "E": [ + "center" + ], + "W": [ + "right" + ] + } + }, + { + "l_idx": 0, + "x_idx": 4, + "y_idx": 6, + "connections": { + "E": [ + "center" + ], + "W": [ + "center" + ] + } + }, + { + "l_idx": 0, + "x_idx": 4, + "y_idx": 7, + "connections": { + "E": [ + "center" + ], + "W": [ + "center" + ] + } + }, + { + "l_idx": 0, + "x_idx": 5, + "y_idx": 1, + "connections": { + "E": [ + "center" + ], + "W": [ + "center" + ] + }, + "sensor": { + "markername": "red", + "speeds": { + "E": "slow", + "W": "cruise" + } + } + }, + { + "l_idx": 0, + "x_idx": 5, + "y_idx": 2, + "connections": { + "E": [ + "center" + ], + "W": [ + "center" + ] + }, + "sensor": { + "markername": "blue", + "speeds": { + "E": "cruise", + "W": "cruise" + } + } + }, + { + "l_idx": 0, + "x_idx": 5, + "y_idx": 4, + "connections": { + "E": [ + "center" + ], + "W": [ + "center" + ] + }, + "sensor": { + "markername": "blue", + "speeds": { + "E": "cruise", + "W": "cruise" + } + } + }, + { + "l_idx": 0, + "x_idx": 5, + "y_idx": 5, + "connections": { + "E": [ + "center" + ], + "W": [ + "center" + ] + }, + "sensor": { + "markername": "red", + "speeds": { + "E": "cruise", + "W": "cruise" + } + } + }, + { + "l_idx": 0, + "x_idx": 5, + "y_idx": 6, + "connections": { + "E": [ + "center" + ], + "W": [ + "center" + ] + }, + "sensor": { + "markername": "blue", + "speeds": { + "E": "cruise", + "W": "cruise" + } + } + }, + { + "l_idx": 0, + "x_idx": 5, + "y_idx": 7, + "connections": { + "E": [ + "center" + ], + "W": [ + "center" + ] + }, + "sensor": { + "markername": "red", + "speeds": { + "E": "slow", + "W": "cruise" + } + } + }, + { + "l_idx": 0, + "x_idx": 6, + "y_idx": 1, + "connections": { + "E": [ + "center" + ], + "W": [ + "center" + ] + } + }, + { + "l_idx": 0, + "x_idx": 6, + "y_idx": 2, + "connections": { + "E": [ + "center" + ], + "W": [ + "center" + ] + } + }, + { + "l_idx": 0, + "x_idx": 6, + "y_idx": 4, + "connections": { + "E": [ + "center" + ], + "W": [ + "center" + ] + } + }, + { + "l_idx": 0, + "x_idx": 6, + "y_idx": 5, + "connections": { + "E": [ + "center" + ], + "W": [ + "center" + ] + } + }, + { + "l_idx": 0, + "x_idx": 6, + "y_idx": 6, + "connections": { + "E": [ + "center" + ], + "W": [ + "center" + ] + } + }, + { + "l_idx": 0, + "x_idx": 6, + "y_idx": 7, + "connections": { + "E": [ + "center" + ], + "W": [ + "center" + ] + } + }, + { + "l_idx": 0, + "x_idx": 7, + "y_idx": 1, + "connections": { + "E": [ + "center" + ], + "W": [ + "center" + ] + } + }, + { + "l_idx": 0, + "x_idx": 7, + "y_idx": 2, + "connections": { + "E": [ + "center" + ], + "W": [ + "center" + ] + } + }, + { + "l_idx": 0, + "x_idx": 7, + "y_idx": 4, + "connections": { + "E": [ + "right" + ], + "W": [ + "center" + ] + }, + "sensor": { + "markername": "red", + "speeds": { + "E": "cruise", + "W": "cruise" + } + } + }, + { + "l_idx": 0, + "x_idx": 7, + "y_idx": 5, + "connections": { + "E": [ + "center" + ], + "W": [ + "center" + ] + }, + "sensor": { + "markername": "blue", + "speeds": { + "E": "cruise", + "W": "cruise" + } + } + }, + { + "l_idx": 0, + "x_idx": 7, + "y_idx": 6, + "connections": { + "E": [ + "center" + ], + "W": [ + "center" + ] + }, + "sensor": { + "markername": "red", + "speeds": { + "E": "cruise", + "W": "cruise" + } + } + }, + { + "l_idx": 0, + "x_idx": 7, + "y_idx": 7, + "connections": { + "E": [ + "center" + ], + "W": [ + "center" + ] + } + }, + { + "l_idx": 0, + "x_idx": 8, + "y_idx": 1, + "connections": { + "E": [ + "center" + ], + "W": [ + "center" + ] + }, + "sensor": { + "markername": "blue", + "speeds": { + "E": "cruise", + "W": "fast" + } + } + }, + { + "l_idx": 0, + "x_idx": 8, + "y_idx": 2, + "connections": { + "E": [ + "center" + ], + "W": [ + "center" + ] + }, + "sensor": { + "markername": "red", + "speeds": { + "E": "cruise", + "W": "cruise" + } + } + }, + { + "l_idx": 0, + "x_idx": 8, + "y_idx": 4, + "connections": { + "S": [ + "left" + ], + "W": [ + "center" + ] + } + }, + { + "l_idx": 0, + "x_idx": 8, + "y_idx": 5, + "connections": { + "E": [ + "center" + ], + "W": [ + "center" + ] + } + }, + { + "l_idx": 0, + "x_idx": 8, + "y_idx": 5, + "connections": { + "N": [ + "left" + ], + "E": [ + "center" + ] + } + }, + { + "l_idx": 0, + "x_idx": 8, + "y_idx": 6, + "connections": { + "E": [ + "left" + ], + "W": [ + "center" + ] + } + }, + { + "l_idx": 0, + "x_idx": 8, + "y_idx": 7, + "connections": { + "E": [ + "center" + ], + "W": [ + "center" + ] + }, + "sensor": { + "markername": "blue", + "speeds": { + "E": "cruise", + "W": "fast" + } + } + }, + { + "l_idx": 0, + "x_idx": 9, + "y_idx": 1, + "connections": { + "E": [ + "right" + ], + "W": [ + "center" + ] + } + }, + { + "l_idx": 0, + "x_idx": 9, + "y_idx": 2, + "connections": { + "E": [ + "right" + ], + "W": [ + "center" + ] + } + }, + { + "l_idx": 0, + "x_idx": 9, + "y_idx": 5, + "connections": { + "E": [ + "left" + ], + "W": [ + "center", + "right" + ] + }, + "switches": { + "W": { + "motor1": { + "controller": "technic-red", + "port": 0, + "storage": { + "0": 100, + "1": 600, + "2": 0 + } + } + } + } + }, + { + "l_idx": 0, + "x_idx": 9, + "y_idx": 5, + "connections": { + "S": [ + "right" + ], + "E": [ + "left" + ] + } + }, + { + "l_idx": 0, + "x_idx": 9, + "y_idx": 6, + "connections": { + "N": [ + "right" + ], + "W": [ + "center" + ] + } + }, + { + "l_idx": 0, + "x_idx": 9, + "y_idx": 7, + "connections": { + "E": [ + "left" + ], + "W": [ + "center" + ] + } + }, + { + "l_idx": 0, + "x_idx": 10, + "y_idx": 1, + "connections": { + "S": [ + "center" + ], + "W": [ + "center" + ] + } + }, + { + "l_idx": 0, + "x_idx": 10, + "y_idx": 2, + "connections": { + "N": [ + "left" + ], + "S": [ + "center" + ] + } + }, + { + "l_idx": 0, + "x_idx": 10, + "y_idx": 2, + "connections": { + "S": [ + "center" + ], + "W": [ + "center" + ] + } + }, + { + "l_idx": 0, + "x_idx": 10, + "y_idx": 3, + "connections": { + "N": [ + "center", + "left" + ], + "S": [ + "center" + ] + }, + "switches": { + "N": { + "motor1": { + "controller": "technic-red", + "port": 3, + "storage": { + "0": 100, + "1": 600, + "2": 0 + } + } + } + } + }, + { + "l_idx": 0, + "x_idx": 10, + "y_idx": 4, + "connections": { + "N": [ + "center" + ], + "S": [ + "center", + "right" + ] + }, + "switches": { + "S": { + "motor1": { + "controller": "technic-red", + "port": 2, + "storage": { + "0": 100, + "1": 600, + "2": 0 + } + } + } + } + }, + { + "l_idx": 0, + "x_idx": 10, + "y_idx": 5, + "connections": { + "N": [ + "center" + ], + "S": [ + "center" + ] + } + }, + { + "l_idx": 0, + "x_idx": 10, + "y_idx": 5, + "connections": { + "N": [ + "center" + ], + "W": [ + "center", + "left" + ] + }, + "switches": { + "W": { + "motor1": { + "controller": "technic-red", + "port": 1, + "storage": { + "0": 100, + "1": 600, + "2": 0 + } + } + } + } + }, + { + "l_idx": 0, + "x_idx": 10, + "y_idx": 6, + "connections": { + "N": [ + "center" + ], + "S": [ + "right" + ] + } + }, + { + "l_idx": 0, + "x_idx": 10, + "y_idx": 7, + "connections": { + "N": [ + "center" + ], + "W": [ + "center" + ] + } + }, + { + "l_idx": 1, + "x_idx": 2, + "y_idx": 2, + "portals": { + "N": { + "l_idx": 0, + "x_idx": 2, + "y_idx": 1, + "next_slot": "E", + "orientation": "SE" + } + }, + "connections": { + "N": [ + + ], + "S": [ + "center" + ] + } + }, + { + "l_idx": 1, + "x_idx": 2, + "y_idx": 2, + "connections": { + "S": [ + "center" + ], + "E": [ + "center" + ] + } + }, + { + "l_idx": 1, + "x_idx": 2, + "y_idx": 3, + "connections": { + "N": [ + "center", + "right" + ], + "S": [ + "center" + ] + }, + "switches": { + "N": { + "motor1": { + "controller": "technic-yellow", + "port": 0, + "storage": { + "0": 100, + "1": 600, + "2": 0 + } + } + } + } + }, + { + "l_idx": 1, + "x_idx": 2, + "y_idx": 4, + "connections": { + "N": [ + "center" + ], + "S": [ + "center" + ] + } + }, + { + "l_idx": 1, + "x_idx": 2, + "y_idx": 5, + "connections": { + "N": [ + "center" + ], + "S": [ + "center", + "left" + ] + }, + "switches": { + "S": { + "motor1": { + "controller": "technic-yellow", + "port": 1, + "storage": { + "0": 100, + "1": 600, + "2": 0 + } + } + } + } + }, + { + "l_idx": 1, + "x_idx": 2, + "y_idx": 6, + "portals": { + "S": { + "l_idx": 0, + "x_idx": 2, + "y_idx": 7, + "next_slot": "E", + "orientation": "NE" + } + }, + "connections": { + "N": [ + "center" + ], + "S": [ + + ] + } + }, + { + "l_idx": 1, + "x_idx": 2, + "y_idx": 6, + "connections": { + "N": [ + "center" + ], + "E": [ + "center" + ] + } + }, + { + "l_idx": 1, + "x_idx": 3, + "y_idx": 2, + "connections": { + "E": [ + "center" + ], + "W": [ + "left" + ] + }, + "sensor": { + "markername": "blue", + "speeds": { + "E": "cruise", + "W": "cruise" + } + } + }, + { + "l_idx": 1, + "x_idx": 3, + "y_idx": 6, + "connections": { + "E": [ + "center" + ], + "W": [ + "right" + ] + }, + "sensor": { + "markername": "blue", + "speeds": { + "E": "cruise", + "W": "cruise" + } + } + }, + { + "l_idx": 1, + "x_idx": 4, + "y_idx": 2, + "connections": { + "E": [ + "center" + ], + "W": [ + "center" + ] + } + }, + { + "l_idx": 1, + "x_idx": 4, + "y_idx": 6, + "connections": { + "E": [ + "center" + ], + "W": [ + "center" + ] + } + }, + { + "l_idx": 1, + "x_idx": 5, + "y_idx": 2, + "connections": { + "E": [ + "center" + ], + "W": [ + "center" + ] + } + }, + { + "l_idx": 1, + "x_idx": 5, + "y_idx": 6, + "connections": { + "E": [ + "center" + ], + "W": [ + "center" + ] + } + }, + { + "l_idx": 1, + "x_idx": 6, + "y_idx": 2, + "connections": { + "E": [ + "center" + ], + "W": [ + "center" + ] + }, + "sensor": { + "markername": "red", + "speeds": { + "E": "cruise", + "W": "cruise" + } + } + }, + { + "l_idx": 1, + "x_idx": 6, + "y_idx": 6, + "connections": { + "E": [ + "center" + ], + "W": [ + "center" + ] + }, + "sensor": { + "markername": "red", + "speeds": { + "E": "cruise", + "W": "cruise" + } + } + }, + { + "l_idx": 1, + "x_idx": 7, + "y_idx": 2, + "connections": { + "E": [ + "center", + "right" + ], + "W": [ + "center" + ] + }, + "switches": { + "E": { + "motor1": { + "controller": "technic-lime", + "port": 1, + "storage": { + "0": 100, + "1": 600, + "2": 0 + } + } + } + } + }, + { + "l_idx": 1, + "x_idx": 7, + "y_idx": 6, + "connections": { + "E": [ + "center", + "left" + ], + "W": [ + "center" + ] + }, + "switches": { + "E": { + "motor1": { + "controller": "technic-lime", + "port": 0, + "storage": { + "0": 100, + "1": 600, + "2": 0 + } + } + } + } + }, + { + "l_idx": 1, + "x_idx": 8, + "y_idx": 2, + "connections": { + "E": [ + "center" + ], + "W": [ + "center" + ] + } + }, + { + "l_idx": 1, + "x_idx": 8, + "y_idx": 2, + "connections": { + "S": [ + "center" + ], + "E": [ + "center" + ] + }, + "prohibited_slot": "S" + }, + { + "l_idx": 1, + "x_idx": 8, + "y_idx": 2, + "connections": { + "S": [ + "center" + ], + "W": [ + "center" + ] + }, + "prohibited_slot": "W" + }, + { + "l_idx": 1, + "x_idx": 8, + "y_idx": 3, + "connections": { + "N": [ + "right", + "left" + ], + "S": [ + "center" + ] + }, + "switches": { + "N": { + + } + } + }, + { + "l_idx": 1, + "x_idx": 8, + "y_idx": 4, + "connections": { + "N": [ + "center" + ], + "S": [ + "center" + ] + } + }, + { + "l_idx": 1, + "x_idx": 8, + "y_idx": 5, + "connections": { + "N": [ + "center" + ], + "S": [ + "left", + "right" + ] + }, + "switches": { + "S": { + + } + } + }, + { + "l_idx": 1, + "x_idx": 8, + "y_idx": 6, + "connections": { + "E": [ + "center" + ], + "W": [ + "center" + ] + } + }, + { + "l_idx": 1, + "x_idx": 8, + "y_idx": 6, + "connections": { + "N": [ + "center" + ], + "E": [ + "center" + ] + }, + "prohibited_slot": "N" + }, + { + "l_idx": 1, + "x_idx": 8, + "y_idx": 6, + "connections": { + "N": [ + "center" + ], + "W": [ + "center" + ] + }, + "prohibited_slot": "W" + }, + { + "l_idx": 1, + "x_idx": 9, + "y_idx": 2, + "connections": { + "E": [ + "right" + ], + "W": [ + "center", + "left" + ] + }, + "switches": { + "W": { + + } + } + }, + { + "l_idx": 1, + "x_idx": 9, + "y_idx": 6, + "connections": { + "E": [ + "left" + ], + "W": [ + "center", + "right" + ] + }, + "switches": { + "W": { + + } + } + }, + { + "l_idx": 1, + "x_idx": 10, + "y_idx": 2, + "connections": { + "S": [ + "center" + ], + "W": [ + "center" + ] + } + }, + { + "l_idx": 1, + "x_idx": 10, + "y_idx": 3, + "connections": { + "N": [ + "left" + ], + "S": [ + "center" + ] + } + }, + { + "l_idx": 1, + "x_idx": 10, + "y_idx": 4, + "connections": { + "N": [ + "center" + ], + "S": [ + "center" + ] + }, + "crossing": { + "motor1": { + "controller": "technic-lime", + "port": 2, + "storage": { + "0": 100, + "1": 2200, + "2": 0 + } + } + } + }, + { + "l_idx": 1, + "x_idx": 10, + "y_idx": 5, + "connections": { + "N": [ + "center" + ], + "S": [ + "right" + ] + } + }, + { + "l_idx": 1, + "x_idx": 10, + "y_idx": 6, + "connections": { + "N": [ + "center" + ], + "W": [ + "center" + ] + } + } + ], + "blocks": [ + { + "block_name": "block0", + "section": { + "tracks": [ + { + "l_idx": 0, + "x_idx": 8, + "y_idx": 2, + "next_slot": "W", + "orientation": "EW" + }, + { + "l_idx": 0, + "x_idx": 7, + "y_idx": 2, + "next_slot": "W", + "orientation": "EW" + }, + { + "l_idx": 0, + "x_idx": 6, + "y_idx": 2, + "next_slot": "W", + "orientation": "EW" + }, + { + "l_idx": 0, + "x_idx": 5, + "y_idx": 2, + "next_slot": "W", + "orientation": "EW" + } + ] + }, + "prior_sensors": { + + }, + "can_stop": { + "0": false, + "1": false + }, + "can_flip": { + "0": true, + "1": true + }, + "random_target": { + "0": true, + "1": true + }, + "wait_time": { + "0": 4, + "1": 4 + } + }, + { + "block_name": "block1", + "section": { + "tracks": [ + { + "l_idx": 1, + "x_idx": 3, + "y_idx": 2, + "next_slot": "E", + "orientation": "EW" + }, + { + "l_idx": 1, + "x_idx": 4, + "y_idx": 2, + "next_slot": "E", + "orientation": "EW" + }, + { + "l_idx": 1, + "x_idx": 5, + "y_idx": 2, + "next_slot": "E", + "orientation": "EW" + }, + { + "l_idx": 1, + "x_idx": 6, + "y_idx": 2, + "next_slot": "E", + "orientation": "EW" + } + ] + }, + "prior_sensors": { + + }, + "can_stop": { + "0": true, + "1": true + }, + "can_flip": { + "0": true, + "1": true + }, + "random_target": { + "0": true, + "1": true + }, + "wait_time": { + "0": 4, + "1": 4 + } + }, + { + "block_name": "block2", + "section": { + "tracks": [ + { + "l_idx": 1, + "x_idx": 6, + "y_idx": 6, + "next_slot": "W", + "orientation": "EW" + }, + { + "l_idx": 1, + "x_idx": 5, + "y_idx": 6, + "next_slot": "W", + "orientation": "EW" + }, + { + "l_idx": 1, + "x_idx": 4, + "y_idx": 6, + "next_slot": "W", + "orientation": "EW" + }, + { + "l_idx": 1, + "x_idx": 3, + "y_idx": 6, + "next_slot": "W", + "orientation": "EW" + } + ] + }, + "prior_sensors": { + + }, + "can_stop": { + "0": true, + "1": true + }, + "can_flip": { + "0": true, + "1": true + }, + "random_target": { + "0": true, + "1": true + }, + "wait_time": { + "0": 4, + "1": 4 + } + }, + { + "block_name": "block3", + "section": { + "tracks": [ + { + "l_idx": 0, + "x_idx": 5, + "y_idx": 1, + "next_slot": "E", + "orientation": "EW" + }, + { + "l_idx": 0, + "x_idx": 6, + "y_idx": 1, + "next_slot": "E", + "orientation": "EW" + }, + { + "l_idx": 0, + "x_idx": 7, + "y_idx": 1, + "next_slot": "E", + "orientation": "EW" + }, + { + "l_idx": 0, + "x_idx": 8, + "y_idx": 1, + "next_slot": "E", + "orientation": "EW" + } + ] + }, + "prior_sensors": { + + }, + "can_stop": { + "0": false, + "1": false + }, + "can_flip": { + "0": false, + "1": false + }, + "random_target": { + "0": true, + "1": true + }, + "wait_time": { + "0": 4, + "1": 4 + } + }, + { + "block_name": "block4", + "section": { + "tracks": [ + { + "l_idx": 0, + "x_idx": 8, + "y_idx": 7, + "next_slot": "W", + "orientation": "EW" + }, + { + "l_idx": 0, + "x_idx": 7, + "y_idx": 7, + "next_slot": "W", + "orientation": "EW" + }, + { + "l_idx": 0, + "x_idx": 6, + "y_idx": 7, + "next_slot": "W", + "orientation": "EW" + }, + { + "l_idx": 0, + "x_idx": 5, + "y_idx": 7, + "next_slot": "W", + "orientation": "EW" + } + ] + }, + "prior_sensors": { + + }, + "can_stop": { + "0": false, + "1": false + }, + "can_flip": { + "0": false, + "1": false + }, + "random_target": { + "0": true, + "1": true + }, + "wait_time": { + "0": 4, + "1": 4 + } + }, + { + "block_name": "block5", + "section": { + "tracks": [ + { + "l_idx": 0, + "x_idx": 5, + "y_idx": 4, + "next_slot": "E", + "orientation": "EW" + }, + { + "l_idx": 0, + "x_idx": 6, + "y_idx": 4, + "next_slot": "E", + "orientation": "EW" + }, + { + "l_idx": 0, + "x_idx": 7, + "y_idx": 4, + "next_slot": "E", + "orientation": "EW" + } + ] + }, + "prior_sensors": { + + }, + "can_stop": { + "0": true, + "1": true + }, + "can_flip": { + "0": true, + "1": true + }, + "random_target": { + "0": true, + "1": true + }, + "wait_time": { + "0": 4, + "1": 4 + } + }, + { + "block_name": "block6", + "section": { + "tracks": [ + { + "l_idx": 0, + "x_idx": 5, + "y_idx": 5, + "next_slot": "E", + "orientation": "EW" + }, + { + "l_idx": 0, + "x_idx": 6, + "y_idx": 5, + "next_slot": "E", + "orientation": "EW" + }, + { + "l_idx": 0, + "x_idx": 7, + "y_idx": 5, + "next_slot": "E", + "orientation": "EW" + } + ] + }, + "prior_sensors": { + + }, + "can_stop": { + "0": true, + "1": true + }, + "can_flip": { + "0": true, + "1": true + }, + "random_target": { + "0": true, + "1": true + }, + "wait_time": { + "0": 4, + "1": 4 + } + }, + { + "block_name": "block7", + "section": { + "tracks": [ + { + "l_idx": 0, + "x_idx": 5, + "y_idx": 6, + "next_slot": "E", + "orientation": "EW" + }, + { + "l_idx": 0, + "x_idx": 6, + "y_idx": 6, + "next_slot": "E", + "orientation": "EW" + }, + { + "l_idx": 0, + "x_idx": 7, + "y_idx": 6, + "next_slot": "E", + "orientation": "EW" + } + ] + }, + "prior_sensors": { + + }, + "can_stop": { + "0": true, + "1": true + }, + "can_flip": { + "0": true, + "1": true + }, + "random_target": { + "0": true, + "1": true + }, + "wait_time": { + "0": 4, + "1": 4 + } + } + ], + "trains": [ + { + "train_name": "train0", + "facing": 1, + "reversing_behavior": "off", + "color": "ff00b007", + "num_wagons": 4, + "random_targets": true, + "block_id": "block2", + "blockindex": 0, + "ble_train": "city-green" + }, + { + "train_name": "train1", + "facing": 1, + "reversing_behavior": "off", + "color": "ffff0000", + "num_wagons": 5, + "random_targets": true, + "block_id": "block1", + "blockindex": 0, + "ble_train": "city-red" + }, + { + "train_name": "train2", + "facing": 1, + "reversing_behavior": "off", + "color": "ffff9500", + "num_wagons": 5, + "random_targets": true, + "block_id": "block7", + "blockindex": 1, + "ble_train": "city-orange" + }, + { + "train_name": "train3", + "facing": 1, + "reversing_behavior": "off", + "color": "fffdff00", + "num_wagons": 3, + "random_targets": true, + "block_id": "block7", + "blockindex": 0, + "ble_train": "city-yellow" + } + ] + } +} \ No newline at end of file