File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -166,9 +166,9 @@ fn main() -> Result<()> {
166
166
let state_serialized = serde_yaml:: to_string ( & optimized_state. to_serial ( ) ) ;
167
167
let debug_states_serialized = serde_yaml:: to_string ( & state_debug_list) ;
168
168
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" ) ;
170
170
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" ) ;
172
172
}
173
173
174
174
Ok ( ( ) )
Original file line number Diff line number Diff line change @@ -213,7 +213,7 @@ fn main() -> Result<()> {
213
213
214
214
let state_serialized = serde_yaml:: to_string ( & optimized_state. to_serial ( ) ) ;
215
215
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" ) ;
217
217
218
218
Ok ( ( ) )
219
219
}
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ fn main() -> Result<()> {
105
105
let state_serialized = serde_yaml:: to_string ( & optimized_state. to_serial ( ) ) ;
106
106
let debug_states_serialized = serde_yaml:: to_string ( & state_debug_list) ;
107
107
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" ) ;
109
109
110
110
111
111
Ok ( ( ) )
Original file line number Diff line number Diff line change @@ -57,8 +57,8 @@ fn main() -> Result<(),()> {
57
57
let mut window = Window :: new ( "BA: Pointcloud" ) ;
58
58
let runtime_conf = load_runtime_conf ( ) ;
59
59
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) ) ;
62
62
63
63
let loaded_state: ( Vec < [ Float ; 6 ] > , Vec < [ Float ; 3 ] > ) = serde_yaml:: from_str ( & final_state_as_string) . unwrap ( ) ;
64
64
let ba_state = state:: State :: < Float , EuclideanLandmark < Float > , 3 > :: from_serial ( & loaded_state) ;
You can’t perform that action at this time.
0 commit comments