Skip to content

Commit 9cd5c03

Browse files
committed
remove unnecessary stuff
1 parent d88a7a9 commit 9cd5c03

4 files changed

Lines changed: 2 additions & 27 deletions

File tree

crates/control/src/behavior/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ mod no_ground_contact;
1414
pub mod node;
1515
mod penalize;
1616
mod prepare_jump;
17-
mod remote_control;
1817
mod search;
1918
mod sit_down;
2019
mod stand;

crates/control/src/behavior/node.rs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use types::{
2020
motion_command::{MotionCommand, WalkSpeed},
2121
parameters::{
2222
BehaviorParameters, InWalkKicksParameters, InterceptBallParameters, KeeperMotionParameters,
23-
LostBallParameters, RemoteControlParameters,
23+
LostBallParameters,
2424
},
2525
path_obstacles::PathObstacle,
2626
players::Players,
@@ -29,8 +29,6 @@ use types::{
2929
world_state::WorldState,
3030
};
3131

32-
use crate::behavior::remote_control;
33-
3432
use super::{
3533
animation, calibrate,
3634
defend::{Defend, DefendMode},
@@ -51,6 +49,7 @@ pub struct Behavior {
5149
last_defender_mode: DefendMode,
5250
last_time_role_changed: SystemTime,
5351
}
52+
5453
#[context]
5554
pub struct CreationContext {}
5655

@@ -88,7 +87,6 @@ pub struct CycleContext {
8887
active_action_output: AdditionalOutput<Action, "active_action">,
8988

9089
last_motion_command: CyclerState<MotionCommand, "last_motion_command">,
91-
remote_control_parameters: Parameter<RemoteControlParameters, "remote_control_parameters">,
9290
}
9391

9492
#[context]
@@ -157,8 +155,6 @@ impl Behavior {
157155
Action::Calibrate,
158156
];
159157

160-
actions.push(Action::RemoteControl);
161-
162158
if let Some(active_since) = self.active_since {
163159
let duration_active = now.duration_since(active_since)?;
164160
if !context.is_localization_converged
@@ -288,9 +284,6 @@ impl Behavior {
288284
.iter()
289285
.find_map(|action| {
290286
let motion_command = match action {
291-
Action::RemoteControl => {
292-
remote_control::execute(context.remote_control_parameters)
293-
}
294287
Action::Animation => animation::execute(world_state),
295288
Action::Unstiff => unstiff::execute(world_state),
296289
Action::SitDown => sit_down::execute(world_state),

crates/control/src/behavior/remote_control.rs

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

crates/types/src/action.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ pub enum Action {
3434
NoGroundContact,
3535
Penalize,
3636
PrepareJump,
37-
RemoteControl,
3837
Search,
3938
SearchForLostBall,
4039
SitDown,

0 commit comments

Comments
 (0)