Skip to content

Commit

Permalink
Deploying to gh-pages from @ 52a469a 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
kpbaks committed Apr 14, 2024
0 parents commit f515f00
Show file tree
Hide file tree
Showing 38 changed files with 2,773 additions and 0 deletions.
Binary file added assets/audio/za-warudo.ogg
Binary file not shown.
Binary file added assets/fonts/JetBrainsMonoNerdFont-Bold.ttf
Binary file not shown.
Binary file added assets/fonts/JetBrainsMonoNerdFont-BoldItalic.ttf
Binary file not shown.
Binary file added assets/fonts/JetBrainsMonoNerdFont-ExtraBold.ttf
Binary file not shown.
Binary file not shown.
Binary file added assets/fonts/JetBrainsMonoNerdFont-ExtraLight.ttf
Binary file not shown.
Binary file not shown.
Binary file added assets/fonts/JetBrainsMonoNerdFont-Italic.ttf
Binary file not shown.
Binary file added assets/fonts/JetBrainsMonoNerdFont-Light.ttf
Binary file not shown.
Binary file not shown.
Binary file added assets/fonts/JetBrainsMonoNerdFont-Medium.ttf
Binary file not shown.
Binary file not shown.
Binary file added assets/fonts/JetBrainsMonoNerdFont-Regular.ttf
Binary file not shown.
Binary file added assets/fonts/JetBrainsMonoNerdFont-SemiBold.ttf
Binary file not shown.
Binary file not shown.
Binary file added assets/fonts/JetBrainsMonoNerdFont-Thin.ttf
Binary file not shown.
Binary file added assets/fonts/JetBrainsMonoNerdFont-ThinItalic.ttf
Binary file not shown.
Binary file added assets/imgs/circle_cluttered.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/imgs/circle_cluttered_sdf.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/imgs/junction.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/imgs/junction_sdf.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/imgs/junction_twoway.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/imgs/roundabout.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/imgs/roundabout_sdf.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/imgs/simple.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/imgs/very_clutter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/imgs/very_clutter_sdf.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/models/box.glb
Binary file not shown.
Binary file added assets/models/roomba.glb
Binary file not shown.
14 changes: 14 additions & 0 deletions assets/shaders/line_material.wgsl
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#import bevy_pbr::forward_io::VertexOutput

struct LineMaterial {
color: vec4<f32>,
};

@group(1) @binding(0) var<uniform> material: LineMaterial;

@fragment
fn fragment(
mesh: VertexOutput,
) -> @location(0) vec4<f32> {
return material.color;
}
67 changes: 67 additions & 0 deletions config/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# environment = "junction"
environment_image = "junction"
environment = "./config/environment.yaml"
formation_group = "./config/formation.ron"

[interaction]
ui-focus-cancels-inputs = true

[visualisation.uncertainty]
max-radius = 2.5
scale = 300.0

[visualisation.height]
objects = 0.5
height-map = 1.0

[visualisation.draw]
robots = true
communication-graph = false
predicted-trajectories = true
waypoints = false
uncertainty = false
paths = true
generated-map = true
height-map = false
sdf = false
communication-radius = false

[gbp]
sigma-pose-fixed = 0.000000000000001
sigma-factor-dynamics = 0.1
sigma-factor-interrobot = 0.01
sigma-factor-obstacle = 0.01
iterations-per-timestep = 10
lookahead-multiple = 3

[robot]
planning-horizon = 5.0
max-speed = 4.0
dofs = 4
symmetric-factors = true
radius = 1.0

[robot.communication]
radius = 20.0
failure-rate = 0.2

[simulation]
t0 = 0.25
max-time = 10000.0
time-scale = 1.0
manual-step-factor = 1
hz = 60.0
world-size = 100.0
random-seed = 0
pause-on-spawn = false

[graphviz.interrobot.edge]
style = "dashed"
len = 8.0
color = "red"

[graphviz]
export-location = "./assets/export/"

[manual]
timesteps-per-step = 1
8 changes: 8 additions & 0 deletions config/environment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
tiles:
grid:
-
settings:
tile-size: 100.0
path-width: 0.1375
obstacle-height: 1.0
obstacles: []
70 changes: 70 additions & 0 deletions config/environment_circle.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
tiles:
grid:
-
settings:
tile-size: 100.0
path-width: 0.0
obstacle-height: 1.0
obstacles:
- shape: !regular-polygon
sides: 4
side_length: 0.0525
translation:
x: 0.625
y: 0.60125
rotation: 0.0
tile-coordinates:
row: 0
col: 0
- shape: !regular-polygon
sides: 4
side_length: 0.035
translation:
x: 0.44125
y: 0.57125
rotation: 0.0
tile-coordinates:
row: 0
col: 0
- shape: !regular-polygon
sides: 4
side_length: 0.0225
translation:
x: 0.4835
y: 0.428
rotation: 0.0
tile-coordinates:
row: 0
col: 0
- shape: !rectangle
width: 0.0875
height: 0.035
translation:
x: 0.589
y: 0.3965
rotation: 0.0
tile-coordinates:
row: 0
col: 0
- shape: !triangle
base_length: 0.03
height: 0.0415
mid_point: 0.575
translation:
x: 0.5575
y: 0.5145
rotation: 0.0
tile-coordinates:
row: 0
col: 0
- shape: !triangle
base_length: 0.012
height: 0.025
mid_point: 1.25
translation:
x: 0.38
y: 0.432
rotation: 5.225
tile-coordinates:
row: 0
col: 0
146 changes: 146 additions & 0 deletions config/formation.ron
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
(
formations: [
(
repeat: true,
delay: (
secs: 5,
nanos: 0
),
robots: 1,
waypoints: [
(
shape: line(((
x: 0.45,
y: 0.0,
), (
x: 0.55,
y: 0.0,
))),
r#placement-strategy: equal,
),
(
shape: line(((
x: 0.45,
y: 1.25,
), (
x: 0.55,
y: 1.25,
))),
r#placement-strategy: map,
),
],
),
(
repeat: true,
delay: (
secs: 5,
nanos: 0
),
robots: 1,
waypoints: [
(
shape: line(((
x: 0.0,
y: 0.45,
), (
x: 0.0,
y: 0.55,
))),
r#placement-strategy: equal,
),
(
shape: line(((
x: 1.25,
y: 0.45,
), (
x: 1.25,
y: 0.55,
))),
r#placement-strategy: map,
),
],
),
// (
// repeat: true,
// delay: (
// secs: 2,
// nanos: 0
// ),
// robots: 1,
// waypoints: [
// (
// shape: line(((
// x: 0.45,
// y: 0.0,
// ), (
// x: 0.55,
// y: 0.0,
// ))),
// r#placement-strategy: equal,
// ),
// (
// shape: line(((
// x: 0.45,
// y: 0.55,
// ), (
// x: 0.55,
// y: 0.45,
// ))),
// r#placement-strategy: map,
// ),
// (
// shape: line(((
// x: 1.0,
// y: 0.55,
// ), (
// x: 1.0,
// y: 0.45,
// ))),
// r#placement-strategy: map,
// ),
// ],
// ),
// (
// repeat: true,
// delay: (
// secs: 5,
// nanos: 0
// ),
// robots: 2,
// waypoints: [
// (
// shape: line(((
// x: 0.45,
// y: 1,
// ), (
// x: 0.55,
// y: 1,
// ))),
// r#placement-strategy: equal,
// ),
// (
// shape: line(((
// x: 0.45,
// y: 0.45,
// ), (
// x: 0.55,
// y: 0.55,
// ))),
// r#placement-strategy: map,
// ),

// (
// shape: line(((
// x: 0.0,
// y: 0.45,
// ), (
// x: 0.0,
// y: 0.55,
// ))),
// r#placement-strategy: map,
// ),
// ],
// ),

],
)
Loading

0 comments on commit f515f00

Please sign in to comment.