Skip to content

Commit dc99b15

Browse files
Use look_around in ready
1 parent a815d29 commit dc99b15

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

crates/nodes/behavior_node/src/tree.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ pub fn create_tree() -> Node<Blackboard> {
8181
}
8282

8383
fn ready_subtree() -> Node<Blackboard> {
84-
sequence!(action!(walk_to_kickoff_pose))
84+
sequence!(action!(walk_to_kickoff_pose), action!(look_around),)
8585
}
8686

8787
fn playing_subtree() -> Node<Blackboard> {

crates/nodes/behavior_node/src/walk.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use linear_algebra::{Isometry2, Orientation2, Point, Point2, Pose2, point};
55
use path_planner::path_planner::PathPlanner;
66
use types::{
77
behavior_tree::Status,
8-
motion_command::{BodyMotion, HeadMotion, MotionCommand, OrientationMode},
8+
motion_command::{BodyMotion, MotionCommand, OrientationMode},
99
motion_type::MotionType,
1010
path::{Path, direct_path},
1111
};
@@ -234,7 +234,7 @@ pub fn walk_to_kickoff_pose(blackboard: &mut Blackboard) -> Status {
234234
);
235235

236236
let kickoff_pose_in_ground = field_to_ground * kickoff_pose_in_field;
237-
blackboard.head_motion = Some(HeadMotion::LookAround);
237+
// blackboard.head_motion = Some(HeadMotion::LookAround);
238238
walk_to(
239239
blackboard,
240240
kickoff_pose_in_ground,

0 commit comments

Comments
 (0)