Skip to content

Commit

Permalink
feat(scenarios): finish "Junction Twoway"
Browse files Browse the repository at this point in the history
  • Loading branch information
kpbaks committed Jun 16, 2024
1 parent 3ca7e0c commit 9e29443
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 28 deletions.
8 changes: 4 additions & 4 deletions config/simulations/Junction Twoway/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ height-map = 1.0

[visualisation.draw]
robots = true
communication-graph = true
communication-graph = false
predicted-trajectories = true
waypoints = true
waypoints = false
uncertainty = false
paths = false
communication-radius = false
obstacle-factors = false
tracking = false
interrobot-factors = true
interrobot-factors = false
interrobot-factors-safety-distance = false
generated-map = true
sdf = false
Expand Down Expand Up @@ -72,7 +72,7 @@ failure-rate = 0.0

[simulation]
max-time = 10000.0
time-scale = 2.0
time-scale = 1.2699999809265137
manual-step-factor = 1
hz = 10.0
prng-seed = 2
Expand Down
86 changes: 62 additions & 24 deletions config/simulations/Junction Twoway/formation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ formations:
# start left: turn left (red)
- repeat:
every:
secs: 5
secs: 6
nanos: 0
times: !infinite
delay:
Expand Down Expand Up @@ -42,12 +42,12 @@ formations:
# start left: turn right (blue)
- repeat:
every:
secs: 4
secs: 6
nanos: 0
times: !infinite
delay:
secs: 0
nanos: 500000000
secs: 2
nanos: 0
robots: 1
planning-strategy: only-local
initial-position:
Expand Down Expand Up @@ -80,12 +80,12 @@ formations:
# start left: drive across (green)
- repeat:
every:
secs: 7
secs: 6
nanos: 0
times: !infinite
delay:
secs: 0
nanos: 750000000
secs: 4
nanos: 0
robots: 1
planning-strategy: only-local
initial-position:
Expand Down Expand Up @@ -113,7 +113,7 @@ formations:
# start top: turn left (red)
- repeat:
every:
secs: 5
secs: 6
nanos: 0
times: !infinite
delay:
Expand Down Expand Up @@ -152,12 +152,12 @@ formations:
# start top: turn right (blue)
- repeat:
every:
secs: 4
secs: 6
nanos: 0
times: !infinite
delay:
secs: 0
nanos: 500000000
secs: 2
nanos: 0
robots: 1
planning-strategy: only-local
initial-position:
Expand Down Expand Up @@ -191,12 +191,12 @@ formations:
# start top: drive across (green)
- repeat:
every:
secs: 7
secs: 6
nanos: 0
times: !infinite
delay:
secs: 0
nanos: 750000000
secs: 4
nanos: 0
robots: 1
planning-strategy: only-local
initial-position:
Expand Down Expand Up @@ -225,7 +225,7 @@ formations:
# start right: turn left (red)
- repeat:
every:
secs: 5
secs: 6
nanos: 0
times: !infinite
delay:
Expand Down Expand Up @@ -261,16 +261,54 @@ formations:
distance: !meter 10
intersects-with: !variable 5

# start right: turn right (blue)
- repeat:
every:
secs: 6
nanos: 0
times: !infinite
delay:
secs: 2
nanos: 0
robots: 1
planning-strategy: only-local
initial-position:
shape: !line-segment
- x: 1.0
y: 0.435
- x: 1.0
y: 0.485
placement-strategy: !random
attempts: 2000
waypoints:
- shape: !line-segment
- x: 0.435
y: 0.435
- x: 0.485
y: 0.485
projection-strategy: identity
- shape: !line-segment
- x: 0.435
y: 1.15
- x: 0.485
y: 1.15
projection-strategy: identity
waypoint-reached-when-intersects:
distance: robot-radius
intersects-with: horizon
finished-when-intersects:
distance: !meter 10
intersects-with: !variable 5

# start right: drive across (green)
- repeat:
every:
secs: 7
secs: 6
nanos: 0
times: !infinite
delay:
secs: 0
nanos: 450000000
secs: 4
nanos: 0
robots: 1
planning-strategy: only-local
initial-position:
Expand Down Expand Up @@ -299,12 +337,12 @@ formations:
# start bottom: turn left (red)
- repeat:
every:
secs: 5
secs: 6
nanos: 0
times: !infinite
delay:
secs: 0
nanos: 500000000
nanos: 0
robots: 1
planning-strategy: only-local
initial-position:
Expand Down Expand Up @@ -339,11 +377,11 @@ formations:
# start bottom: drive across (green)
- repeat:
every:
secs: 7
secs: 6
nanos: 0
times: !infinite
delay:
secs: 0
secs: 4
nanos: 0
robots: 1
planning-strategy: only-local
Expand Down Expand Up @@ -377,8 +415,8 @@ formations:
nanos: 0
times: !infinite
delay:
secs: 0
nanos: 800000000
secs: 2
nanos: 0
robots: 1
planning-strategy: only-local
initial-position:
Expand Down

0 comments on commit 9e29443

Please sign in to comment.