Skip to content

Commit

Permalink
fix: forgot to add file
Browse files Browse the repository at this point in the history
  • Loading branch information
kpbaks committed Mar 27, 2024
1 parent 595599a commit 2734055
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions gbpplanner-rs/src/planner/debug.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
use bevy::prelude::*;

use super::{FactorGraph, RobotState};

pub struct PlannerDebugPlugin;

impl Plugin for PlannerDebugPlugin {
fn build(&self, app: &mut App) {
app.add_systems(Update, debug);
}
}

fn debug(q: Query<(Entity, &RobotState, &FactorGraph)>) {
for (entity, state, graph) in q.iter() {
// println!("{:?}", entity);
// println!("{:?}", state);
// println!("{:?}", graph);
graph.variables().for_each(|(index, variable)| {
// println!("variable {:?}: mu {}", index, variable.belief.mu);
})
}
// std::process
}

0 comments on commit 2734055

Please sign in to comment.