Skip to content

Commit 873d140

Browse files
committed
add default rerun blueprint rbl
1 parent 8e7171f commit 873d140

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

config/peng_default_blueprint.rbl

115 KB
Binary file not shown.

config/quad.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ use_multithreading_depth_rendering: true # Enable multithreading for depth rende
44
use_rk4_for_dynamics_update: false # Enable Runge-Kutta 4th order integration for dynamics, otherwise Euler integration is used
55
use_rk4_for_dynamics_control: false # Enable Runge-Kutta 4th order integration for dynamics, otherwise Euler integration is used
66

7+
rerun_blueprint: "config/peng_default_blueprint.rbl"
8+
79
simulation:
810
control_frequency: 200 # Frequency of control loop execution (Hz)
911
simulation_frequency: 1000 # Frequency of physics simulation updates (Hz)

src/config.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ pub struct Config {
2222
pub mesh: MeshConfig,
2323
/// Planner schedule configuration
2424
pub planner_schedule: Vec<PlannerStep>,
25+
/// Rerun blueprint path
26+
pub rerun_blueprint: String,
2527
/// Use rerun.io for recording
2628
pub use_rerun: bool,
2729
/// Render depth

src/main.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ fn main() -> Result<(), SimulationError> {
1414
log::info!("Loading configuration: {}", args[1]);
1515
config_str = &args[1];
1616
}
17-
let config = config::Config::from_yaml(config_str).expect("Failed to load configuration");
17+
let config = config::Config::from_yaml(config_str).expect("Failed to load configuration.");
1818
let mut quad = Quadrotor::new(
1919
1.0 / config.simulation.simulation_frequency as f32,
2020
config.quadrotor.mass,
@@ -72,6 +72,9 @@ fn main() -> Result<(), SimulationError> {
7272
} else {
7373
None
7474
};
75+
if let Some(rec) = &rec {
76+
rec.log_file_from_path(config.rerun_blueprint, None, false)?;
77+
}
7578
if let Some(rec) = &rec {
7679
rec.set_time_seconds("timestamp", 0);
7780
log_mesh(rec, config.mesh.division, config.mesh.spacing)?;

0 commit comments

Comments
 (0)