@@ -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-
3432use 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]
5554pub 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) ,
0 commit comments