Skip to content

Commit da57303

Browse files
committed
make landmark sizes explicit
1 parent 97c64a3 commit da57303

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sfm/state/ba_state_linearizer.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ impl BAStateLinearizer {
5151
abs_pose_map: &HashMap<usize, Isometry3<Float>>,
5252
reprojection_error_map: &HashMap<(usize, usize),DVector<Float>>,
5353
camera_norm_map: &HashMap<usize, C>)
54-
-> (State<F, impl Landmark<F,{inverse_depth_landmark::LANDMARK_PARAM_SIZE}>,CameraExtrinsicState<F>,6, CAMERA_PARAM_SIZE>, DVector<F>) {
54+
-> (State<F, impl Landmark<F,{inverse_depth_landmark::LANDMARK_PARAM_SIZE}>,CameraExtrinsicState<F>,{inverse_depth_landmark::LANDMARK_PARAM_SIZE}, CAMERA_PARAM_SIZE>, DVector<F>) {
5555

5656
let number_of_cameras = self.camera_to_linear_id_map.len();
5757
let number_of_unqiue_landmarks = self.landmark_to_linear_id_map.len();
@@ -147,7 +147,7 @@ impl BAStateLinearizer {
147147
abs_pose_map: &HashMap<usize, Isometry3<Float>>,
148148
abs_landmark_map: &HashMap<(usize,usize), Vec<EuclideanLandmark<Float>>>,
149149
reprojection_error_map: &HashMap<(usize, usize),DVector<Float>>)
150-
-> (State<F, impl Landmark<F,{euclidean_landmark::LANDMARK_PARAM_SIZE}>,CameraExtrinsicState<F>,3, CAMERA_PARAM_SIZE>, DVector<F>) {
150+
-> (State<F, impl Landmark<F,{euclidean_landmark::LANDMARK_PARAM_SIZE}>,CameraExtrinsicState<F>,{euclidean_landmark::LANDMARK_PARAM_SIZE}, CAMERA_PARAM_SIZE>, DVector<F>) {
151151

152152
let number_of_cameras = self.camera_to_linear_id_map.len();
153153
let number_of_unqiue_landmarks = self.landmark_to_linear_id_map.len();

0 commit comments

Comments
 (0)