Skip to content

Commit c3d0a29

Browse files
committed
changed target file name
1 parent efffad5 commit c3d0a29

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

examples/ba/olsson.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,9 @@ fn main() -> Result<()> {
166166
let state_serialized = serde_yaml::to_string(&optimized_state.to_serial());
167167
let debug_states_serialized = serde_yaml::to_string(&state_debug_list);
168168

169-
fs::write(format!("{}/ba.txt",runtime_conf.output_path), state_serialized?).expect("Unable to write file");
169+
fs::write(format!("{}/sfm.txt",runtime_conf.output_path), state_serialized?).expect("Unable to write file");
170170
if runtime_parameters.debug {
171-
fs::write(format!("{}/ba_debug.txt",runtime_conf.output_path), debug_states_serialized?).expect("Unable to write file");
171+
fs::write(format!("{}/sfm_debug.txt",runtime_conf.output_path), debug_states_serialized?).expect("Unable to write file");
172172
}
173173

174174
Ok(())

examples/ba/synthetic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ fn main() -> Result<()> {
213213

214214
let state_serialized = serde_yaml::to_string(&optimized_state.to_serial());
215215
let debug_states_serialized = serde_yaml::to_string(&state_debug_list);
216-
std::fs::write(format!("{}/ba.txt",runtime_conf.output_path), state_serialized?).expect("Unable to write file");
216+
std::fs::write(format!("{}/sfm.txt",runtime_conf.output_path), state_serialized?).expect("Unable to write file");
217217

218218
Ok(())
219219
}

examples/pnp/synthetic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ fn main() -> Result<()> {
105105
let state_serialized = serde_yaml::to_string(&optimized_state.to_serial());
106106
let debug_states_serialized = serde_yaml::to_string(&state_debug_list);
107107

108-
std::fs::write(format!("{}/pnp.txt",runtime_conf.output_path), state_serialized?).expect("Unable to write file");
108+
std::fs::write(format!("{}/sfm.txt",runtime_conf.output_path), state_serialized?).expect("Unable to write file");
109109

110110

111111
Ok(())

examples/visualizing/pointcloud.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ fn main() -> Result<(),()> {
5757
let mut window = Window::new("BA: Pointcloud");
5858
let runtime_conf = load_runtime_conf();
5959

60-
let final_state_as_string = fs::read_to_string(format!("{}/ba.txt", runtime_conf.output_path)).expect("Unable to read file");
61-
let all_states_as_string_option = fs::read_to_string(format!("{}/ba_debug.txt", runtime_conf.output_path));
60+
let final_state_as_string = fs::read_to_string(format!("{}/sfm.txt", runtime_conf.output_path)).expect("Unable to read file");
61+
let all_states_as_string_option = fs::read_to_string(format!("{}/sfm_debug.txt", runtime_conf.output_path));
6262

6363
let loaded_state: (Vec<[Float;6]>,Vec<[Float;3]>) = serde_yaml::from_str(&final_state_as_string).unwrap();
6464
let ba_state = state::State::<Float,EuclideanLandmark<Float>,3>::from_serial(&loaded_state);

0 commit comments

Comments
 (0)