E3463LP3XTESVA3CDBVBGSM4K5OBKBTS366Z7REZMWPZBNZEG5CQC
let mut runner1 = BehaviorRunner::new(tree1.clone());
check!(!runner1.is_running());
check!(runner1.proceed() == Some(false));
let mut runner2 = BehaviorRunner::new(tree2.clone());
check!(!runner2.is_running());
check!(runner2.proceed() == Some(false));
let mut runner = BehaviorRunner::new(tree.clone());
check!(!runner.is_running());
check!(runner.proceed() == Some(false));
let mut runner1 = BehaviorRunner::new(tree1.clone());
runner1
.blackboard_mut()
.set("position", BlackboardValue::into_point(starting_position));
check!(runner1.proceed() == None);
while let Some(BlackboardValue::Point(_)) = runner1.blackboard().get("position") {
if let Some(res) = runner1.proceed() {
// we should succeed
check!(res);
break;
}
}
let mut runner2 = BehaviorRunner::new(tree2.clone());
runner2
let mut runner = BehaviorRunner::new(tree.clone());
runner
while let Some(BlackboardValue::Point(pos)) = runner2.blackboard().get("position") {
eprintln!("position = {pos:?}\nrunner = {runner2:?}");
if let Some(res) = runner2.proceed() {
while let Some(BlackboardValue::Point(pos)) = runner.blackboard().get("position") {
eprintln!("position = {pos:?}\nrunner = {runner:?}");
if let Some(res) = runner.proceed() {