Skip to content

Commit 1f36982

Browse files
committed
move behavior to worldstate (temporarly)
1 parent bd08326 commit 1f36982

17 files changed

Lines changed: 99 additions & 147 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ members = [
55
"crates/argument_parsers",
66
"crates/audio",
77
"crates/ball_filter",
8-
"crates/behavior",
98
"crates/bevy_mujoco",
109
"crates/bevyhavior_simulator",
1110
"crates/booster",
@@ -93,7 +92,6 @@ bat = { version = "0.25.0", default-features = false, features = [
9392
"paging",
9493
"regex-fancy",
9594
] }
96-
behavior = { path = "crates/behavior" }
9795
bevy = { version = "0.16.0", default-features = false }
9896
bevy-inspector-egui = "0.29.1"
9997
bevy_asset_loader = "0.22.0"

crates/behavior/Cargo.toml

Lines changed: 0 additions & 16 deletions
This file was deleted.

crates/behavior/src/lib.rs

Lines changed: 0 additions & 2 deletions
This file was deleted.

crates/behavior/src/trigger.rs

Lines changed: 0 additions & 56 deletions
This file was deleted.

crates/control/src/motion/booster_walking.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ pub struct CycleContext {
3636
imu_state: Input<ImuState, "imu_state">,
3737
serial_motor_states: Input<Joints<MotorState>, "serial_motor_states">,
3838
cycle_time: Input<CycleTime, "cycle_time">,
39+
motion_command: Input<MotionCommand, "WorldState", "motion_command">,
3940
}
4041

4142
#[context]

crates/hulk_imagine/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ homepage.workspace = true
88
[dependencies]
99
audio = { workspace = true }
1010
ball_filter = { workspace = true }
11-
behavior = { workspace = true }
1211
bincode = { workspace = true }
1312
booster = { workspace = true }
1413
buffered_watch = { workspace = true }
@@ -42,7 +41,6 @@ tokio = { workspace = true }
4241
types = { workspace = true }
4342
vision = { workspace = true }
4443
walking_inference = { workspace = true }
45-
world_state = { workspace = true }
4644
zed = { workspace = true }
4745

4846
[build-dependencies]

crates/hulk_manifest/src/lib.rs

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -114,20 +114,16 @@ pub fn collect_hulk_cyclers(root: impl AsRef<Path>) -> Result<Cyclers, Error> {
114114
],
115115
execution_time_warning_threshold: Some(Duration::from_secs_f32(1.0 / 83.0)),
116116
},
117-
CyclerManifest {
118-
name: "Behavior",
119-
kind: CyclerKind::Perception,
120-
instances: vec![""],
121-
setup_nodes: vec!["behavior::trigger"],
122-
nodes: vec!["behavior::walk_to_ball"],
123-
execution_time_warning_threshold: Some(Duration::from_secs_f32(1.0 / 83.0)),
124-
},
125117
CyclerManifest {
126118
name: "WorldState",
127119
kind: CyclerKind::RealTime,
128120
instances: vec![""],
129121
setup_nodes: vec!["world_state::trigger"],
130-
nodes: vec!["world_state::ball_filter"],
122+
nodes: vec![
123+
"world_state::ball_filter",
124+
"world_state::ball_projector",
125+
"world_state::walk_to_ball",
126+
],
131127
execution_time_warning_threshold: Some(Duration::from_secs_f32(1.0 / 83.0)),
132128
},
133129
// CyclerManifest {

crates/hulk_mujoco/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ homepage.workspace = true
99
approx.workspace = true
1010
audio = { workspace = true }
1111
ball_filter = { workspace = true }
12-
behavior = { workspace = true }
1312
bincode = { workspace = true }
1413
blake3 = { workspace = true }
1514
booster = { workspace = true }

crates/hulk_replayer/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ homepage.workspace = true
88
[dependencies]
99
audio = { workspace = true }
1010
ball_filter = { workspace = true }
11-
behavior = { workspace = true }
1211
bincode = { workspace = true }
1312
blake3 = { workspace = true }
1413
booster = { workspace = true }
@@ -49,7 +48,6 @@ tokio-util = { workspace = true }
4948
types = { workspace = true }
5049
vision = { workspace = true }
5150
walking_inference = { workspace = true }
52-
world_state ={ workspace = true}
5351
zed = { workspace = true }
5452

5553
[build-dependencies]

0 commit comments

Comments
 (0)